Cheese hangs when trying to capture video from build-in camera one second after starting

Bug #2008894 reported by Bartłomiej Żogała
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I can capture photos, and see myself moving when preparing to video recording but 1 second after hitting record button the image and cheese itself freezes. It always reproducible.

Lsof shows:
/dev$ sudo lsof /dev/video* 2>/dev/null
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
pipewire 9551 nusch 93u CHR 81,0 0t0 1906 /dev/video0

I'm not sure if pipewire needs to ocupy video device to get mic input. But regardless of the reason cheese should output appropriate error instead of just hanging in some deadlock.

Below the ouput of thread state when its frozen:
(gdb) info threads
  Id Target Id Frame
* 1 Thread 0x7f66b30c0ac0 (LWP 712134) "cheese" futex_wait (private=0, expected=2, futex_word=0x55ca4d33d780) at ../sysdeps/nptl/futex-internal.h:146
  2 Thread 0x7f66b1a7e640 (LWP 712135) "gmain" 0x00007f66b6c4fd7f in __GI___poll (fds=0x55ca4d2c2d60, nfds=2, timeout=100) at ../sysdeps/unix/sysv/linux/poll.c:29
  3 Thread 0x7f66b127d640 (LWP 712136) "gdbus" 0x00007f66b6c4fd7f in __GI___poll (fds=0x55ca4d2b7d10, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
  4 Thread 0x7f66b09c1640 (LWP 712137) "dconf worker" 0x00007f66b6c4fd7f in __GI___poll (fds=0x55ca4d30c8a0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
  5 Thread 0x7f66a16a9640 (LWP 712139) "cheese:disk$0" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x55ca4d2de298)
    at ./nptl/futex-internal.c:57
  6 Thread 0x7f66a0ea8640 (LWP 712140) "cheese:sh0" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x55ca4d61f450)
    at ./nptl/futex-internal.c:57
  7 Thread 0x7f669605b640 (LWP 712141) "cheese:sh1" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x55ca4d61f450)
    at ./nptl/futex-internal.c:57
  8 Thread 0x7f669585a640 (LWP 712142) "cheese:sh2" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x55ca4d61f450)
    at ./nptl/futex-internal.c:57
  9 Thread 0x7f6695059640 (LWP 712143) "cheese:sh3" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x55ca4d61f450)
    at ./nptl/futex-internal.c:57
  10 Thread 0x7f6694858640 (LWP 712144) "cheese:sh4" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x55ca4d61f450)
    at ./nptl/futex-internal.c:57
  11 Thread 0x7f6683fff640 (LWP 712145) "cheese:sh5" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x55ca4d61f450)
    at ./nptl/futex-internal.c:57
  12 Thread 0x7f66837fe640 (LWP 712147) "cheese:gdrv0" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x55ca4d7fb3f0)
    at ./nptl/futex-internal.c:57
  13 Thread 0x7f6681d43640 (LWP 712155) "cheese" 0x00007f66b6c5cfde in epoll_wait (epfd=31, events=0x7f6681d425b0, maxevents=32, timeout=-1)
    at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
  14 Thread 0x7f6682544640 (LWP 712156) "pipewire-device" 0x00007f66b6c5cfde in epoll_wait (epfd=27, events=0x7f6682543630, maxevents=32, timeout=-1)
    at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
