Snapshot No Camera Found

Bug #2060390 reported by corrado venturini
68
This bug affects 14 people
Affects Status Importance Assigned to Milestone
PipeWire
New
Unknown
gnome-snapshot (Ubuntu)
Triaged
High
Unassigned

Bug Description

Start snapshot, I see just a black window with a message: "No camera found"
see attachment
Note guvcview works fine with this camera

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 7 17:29:25 2024
ExecutablePath: /usr/bin/snapshot
InstallationDate: Installed on 2024-04-07 (0 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Daily amd64 (20240407.2)
ProcEnviron:
 LANG=C.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 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 the bug report. Is that the same issue than bug #2058131?

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):
status: New → Incomplete
Revision history for this message
corrado venturini (corradoventu) wrote :

Yes, same issue, but gnome-snapshot changed from gnome-snapshot 45.2+vendored-0ubuntu1 to gnome-snapshot 46.0-1ubuntu2.
corrado@corrado-n9-nn-0410:~$ pw-dump | grep default.video.source
corrado@corrado-n9-nn-0410:~$ gst-device-monitor-1.0 Video/Source
Probing devices...

[0:18:56.648040228] [8447] WARN IPAManager ipa_manager.cpp:154 No IPA found in '/usr/lib/x86_64-linux-gnu/libcamera'
[0:18:56.648141537] [8447] INFO Camera camera_manager.cpp:284 libcamera v0.2.0

Device found:

 name : \_SB_.PC00.XHCI.RHUB.HS05-5:1.2-046d:082c
 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=432, height=240
         image/jpeg, width=640, height=360
         image/jpeg, width=640, height=480
         image/jpeg, width=800, height=448
         image/jpeg, width=864, height=480
         image/jpeg, width=800, height=600
         image/jpeg, width=1024, height=576
         image/jpeg, width=960, height=720
         image/jpeg, width=1280, height=720
         image/jpeg, width=1600, height=896
         image/jpeg, width=1920, height=1080
         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=432, height=240
         video/x-raw, format=YUY2, width=640, height=360
         video/x-raw, format=YUY2, width=640, height=480
         video/x-raw, format=YUY2, width=800, height=448
         video/x-raw, format=YUY2, width=864, height=480
         video/x-raw, format=YUY2, width=800, height=600
         video/x-raw, format=YUY2, width=1024, height=576
         video/x-raw, format=YUY2, width=960, height=720
         video/x-raw, format=YUY2, width=1280, height=720
         video/x-raw, format=YUY2, width=1600, height=896
         video/x-raw, format=YUY2, width=1920, height=1080
 gst-launch-1.0 libcamerasrc camera-name="\\_SB_.PC00.XHCI.RHUB.HS05-5:1.2-046d:082c" ! ...

corrado@corrado-n9-nn-0410:~$

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

Thanks, that's probably similar to that report Jeremy made upstream, https://gitlab.gnome.org/GNOME/snapshot/-/issues/159

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

 installing pipewire-libcamera as adviced upstream + reboot did not solve the issue for me

Changed in pipewire:
status: Unknown → New
Revision history for this message
corrado venturini (corradoventu) wrote (last edit ):

On Ubuntu 24.04 snap-store for 'camera' proposes a different package:
https://forum.snapcraft.io/t/snap-store-proposed-camera-or-gnome-snapshot/39727

The proposed app is 'pinhole' installed with name camera .... very confusing!!!

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

still same problem with version 46.2

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

Also adding video group has no effect but the message is no longer "No camera found" but "Could not play camera stream"
corrado@corrado-n5-nn-0414:~$ groups
corrado adm cdrom sudo dip video plugdev users lpadmin
corrado@corrado-n5-nn-0414:~$ snapshot
2024-04-16T06:26:44.996773Z INFO snapshot::application::imp: Snapshot (org.gnome.Snapshot)
2024-04-16T06:26:44.996784Z INFO snapshot::application::imp: Version: 46.2
2024-04-16T06:26:44.996786Z INFO snapshot::application::imp: Datadir: /usr/share/snapshot
2024-04-16T06:26:45.591332Z ERROR aperture::viewfinder: Could not start camerabin: Element failed to change its state
2024-04-16T06:26:45.594009Z ERROR aperture::viewfinder: Could not start camerabin: Element failed to change its state
2024-04-16T06:26:45.594486Z 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-16T06:26:45.594514Z 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 :

@corrado, any chance you could report your issue on https://gitlab.freedesktop.org/pipewire/pipewire/-/issues ?

Revision history for this message
corrado venturini (corradoventu) wrote : Re: [Bug 2060390] Re: Snapshot No Camera Found

ok, done, let me know if additional info is needed,
Corrado Venturini

Il giorno mar 16 apr 2024 alle ore 12:25 Sebastien Bacher <
<email address hidden>> ha scritto:

> @corrado, any chance you could report your issue on
> https://gitlab.freedesktop.org/pipewire/pipewire/-/issues ?
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2060390
>
> Title:
> Snapshot No Camera Found
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/pipewire/+bug/2060390/+subscriptions
>
>

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

After install pipewire 1.0.5-1 from proposed and reboot gnome-snapshot WORKS FINE!
Thanks a lot

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

On install from Ubuntu 24.04 LTS "Noble Numbat" - Beta amd64 (20240420) camera starts only after connecting to group video

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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