Bug 491920 - Kamoso crashes when the camera is inaccessible
Summary: Kamoso crashes when the camera is inaccessible
Status: REPORTED
Alias: None
Product: kamoso
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-19 20:23 UTC by Bart Ribbers
Modified: 2024-08-19 20:33 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bart Ribbers 2024-08-19 20:23:52 UTC
Currently on the Google Pixel 3A work is in progress to make the camera work. Currently it works but only once per boot. Kamoso will show a picture briefly after which it crashes while for example GNOME's Snapshot shows an image for the entire time the application is open (until the user closes and restarts it).

When it crashes the following error is thrown:

$ kamoso 
kf.kirigami: Failed to find a Kirigami platform plugin
error debugMessage: stream error: error set output format: -22 (Invalid argument)
error: "../src/gst/gstpipewiresrc.c(704): on_state_changed (): /GstCameraBin:camerabin/GstWrapperCameraBinSrc:/GstPipeWireSrc:Built-in Front Camera"
Stop

(kamoso:4067): GLib-GObject-CRITICAL **: 22:19:49.651: g_object_notify: assertion 'G_IS_OBJECT (object)' failed
error debugMessage: stream error: error set output format: -22 (Invalid argument)
error: "../src/gst/gstpipewiresrc.c(704): on_state_changed (): /GstCameraBin:camerabin/GstWrapperCameraBinSrc:/GstPipeWireSrc:Built-in Front Camera"
Stop

(kamoso:4067): GLib-GObject-CRITICAL **: 22:19:50.108: g_object_notify: assertion 'G_IS_OBJECT (object)' failed

(kamoso:4067): GLib-GObject-CRITICAL **: 22:19:50.108: g_object_notify: assertion 'G_IS_OBJECT (object)' failed
error debugMessage: stream error: error set output format: -22 (Invalid argument)
error: "../src/gst/gstpipewiresrc.c(704): on_state_changed (): /GstCameraBin:camerabin/GstWrapperCameraBinSrc:/GstPipeWireSrc:Built-in Front Camera"
Stop
Segmentation fault

I understand not being able to show a camera image when this happens but the application should at least not crash and show an error instead.