--Type <RET> for more, q to quit, c to continue without paging--
  15 Thread 0x7f6680dde640 (LWP 712157) "cheese" 0x00007f66b6c4fd7f in __GI___poll (fds=0x7f667004f990, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
  16 Thread 0x7f666af52640 (LWP 712160) "queue0:src" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
  17 Thread 0x7f666a751640 (LWP 712161) "queue3:src" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
  18 Thread 0x7f6669f50640 (LWP 712162) "queue4:src" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
  19 Thread 0x7f666974f640 (LWP 712163) "queue2:src" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
  20 Thread 0x7f6668f4e640 (LWP 712164) "viewfinderbin-q" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
  21 Thread 0x7f664ffff640 (LWP 712165) "queue1:src" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
  22 Thread 0x7f664f7fe640 (LWP 712166) "pipewiresrc1:sr" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x55ca4de02c7c)
    at ./nptl/futex-internal.c:57
  23 Thread 0x7f664effd640 (LWP 712167) "queue5:src" 0x00007f66b4d620ac in ?? () from /lib/x86_64-linux-gnu/libvorbis.so.0
  24 Thread 0x7f664e7fc640 (LWP 712168) "preview-appsrc:" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
  25 Thread 0x7f666bf54640 (LWP 712171) "cheese" 0x00007f66b6c5cfde in epoll_wait (epfd=48, events=0x7f666bf535b0, maxevents=32, timeout=-1)
    at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
  26 Thread 0x7f666b753640 (LWP 712172) "pipewire-main-l" 0x00007f66b6c5cfde in epoll_wait (epfd=42, events=0x7f666b752630, maxevents=32, timeout=-1)
    at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
  27 Thread 0x7f66a3fff640 (LWP 712249) "threaded-ml" 0x00007f66b6c4fd7f in __GI___poll (fds=0x7f669c002930, nfds=2, timeout=1217) at ../sysdeps/unix/sysv/linux/poll.c:29
  28 Thread 0x7f664d7fa640 (LWP 712250) "audiosrc-actual" syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
  29 Thread 0x7f664dffb640 (LWP 712251) "audiosrc-actual" __futex_abstimed_wait_common64 (private=0, cancel=true, abstime=0x0, op=393, expected=0, futex_word=0x55ca4e831ff8)
    at ./nptl/futex-internal.c:57

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: cheese 41.1-1build1
ProcVersionSignature: Ubuntu 5.17.0-1026.27-oem 5.17.15
Uname: Linux 5.17.0-1026-oem x86_64
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Wed Mar 1 12:52:16 2023
InstallationDate: Installed on 2015-05-08 (2854 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
MachineType: Dell Inc. XPS 13 9310
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=pl_PL.UTF-8
 SHELL=/bin/bash
RelatedPackageVersions:
 cheese 41.1-1build1
 cheese-common 41.1-1build1
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 09/08/2022
dmi.bios.release: 3.11
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 3.11.0
dmi.board.name: 0DXP1F
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr3.11.0:bd09/08/2022:br3.11:svnDellInc.:pnXPS139310:pvr:rvnDellInc.:rn0DXP1F:rvrA00:cvnDellInc.:ct10:cvr:sku0991:
dmi.product.family: XPS
dmi.product.name: XPS 13 9310
dmi.product.sku: 0991
dmi.sys.vendor: Dell Inc.
---
ProblemType: Bug
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: nusch 13049 F.... wireplumber
 /dev/snd/seq: nusch 13046 F.... pipewire
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 22.04
HibernationDevice: RESUME=/dev/mapper/ubuntu--vg-swap_1
InstallationDate: Installed on 2015-05-08 (2854 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
MachineType: Dell Inc. XPS 13 9310
Package: linux (not installed)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=pl_PL.UTF-8
 SHELL=/bin/bash
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.17.0-1027-oem root=/dev/mapper/ubuntu--vg-root ro intel_idle.max_cstate=4 i915.enable_psr=0 i915.reset=2 tsc=unstable quiet splash crashkernel=512M-:192M vt.handoff=7
ProcVersionSignature: Ubuntu 5.17.0-1027.28-oem 5.17.15
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-5.17.0-1027-oem N/A
 linux-backports-modules-5.17.0-1027-oem N/A
 linux-firmware 20220329.git681281e4-0ubuntu3.10
Tags: jammy wayland-session
Uname: Linux 5.17.0-1027-oem x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm bumblebee cdrom dialout dip disk docker kismet kvm libvirt libvirtd lpadmin microk8s plugdev sambashare saned sudo tty ubridge usrp vboxusers video wireshark
_MarkForUpload: True
dmi.bios.date: 09/08/2022
dmi.bios.release: 3.11
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 3.11.0
dmi.board.name: 0DXP1F
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr3.11.0:bd09/08/2022:br3.11:svnDellInc.:pnXPS139310:pvr:rvnDellInc.:rn0DXP1F:rvrA00:cvnDellInc.:ct10:cvr:sku0991:
dmi.product.family: XPS
dmi.product.name: XPS 13 9310
dmi.product.sku: 0991
dmi.sys.vendor: Dell Inc.

Revision history for this message
Bartłomiej Żogała (nusch) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 2008894

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Bartłomiej Żogała (nusch) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Bartłomiej Żogała (nusch) wrote : CRDA.txt

apport information

Revision history for this message
Bartłomiej Żogała (nusch) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Bartłomiej Żogała (nusch) wrote : IwConfig.txt

apport information

Revision history for this message
Bartłomiej Żogała (nusch) wrote : Lspci.txt

apport information

Revision history for this message
Bartłomiej Żogała (nusch) wrote : Lspci-vt.txt

apport information

Revision history for this message
Bartłomiej Żogała (nusch) wrote : Lsusb.txt

apport information

Revision history for this message
Bartłomiej Żogała (nusch) wrote : Lsusb-t.txt

apport information

Revision history for this message
Bartłomiej Żogała (nusch) wrote : Lsusb-v.txt

apport information

Revision history for this message
Bartłomiej Żogała (nusch) wrote : PaInfo.txt

apport information

Revision history for this message
Bartłomiej Żogała (nusch) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Bartłomiej Żogała (nusch) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Bartłomiej Żogała (nusch) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Bartłomiej Żogała (nusch) wrote : ProcModules.txt

apport information

Revision history for this message
Bartłomiej Żogała (nusch) wrote : RfKill.txt

apport information

Revision history for this message
Bartłomiej Żogała (nusch) wrote : UdevDb.txt

apport information

Revision history for this message
Bartłomiej Żogała (nusch) wrote : WifiSyslog.txt
Revision history for this message
Bartłomiej Żogała (nusch) wrote : acpidump.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.