Snapshot cannot detect laptop camera

Bug #2061285 reported by Islam
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gnome-snapshot (Ubuntu)
Confirmed
High
Unassigned

Bug Description

It say no camera found, while the Cheese app can detect it fine.

# lsusb
Bus 003 Device 003: ID 13d3:56eb IMC Networks USB2.0 HD UVC WebCam

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: gnome-snapshot 46.0-1ubuntu2
ProcVersionSignature: Ubuntu 6.8.0-22.22-generic 6.8.1
Uname: Linux 6.8.0-22-generic x86_64
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sun Apr 14 13:31:16 2024
InstallationDate: Installed on 2024-03-22 (23 days ago)
InstallationMedia: Ubuntu 23.10.1 "Mantic Minotaur" - Release amd64 (20231016.1)
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
SourcePackage: gnome-snapshot
UpgradeStatus: Upgraded to noble on 2024-04-11 (3 days ago)

Revision history for this message
Islam (islam) wrote :
description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report. It seems similar to bug #2060390,

could you get the output of

$ pw-dump | grep default.video.source

and

$ gst-device-monitor-1.0 Video/Source

?

Changed in gnome-snapshot (Ubuntu):
importance: Undecided → High
status: New → Incomplete
Revision history for this message
Islam (islam) wrote :

You are welcome.

$ pw-dump | grep default.video.source
$ gst-device-monitor-1.0 Video/Source
Probing devices...

[23:15:51.024474600] [158497] WARN IPAManager ipa_manager.cpp:154 No IPA found in '/usr/lib/x86_64-linux-gnu/libcamera'
[23:15:51.024569248] [158497] INFO Camera camera_manager.cpp:284 libcamera v0.2.0

Device found:

 name : \_SB_.PC00.XHCI.RHUB.HS05-5:1.0-13d3:56eb
 class : Source/Video
 caps : image/jpeg, width=160, height=120
         image/jpeg, width=176, height=144
         image/jpeg, width=320, height=240
         image/jpeg, width=352, height=288
         image/jpeg, width=640, height=480
         image/jpeg, width=1280, height=720
         video/x-raw, format=YUY2, width=160, height=120
         video/x-raw, format=YUY2, width=176, height=144
         video/x-raw, format=YUY2, width=320, height=240
         video/x-raw, format=YUY2, width=352, height=288
         video/x-raw, format=YUY2, width=640, height=480
         video/x-raw, format=YUY2, width=1280, height=720
 gst-launch-1.0 libcamerasrc camera-name="\\_SB_.PC00.XHCI.RHUB.HS05-5:1.0-13d3:56eb" ! ...

Revision history for this message
Marius Gedminas (mgedmin) wrote :

Probably a duplicate of bug 2061687, given the empty pw-dump output. Does systemctl --user restart wireplumber.service fix it for the remainder of the login session?

Revision history for this message
Islam (islam) wrote :

Yes.

The first time I launched Snapshot after restarting that service, it crashed.

The second time, it worked fine and detected the camera:
$ snapshot
2024-05-08T20:56:32.905621Z INFO snapshot::application::imp: Snapshot (org.gnome.Snapshot)
2024-05-08T20:56:32.905639Z INFO snapshot::application::imp: Version: 46.2
2024-05-08T20:56:32.905643Z INFO snapshot::application::imp: Datadir: /usr/share/snapshot

** (gst-plugin-scanner:90717): CRITICAL **: 23:56:32.997: _dma_fmt_to_dma_drm_fmts: assertion 'fmt != GST_VIDEO_FORMAT_UNKNOWN' failed

Moshe Caspi (mcaspi12)
Changed in gnome-snapshot (Ubuntu):
status: Incomplete → New
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-snapshot (Ubuntu):
status: New → 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.