Bug 475049 - Kamoso crash on camera unplugging
Summary: Kamoso crash on camera unplugging
Status: REPORTED
Alias: None
Product: kamoso
Classification: Applications
Component: general (show other bugs)
Version: 23.08.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-30 13:13 UTC by Egor Kuznetsov
Modified: 2023-09-30 13:26 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 Egor Kuznetsov 2023-09-30 13:13:23 UTC
SUMMARY
***
When I start Kamoso with plugged USB camera, it can show picture, but when I unplug it with open Kamoso, it crashed with some logs in terminal
***


STEPS TO REPRODUCE
1. Open Kamoso
2. Plug USB webcam
3. Unplug USB webcam

OBSERVED RESULT
Kamoso crashed with next log:
(kamoso:14078): GLib-GObject-CRITICAL **: 16:07:58.798: g_object_notify: assertion 'G_IS_OBJECT (object)' failed
Fatal glibc error: pthread_mutex_lock.c:130 (___pthread_mutex_lock): assertion failed: mutex->__data.__owner == 0
20 -- exe=/usr/bin/kamoso
17 -- platform=wayland
15 -- appname=kamoso
17 -- apppath=/usr/bin
9 -- signal=6
10 -- pid=14078
19 -- appversion=23.08.1
19 -- programname=Kamoso
31 -- bugaddress=submit@bugs.kde.org
KCrash: Application 'kamoso' crashing...
KCrash: Attempting to start /usr/libexec/drkonqi
kf5idletime_wayland: This plugin does not support polling idle time
[1]  + 14078 suspended (signal)  kamoso


EXPECTED RESULT
Nothing crashed, Kamoso black screen again

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230926
KDE Plasma Version: 5.27.8
KDE Frameworks Version: 5.110.0
Qt Version: 5.15.10
Kernel Version: 6.5.4-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 31.2 GiB of RAM
Graphics Processor: AMD Radeon RX 6900 XT
Manufacturer: ASUS
Comment 1 Egor Kuznetsov 2023-09-30 13:26:26 UTC
Crash report with debugging symbols here. Looks like what needed?

[KCrash Handler]
#4  g_type_check_instance_is_fundamentally_a (type_instance=type_instance@entry=0x563fd78178f0, fundamental_type=fundamental_type@entry=80) at ../gobject/gtype.c:4184
#5  0x00007f53ab4e6428 in g_object_notify (object=0x563fd78178f0, property_name=0x7f53654608c9 "zoom") at ../gobject/gobject.c:1583
#6  0x00007f53ab4df468 in g_closure_invoke (closure=0x563fd78d5010, return_value=0x0, n_param_values=2, param_values=0x7ffebf06a440, invocation_hint=0x7ffebf06a390) at ../gobject/gclosure.c:832
#7  0x00007f53ab4f261c in signal_emit_unlocked_R (node=node@entry=0x7ffebf06a510, detail=detail@entry=2562, instance=instance@entry=0x563fd779dea0, emission_return=emission_return@entry=0x0, instance_and_params=instance_and_params@entry=0x7ffebf06a440) at ../gobject/gsignal.c:3980
#8  0x00007f53ab4f4031 in signal_emit_valist_unlocked (instance=instance@entry=0x563fd779dea0, signal_id=signal_id@entry=1, detail=detail@entry=2562, var_args=var_args@entry=0x7ffebf06a670) at ../gobject/gsignal.c:3612
#9  0x00007f53ab4f9ce2 in g_signal_emit_valist (instance=0x563fd779dea0, signal_id=1, detail=2562, var_args=0x7ffebf06a670) at ../gobject/gsignal.c:3355
#10 0x00007f53ab4f9d8f in g_signal_emit (instance=instance@entry=0x563fd779dea0, signal_id=<optimized out>, detail=<optimized out>) at ../gobject/gsignal.c:3675
#11 0x00007f53ab4e36e4 in g_object_dispatch_properties_changed (object=0x563fd779dea0, n_pspecs=<optimized out>, pspecs=<optimized out>) at ../gobject/gobject.c:1427
#12 0x00007f53a96ec1e4 in gst_object_dispatch_properties_changed (object=0x563fd779dea0, n_pspecs=1, pspecs=0x7ffebf06a7e0) at ../gst/gstobject.c:455
#13 0x00007f53ab4e4038 in g_object_notify_queue_thaw (object=0x563fd779dea0, nqueue=<optimized out>) at ../gobject/gobject.c:358
#14 0x00007f53ab4e7ee6 in g_object_set_valist (var_args=0x7ffebf06a970, first_property_name=<optimized out>, object=<optimized out>) at ../gobject/gobject.c:2792
#15 g_object_set_valist (object=<optimized out>, first_property_name=<optimized out>, var_args=0x7ffebf06a970) at ../gobject/gobject.c:2741
#16 0x00007f53ab4e8ac3 in g_object_set (_object=0x563fd779dea0, first_property_name=first_property_name@entry=0x7f53654608c9 "zoom") at ../gobject/gobject.c:2956
#17 0x00007f536545ccb1 in gst_camera_bin_create_elements (camera=0x563fd7ae7b20) at ../gst/camerabin2/gstcamerabin2.c:1742
#18 gst_camera_bin_change_state (element=0x563fd7ae7b20, trans=GST_STATE_CHANGE_NULL_TO_READY) at ../gst/camerabin2/gstcamerabin2.c:1891
#19 0x00007f53a971a47b in gst_element_change_state (element=element@entry=0x563fd7ae7b20, transition=transition@entry=GST_STATE_CHANGE_NULL_TO_READY) at ../gst/gstelement.c:3093
#20 0x00007f53a971ad0b in gst_element_set_state_func (element=0x563fd7ae7b20, state=GST_STATE_READY) at ../gst/gstelement.c:3047
#21 0x0000563fd5874a30 in WebcamControl::playDevice (this=0x7ffebf06b060, device=0x563fd732f050) at /usr/include/qt5/QtCore/qscopedpointer.h:138
#22 0x0000563fd5875d3d in WebcamControl::onBusMessage (message=<optimized out>, this=<optimized out>) at /usr/src/debug/kamoso-23.08.1/src/video/webcamcontrol.cpp:308
#23 webcamWatch (message=<optimized out>, user_data=0x7ffebf06b060) at /usr/src/debug/kamoso-23.08.1/src/video/webcamcontrol.cpp:244
#24 0x00007f53a9702131 in gst_bus_source_dispatch (source=0x563fd7058060, callback=0x563fd5875ad0 <webcamWatch(GstBus*, GstMessage*, gpointer)>, user_data=0x7ffebf06b060) at ../gst/gstbus.c:821
#25 0x00007f53a95bcef0 in ?? () from /lib64/libglib-2.0.so.0
#26 0x00007f53a95beb18 in ?? () from /lib64/libglib-2.0.so.0
#27 0x00007f53a95bf1cc in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#28 0x00007f53a9b464a6 in QEventDispatcherGlib::processEvents (this=0x563fd6e62e10, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#29 0x00007f53a9aebffb in QEventLoop::exec (this=this@entry=0x7ffebf06ae70, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#30 0x00007f53a9af4490 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#31 0x0000563fd587077d in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kamoso-23.08.1/src/main.cpp:47
[Inferior 1 (process 15274) detached]