GNOME Snapshot doesn't show webcam image

Bug #2059726 reported by Marcos Alano
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
gnome-snapshot (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I'm getting errors when I try to use GNOME Snapshot on Ubuntu Noble:
➜ snapshot
2024-03-28T19:30:02.289308Z INFO snapshot::application::imp: Snapshot (org.gnome.Snapshot)
2024-03-28T19:30:02.289323Z INFO snapshot::application::imp: Version: 45.2
2024-03-28T19:30:02.289327Z INFO snapshot::application::imp: Datadir: /usr/share/snapshot
libEGL warning: egl: failed to create dri2 screen
2024-03-28T19:30:02.675094Z ERROR aperture::viewfinder: Could not start camerabin: Element failed to change its state
2024-03-28T19:30:02.679375Z ERROR aperture::viewfinder: Could not start camerabin: Element failed to change its state
2024-03-28T19:30:02.680012Z 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-03-28T19:30:02.680031Z 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)")
2024-03-28T19:30:02.680074Z ERROR aperture::viewfinder: Bus Error from Some("/GstCameraBin:camerabin0/GstFileSink:videobin-filesink")
Could not open file "cap_%d" for writing.
Some("../plugins/elements/gstfilesink.c(507): gst_file_sink_open_file (): /GstCameraBin:camerabin0/GstFileSink:videobin-filesink:\nsystem error: Permission denied")
2024-03-28T19:30:02.680081Z ERROR aperture::viewfinder: Bus Error from Some("/GstCameraBin:camerabin0/GstFileSink:videobin-filesink")
GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
Some("../libs/gst/base/gstbasesink.c(5906): gst_base_sink_change_state (): /GstCameraBin:camerabin0/GstFileSink:videobin-filesink:\nFailed to start")
2024-03-28T19:30:02.680318Z ERROR aperture::viewfinder: Bus Error from Some("/GstCameraBin:camerabin0/GstFileSink:videobin-filesink")
Could not open file "cap_%d" for writing.
Some("../plugins/elements/gstfilesink.c(507): gst_file_sink_open_file (): /GstCameraBin:camerabin0/GstFileSink:videobin-filesink:\nsystem error: Permission denied")
2024-03-28T19:30:02.680325Z ERROR aperture::viewfinder: Bus Error from Some("/GstCameraBin:camerabin0/GstFileSink:videobin-filesink")
GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
Some("../libs/gst/base/gstbasesink.c(5906): gst_base_sink_change_state (): /GstCameraBin:camerabin0/GstFileSink:videobin-filesink:\nFailed to start")

ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: gnome-snapshot 45.2+vendored-0ubuntu1
Uname: Linux 6.8.2-x64v4-xanmod1 x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.28.0-0ubuntu1
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Thu Mar 28 16:31:40 2024
InstallationDate: Installed on 2021-11-26 (853 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
SourcePackage: gnome-snapshot
UpgradeStatus: Upgraded to noble on 2024-02-23 (34 days ago)

Revision history for this message
Marcos Alano (mhalano) wrote :
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
Revision history for this message
lotuspsychje (lotuspsychje) wrote :

Ubuntu desktop 24.04 development branch @ 13/04/2024

Im getting similar errors on launching gnome-snapshot but on a newer version as the

bug filer, aka 46.0-1ubuntu2 with an error: 'could not play camera stream'

2024-04-13T15:51:14.787471Z INFO snapshot::application::imp: Snapshot (org.gnome.Snapshot)
2024-04-13T15:51:14.787485Z INFO snapshot::application::imp: Version: 46.0
2024-04-13T15:51:14.787489Z INFO snapshot::application::imp: Datadir: /usr/share/snapshot
2024-04-13T15:51:15.120628Z ERROR aperture::viewfinder: Could not start camerabin: Element failed to change its state
2024-04-13T15:51:15.123211Z ERROR aperture::viewfinder: Could not start camerabin: Element failed to change its state
2024-04-13T15:51:15.124225Z 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: Ongeldig 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-13T15:51:15.124248Z 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)")

The webcam device seems to be found on my end:

pw-dump | grep default.video.source
      { "subject": 0, "key": "default.video.source", "type": "Spa:String:JSON", "value": { "name": "v4l2_input.pci-0000_05_00.4-usb-0_4_1.0" } },

Possibly upstream bug https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/3959 ?

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.