After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 795022 - Hangs up on very first run, on sequential launches shows "No devices found"
Hangs up on very first run, on sequential launches shows "No devices found"
Status: RESOLVED OBSOLETE
Product: cheese
Classification: Applications
Component: general
3.28.x
Other Linux
: Normal major
: ---
Assigned To: Cheese Maintainer(s)
Cheese Maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2018-04-06 01:46 UTC by djfd
Modified: 2020-11-12 07:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Back trace of cheese during hang up (2.68 KB, text/plain)
2018-04-06 01:46 UTC, djfd
Details

Description djfd 2018-04-06 01:46:08 UTC
Created attachment 370571 [details]
Back trace of cheese during hang up

Hello guys,

On the very first run cheese hangs up forever, below is that I can see in terminal window
-----8<---------------------------------------------------->8-----
$ DISPLAY=:1 G_MESSAGES_DEBUG=all cheese 
(cheese:13411): Gtk-DEBUG: 11:21:48.079: Connecting to session manager
(cheese:13411): GdkPixbuf-DEBUG: 11:21:48.165: gdk_pixbuf_from_pixdata() called on:
(cheese:13411): GdkPixbuf-DEBUG: 11:21:48.165: 	Encoding raw
(cheese:13411): GdkPixbuf-DEBUG: 11:21:48.165: 	Dimensions: 64 x 64
(cheese:13411): GdkPixbuf-DEBUG: 11:21:48.165: 	Rowstride: 256, Length: 16408
(cheese:13411): GdkPixbuf-DEBUG: 11:21:48.165: 	Copy pixels == false

(cheese:13411): Gtk-WARNING **: 11:21:48.170: Theme parsing error: cheese.css:7:35: The style property GtkScrollbar:min-slider-length is deprecated and shouldn't be used anymore. It will be removed in a future version
-----8<---------------------------------------------------->8-----

Also please check the backtrace attached for this use case

After killing it with Ctrl+C, next run somehow working, GUI window appears BUT there is another error then: "No devices found", see below

-----8<---------------------------------------------------->8-----
$ LANG=C DISPLAY=:1 G_MESSAGES_DEBUG=all cheese 
(cheese:13439): Gtk-DEBUG: 11:29:39.456: Connecting to session manager
(cheese:13439): GdkPixbuf-DEBUG: 11:29:39.550: gdk_pixbuf_from_pixdata() called on:
(cheese:13439): GdkPixbuf-DEBUG: 11:29:39.550: 	Encoding raw
(cheese:13439): GdkPixbuf-DEBUG: 11:29:39.550: 	Dimensions: 64 x 64
(cheese:13439): GdkPixbuf-DEBUG: 11:29:39.550: 	Rowstride: 256, Length: 16408
(cheese:13439): GdkPixbuf-DEBUG: 11:29:39.550: 	Copy pixels == false

(cheese:13439): Gtk-WARNING **: 11:29:39.557: Theme parsing error: cheese.css:7:35: The style property GtkScrollbar:min-slider-length is deprecated and shouldn't be used anymore. It will be removed in a future version
** Message: 11:29:39.985: cheese-application.vala:211: Error during camera setup: No device found


(cheese:13439): cheese-CRITICAL **: 11:29:40.009: cheese_camera_device_get_name: assertion 'CHEESE_IS_CAMERA_DEVICE (device)' failed

(cheese:13439): GLib-CRITICAL **: 11:29:40.009: g_variant_new_string: assertion 'string != NULL' failed

(cheese:13439): GLib-CRITICAL **: 11:29:40.009: g_variant_ref_sink: assertion 'value != NULL' failed

(cheese:13439): GLib-GIO-CRITICAL **: 11:29:40.009: g_settings_schema_key_type_check: assertion 'value != NULL' failed

(cheese:13439): GLib-CRITICAL **: 11:29:40.009: g_variant_get_type_string: assertion 'value != NULL' failed

(cheese:13439): GLib-GIO-CRITICAL **: 11:29:40.009: g_settings_set_value: key 'camera' in 'org.gnome.Cheese' expects type 's', but a GVariant of type '(null)' was given

(cheese:13439): GLib-CRITICAL **: 11:29:40.009: g_variant_unref: assertion 'value != NULL' failed

** (cheese:13439): CRITICAL **: 11:29:40.009: cheese_preferences_dialog_setup_resolutions_for_device: assertion 'device != NULL' failed
-----8<---------------------------------------------------->8-----

This situation observed on three workstations (Arch linux x64, all is up to date).

Right now it can be worked around by stopping pipewire socket before running cheese, like this:
`systemctl --user stop pipewire.socket'
but, if I understand correct, it breaks cheese to pipewire integration

After that cheese starts working fine, camera is found on every launching without issues.

Thank you.
Comment 1 Dima Zharov 2018-04-06 11:50:26 UTC
I have the same issue since Update to Gnome 3.28.0 on 24.03. I have Antergos x64 and i make fresh installation Arch Linux x64 with Gnome. The same Problem after fresh installation. I try u solution today and report if cheese finally works on my machine. Pipewire is good for Wayland but i use Xorg. If i correct understand the Pipewire support Flatpak Apps used under Wayland.
Comment 2 Dima Zharov 2018-04-06 19:58:57 UTC
Finally it works. Cheese recognizes the video cam device after first boot and the gnome-control-center don't freezes.

To disable the pipeware.socket on startup you need to type the following command in terminal as root: "systemctl --global disable pipewire.socket".

Thank you djfd.
Comment 3 Strangiato 2018-04-08 11:49:45 UTC
I had the same problem on Arch Linux running Gnome 3.28 under Wayland.
Webcam from my laptop was not found.
Command mentioned in comment 2 solved my problem.

Thank you all.
Comment 4 djfd 2018-04-08 12:43:39 UTC
you are welcome, for sure, guys ))

However as I can see this issue is affecting both Xorg (like me and Dima Zharov) and wayland users (Strangiato).

@Dima Zharov: thanks, disabled it entirely

Thus, now waiting for the project maintainers reaction )) ni hai huozhema guys?
Comment 5 Loren Dias 2018-04-09 20:08:43 UTC
Archlinux with Cheese 3.28.0-1 and Logitech, Inc. HD Pro Webcam C920 checking in.

The code mentioned in comment 2 worked after I rebooted.

Thank You.
Comment 6 André Klapper 2020-11-12 07:12:08 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all
old bug reports and feature requests in GNOME Bugzilla which have not seen
updates for a long time.

If you still use cheese and if you still see this bug / want this feature in a
recent and currently supported version, then please feel free to report it at
https://gitlab.gnome.org/GNOME/cheese/-/issues/

Thank you for creating this report and we are sorry it could not be implemented
(volunteer workforce and time is quite limited).