← Back to team overview

debcrafters-packages team mailing list archive

Re: [Bug 2115642] Re: snapshot app not detecting camera as regular user, segfaults as root

 

Hi Nick,
not sure which command is "cam --list" is it a argument for "snapshot"?

anyway i ran this, apparently there are cam devices detected:



*$ v4l2-ctl --list-devicesipu6 (PCI:0000:00:05.0): /dev/video0 /dev/video1*





*[...]/dev/video31 /dev/media0Web Camera - HD: Web Camera - H
(usb-0000:00:14.0-6): /dev/video32 /dev/video33 /dev/media1*

But the command says that there was no sensor found for /dev/media0:

$ snapshot
[...]
[0:07:26.712925495] [8023]  INFO Camera camera_manager.cpp:327 libcamera
v0.4.0
*[0:07:26.722742733] [8059]  INFO SimplePipeline simple.cpp:1581 No sensor
found for /dev/media0*

Strangely, camera is indeed showed when running he command as root (even
whith the same "*No sensor found for /dev/media0"* message so perhaps this
is not related with the error). In this case, after a few seconds the app
crashes with a segfault.



El mar, 1 jul 2025 a las 19:15, Nick Rosbrook (<2115642@xxxxxxxxxxxxxxxxxx>)
escribió:

> Using the same version, I am not able to reproduce this.
>
> nr@six:~$ apt policy gnome-snapshot
> gnome-snapshot:
>   Installed: 47~beta-2ubuntu2
>   Candidate: 47~beta-2ubuntu2
>   Version table:
>  *** 47~beta-2ubuntu2 500
>         500 http://us.archive.ubuntu.com/ubuntu plucky/main amd64 Packages
>         100 /var/lib/dpkg/status
>
> I simply ran `snapshot` in a terminal as normal user. I was able to
> record video and take photos without issue.
>
> Maybe it's hardware specific. Can you share the output of cam --list?
>
> ** Changed in: gnome-snapshot (Ubuntu)
>        Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/2115642
>
> Title:
>   snapshot app not detecting camera as regular user, segfaults as root
>
> Status in gnome-snapshot package in Ubuntu:
>   Incomplete
>
> Bug description:
>   Hi,
>   i ran snapshot command as regular user and it showed a black screen and
> a "no sensor found" message. Then i tried to ran as root and the camera
> appeared to work, but when switching to video i had a SEGFAULT.
>
>   ProblemType: Bug
>   DistroRelease: Ubuntu 25.04
>   Package: gnome-snapshot 47~beta-2ubuntu2
>   ProcVersionSignature: Ubuntu 6.14.0-22.22-generic 6.14.5
>   Uname: Linux 6.14.0-22-generic x86_64
>   ApportVersion: 2.32.0-0ubuntu5.2
>   Architecture: amd64
>   CasperMD5CheckResult: unknown
>   CurrentDesktop: ubuntu:GNOME
>   Date: Mon Jun 30 15:23:39 2025
>   InstallationDate: Installed on 2023-08-11 (689 days ago)
>   InstallationMedia: Ubuntu 23.04 "Lunar Lobster" - Release amd64
> (20230418)
>   SourcePackage: gnome-snapshot
>   UpgradeStatus: Upgraded to plucky on 2025-04-13 (78 days ago)
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/gnome-snapshot/+bug/2115642/+subscriptions
>
>

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to gnome-snapshot in Ubuntu.
https://bugs.launchpad.net/bugs/2115642

Title:
  snapshot app not detecting camera as regular user, segfaults as root

Status in gnome-snapshot package in Ubuntu:
  Incomplete

Bug description:
  Hi,
  i ran snapshot command as regular user and it showed a black screen and a "no sensor found" message. Then i tried to ran as root and the camera appeared to work, but when switching to video i had a SEGFAULT.

  ProblemType: Bug
  DistroRelease: Ubuntu 25.04
  Package: gnome-snapshot 47~beta-2ubuntu2
  ProcVersionSignature: Ubuntu 6.14.0-22.22-generic 6.14.5
  Uname: Linux 6.14.0-22-generic x86_64
  ApportVersion: 2.32.0-0ubuntu5.2
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Jun 30 15:23:39 2025
  InstallationDate: Installed on 2023-08-11 (689 days ago)
  InstallationMedia: Ubuntu 23.04 "Lunar Lobster" - Release amd64 (20230418)
  SourcePackage: gnome-snapshot
  UpgradeStatus: Upgraded to plucky on 2025-04-13 (78 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-snapshot/+bug/2115642/+subscriptions



References