Snapshot No Camera Found

Bug #2058131 reported by corrado venturini
This bug report is a duplicate of:  Bug #2060390: Snapshot No Camera Found. Edit Remove
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gnome-snapshot (Ubuntu)
Incomplete
Low
Unassigned

Bug Description

Starting snapshot i see a black window with message "No Camera Found"

Mar 17 09:35:02 corrado-n4-nn-0310 org.gnome.Snapshot.desktop[4179]: 2024-03-17T08:35:02.968754Z INFO snapshot::application::imp: Snapshot (org.gnome.Snapshot)
Mar 17 09:35:02 corrado-n4-nn-0310 org.gnome.Snapshot.desktop[4179]: 2024-03-17T08:35:02.968767Z INFO snapshot::application::imp: Version: 45.2
Mar 17 09:35:02 corrado-n4-nn-0310 org.gnome.Snapshot.desktop[4179]: 2024-03-17T08:35:02.968769Z INFO snapshot::application::imp: Datadir: /usr/share/snapshot
Mar 17 09:35:02 corrado-n4-nn-0310 systemd[2063]: Started app-gnome-org.gnome.Snapshot-4179.scope - Application launched by gnome-shell.
Mar 17 09:35:20 corrado-n4-nn-0310 ubuntu-report[2089]: level=error msg="data were not delivered successfully to metrics server, retrying in 120s"
Mar 17 09:35:21 corrado-n4-nn-0310 systemd[2063]: Started app-gnome-org.gnome.DejaDup.Monitor-4217.scope - Application launched by gnome-session-binary.
Mar 17 09:35:22 corrado-n4-nn-0310 dbus-daemon[2115]: [session uid=1000 pid=2115] Failed to activate service 'org.freedesktop.Tracker3.Miner.Extract': timed out (service_start_timeout=120000ms)
Mar 17 09:35:30 corrado-n4-nn-0310 org.gnome.Snapshot.desktop[4179]: 2024-03-17T08:35:30.752824Z ERROR snapshot::widgets::window::imp: Could not take picture: The viewfinder is not in the READY state
Mar 17 09:35:54 corrado-n4-nn-0310 systemd[1]: Started anacron.service - Run anacron jobs.
Mar 17 09:35:54 corrado-n4-nn-0310 anacron[4229]: Anacron 2.3 started on 2024-03-17
Mar 17 09:35:54 corrado-n4-nn-0310 anacron[4229]: Normal exit (0 jobs run)
Mar 17 09:35:54 corrado-n4-nn-0310 systemd[1]: anacron.service: Deactivated successfully.

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: gnome-snapshot 45.2+vendored-0ubuntu1
ProcVersionSignature: Ubuntu 6.8.0-11.11-generic 6.8.0-rc4
Uname: Linux 6.8.0-11-generic x86_64
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Sun Mar 17 09:41:38 2024
ExecutablePath: /usr/bin/snapshot
InstallationDate: Installed on 2024-03-10 (7 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Daily amd64 (20240310)
ProcEnviron:
 LANG=en_US.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 XDG_RUNTIME_DIR=<set>
SourcePackage: gnome-snapshot
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
corrado venturini (corradoventu) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug report.

Could you install the libcamera-tools package and see if the qcam utility provided there lists your camera?

Also please share the output of
$ cam -l

Changed in gnome-snapshot (Ubuntu):
status: New → Incomplete
Revision history for this message
corrado venturini (corradoventu) wrote :

corrado@corrado-n9-nn-0316:~$ cam -l
[0:12:08.444939208] [6659] WARN IPAManager ipa_manager.cpp:154 No IPA found in '/usr/lib/x86_64-linux-gnu/libcamera'
[0:12:08.444968062] [6659] INFO Camera camera_manager.cpp:284 libcamera v0.2.0
Available cameras:
1: 'HD Webcam C615' (\_SB_.PC00.XHCI.RHUB.HS05-5:1.2-046d:082c)
corrado@corrado-n9-nn-0316:~$

corrado@corrado-n9-nn-0316:~$ qcam
QSocketNotifier: Can only be used with threads started with QThread
[0:14:09.434956679] [6880] WARN IPAManager ipa_manager.cpp:154 No IPA found in '/usr/lib/x86_64-linux-gnu/libcamera'
[0:14:09.434997569] [6880] INFO Camera camera_manager.cpp:284 libcamera v0.2.0
[0:14:24.178462387] [6880] INFO Camera camera.cpp:1183 configuring streams: (0) 1920x1080-MJPEG
Using software format conversion from MJPEG
corrado@corrado-n9-nn-0316:~$ snapshot

qcam recognizes the webcam and shows an image

Note: both cheese and guvcview are working fine

Revision history for this message
corrado venturini (corradoventu) wrote :

Still same problem with new version from proposed

corrado@corrado-n7-nn-0306:~$ apt policy gnome-snapshot
gnome-snapshot:
  Installed: 46.0-1ubuntu1
  Candidate: 46.0-1ubuntu1
  Version table:
 *** 46.0-1ubuntu1 100
        100 http://archive.ubuntu.com/ubuntu noble-proposed/universe amd64 Packages

should I open a new bug?

Revision history for this message
corrado venturini (corradoventu) wrote :

Same with gnome-snapshot: Installed: 46.0-1ubuntu2
with a different webcam Realtek Integrated_Webcam_HD

Changed in gnome-snapshot (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
corrado venturini (corradoventu) wrote (last edit ):

I have 2 webcams, if I connect both guvcview allows me to choose which one to use, camera chooses without asking.
Also cheese allows choose between different cameras.

If I connect my second camera the messages change:
corrado@corrado-n7-nn-0408:~$ snapshot
2024-04-09T12:21:10.548208Z INFO snapshot::application::imp: Snapshot (org.gnome.Snapshot)
2024-04-09T12:21:10.548228Z INFO snapshot::application::imp: Version: 46.0
2024-04-09T12:21:10.548231Z INFO snapshot::application::imp: Datadir: /usr/share/snapshot
2024-04-09T12:21:10.922843Z ERROR aperture::viewfinder: Could not start camerabin: Element failed to change its state
2024-04-09T12:21:10.924966Z ERROR aperture::viewfinder: Could not start camerabin: Element failed to change its state
2024-04-09T12:21:10.925607Z ERROR aperture::viewfinder: Bus Error from Some("/GstCameraBin:camerabin0/GstWrapperCameraBinSrc:camerasrc/GstAutoVideoSrc:camerasrc-real-src/GstPipeWireSrc:camerasrc-real-src-actual-src-pipewir")
stream error: error output enum formats: Invalid argument
Some("../src/gst/gstpipewiresrc.c(689): on_state_changed (): /GstCameraBin:camerabin0/GstWrapperCameraBinSrc:camerasrc/GstAutoVideoSrc:camerasrc-real-src/GstPipeWireSrc:camerasrc-real-src-actual-src-pipewir")
2024-04-09T12:21:10.925628Z ERROR aperture::viewfinder: Bus Error from Some("/GstCameraBin:camerabin0/GstWrapperCameraBinSrc:camerasrc/GstAutoVideoSrc:camerasrc-real-src/GstPipeWireSrc:camerasrc-real-src-actual-src-pipewir")
Internal data stream error.
Some("../libs/gst/base/gstbasesrc.c(3175): gst_base_src_loop (): /GstCameraBin:camerabin0/GstWrapperCameraBinSrc:camerasrc/GstAutoVideoSrc:camerasrc-real-src/GstPipeWireSrc:camerasrc-real-src-actual-src-pipewir:\nstreaming stopped, reason not-negotiated (-4)")

Revision history for this message
Sebastien Bacher (seb128) wrote :

Following the upstream debug info, 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 → Low
status: Confirmed → Incomplete
Revision history for this message
corrado venturini (corradoventu) wrote :

continuation in Bug 2060390 with gnome-snapshot new version

Revision history for this message
Lainer Donet (lainerdonet87) wrote :

If you encounter the "No Camera Found" issue while using GNOME Snapshot, here's how you can address it:
- Close the App: First, close the GNOME Snapshot app if it's open.
- Restart Pipewire: Open a terminal by pressing Ctrl+Alt+T. Then, restart Pipewire by running the following command:

systemctl --user restart pipewire

- Launch GNOME Snapshot: After restarting Pipewire, run the following command to start the camera app from the command line:

snapshot

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.