Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • cheese cheese
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 64
    • Issues 64
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • cheesecheese
  • Issues
  • #129

Closed
Open
Created Jan 18, 2022 by Sam Morris@yrro

1 minute hang when trying to open a device that's already open elsewhere

I've got a couple of webcams:

$ v4l2-ctl --list-devices
Video Capture 3 (usb-0000:00:14.0-6):
	/dev/video0
	/dev/video1
	/dev/video2
	/dev/video3

Video Capture 3 (usb-0000:0b:00.0-2.4):
	/dev/video4
	/dev/video5

It looks like MS Teams has one of them open:

$ fuser -v /dev/video*
                     USER        PID ACCESS COMMAND
/dev/video4:         sam.mor    12909 F.... pipewire
                     sam.mor   525834 F...m teams

When I select this device in Cheese's preferences, it freezes for 60 seconds before telling me that the device is not available.

I guess the underlying GStreamer video source is hanging, so maybe there's not much that can be done about this. OTOH a video source hanging shouldn't cause the whole app to freeze.

I'm attaching the output of GST_DEBUG_NO_COLOR=1 GST_DEBUG='*:5' cheese -d /dev/video4 run while Teams has /dev/video4 open: cheese-debug.txt.xz

Assignee
Assign to
Time tracking