Bug 480970

Summary: Kamoso crashes when camera already opened by other application
Product: [Applications] kamoso Reporter: nilskemail+kde
Component: generalAssignee: Aleix Pol <aleixpol>
Status: REPORTED ---    
Severity: crash CC: vazsingh
Priority: NOR Keywords: drkonqi
Version First Reported In: 23.08.4   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description nilskemail+kde 2024-02-06 18:45:22 UTC
Application: kamoso (23.08.4)

Qt Version: 5.15.12
Frameworks Version: 5.113.0
Operating System: Linux 6.5.6-300.fc39.x86_64 x86_64
Windowing System: Wayland
Distribution: Fedora Linux 39 (KDE Plasma)
DrKonqi: 5.27.10 [KCrashBackend]

-- Information about the crash:
Kamoso crashes instantly when the camera is already used by another process. In my case this was Firefox which was already capturing using the webcam.

The crash can be reproduced every time.

-- Backtrace:
Application: Kamoso (kamoso), signal: Segmentation fault

[KCrash Handler]
#4  0x00007fdb9d723a3b in gst_element_change_state_func.lto_priv () from /lib64/libgstreamer-1.0.so.0
#5  0x00007fdb701b0efd in gst_base_sink_change_state () from /lib64/libgstbase-1.0.so.0
#6  0x00007fdb9d722a94 in gst_element_change_state () from /lib64/libgstreamer-1.0.so.0
#7  0x00007fdb9d723349 in gst_element_set_state_func.lto_priv () from /lib64/libgstreamer-1.0.so.0
#8  0x00007fdb3cd2140e in gst_camera_bin_change_state () from /lib64/gstreamer-1.0/libgstcamerabin.so
#9  0x00007fdb9d722a94 in gst_element_change_state () from /lib64/libgstreamer-1.0.so.0
#10 0x00007fdb9d723349 in gst_element_set_state_func.lto_priv () from /lib64/libgstreamer-1.0.so.0
#11 0x0000560a06d4620d in WebcamControl::stop() ()
#12 0x0000560a06d464f9 in webcamWatch(_GstBus*, _GstMessage*, void*) ()
#13 0x00007fdb9d7096d7 in gst_bus_source_dispatch () from /lib64/libgstreamer-1.0.so.0
#14 0x00007fdb9c911e5c in g_main_context_dispatch_unlocked.lto_priv () from /lib64/libglib-2.0.so.0
#15 0x00007fdb9c96cf18 in g_main_context_iterate_unlocked.isra () from /lib64/libglib-2.0.so.0
#16 0x00007fdb9c90fad3 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#17 0x00007fdb9cd073b9 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#18 0x00007fdb9ccb383b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#19 0x00007fdb9ccbbacb in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#20 0x0000560a06d40b28 in main ()
[Inferior 1 (process 278270) detached]

The reporter indicates this bug may be a duplicate of or related to bug 459700, bug 471484.

Reported using DrKonqi
Comment 1 vazsingh 2024-03-03 08:09:34 UTC
Created attachment 166332 [details]
New crash information added by DrKonqi

kamoso (23.08.5) using Qt 5.15.12

Running Fedora 39 on MacBook Air (2014 model). Missing driver?

-- Backtrace (Reduced):
#4  0x00007fec47123a3b in gst_element_change_state_func.lto_priv () from /lib64/libgstreamer-1.0.so.0
#5  0x00007fec3104befd in gst_base_sink_change_state () from /lib64/libgstbase-1.0.so.0
#6  0x00007fec47122a94 in gst_element_change_state () from /lib64/libgstreamer-1.0.so.0
#7  0x00007fec47123349 in gst_element_set_state_func.lto_priv () from /lib64/libgstreamer-1.0.so.0
#8  0x00007fec181d340e in gst_camera_bin_change_state () from /lib64/gstreamer-1.0/libgstcamerabin.so