Bug 478794 - KDE Connect crashes when bluetooth device (headphones) is disconnected.
Summary: KDE Connect crashes when bluetooth device (headphones) is disconnected.
Status: RESOLVED DUPLICATE of bug 477104
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: 23.08.4
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-20 21:34 UTC by Joshua Glass
Modified: 2024-01-10 19:21 UTC (History)
4 users (show)

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


Attachments
New crash information added by DrKonqi (2.70 KB, text/plain)
2024-01-10 19:21 UTC, Tjado Edzards
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Glass 2023-12-20 21:34:09 UTC
SUMMARY
KDE Connect crashes when a bluethooth device (headphones) is disconnected.
Potentially a duplicate of #477104

Application: KDE Connect Daemon (kdeconnectd), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  0x00007f5fa0a4090e in  () at /usr/lib/libKF5PulseAudioQt.so.3
#7  0x00007f5fa09f02eb in context_get_card_info_callback (pd=pd@entry=0x55bb4d8ecb40, command=command@entry=2, tag=tag@entry=1926, t=t@entry=0x55bb4d8d1f70, userdata=userdata@entry=0x55bb4d930ba0) at ../pulseaudio/src/pulse/introspect.c:990
#8  0x00007f5fa0985ef2 in run_action (pd=0x55bb4d8ecb40, r=0x55bb4d821a10, command=2, ts=0x55bb4d8d1f70) at ../pulseaudio/src/pulsecore/pdispatch.c:291
#9  0x00007f5fa098713c in pa_pdispatch_run (pd=0x55bb4d8ecb40, packet=packet@entry=0x55bb4d8d5a60, ancil_data=ancil_data@entry=0x55bb4d8ec6f8, userdata=userdata@entry=0x55bb4d861430) at ../pulseaudio/src/pulsecore/pdispatch.c:344
#10 0x00007f5fa09de254 in pstream_packet_callback (p=<optimized out>, packet=0x55bb4d8d5a60, ancil_data=0x55bb4d8ec6f8, userdata=0x55bb4d861430) at ../pulseaudio/src/pulse/context.c:364
#11 0x00007f5fa098bfb5 in do_read (p=p@entry=0x55bb4d8ec460, re=re@entry=0x55bb4d8ec5e0) at ../pulseaudio/src/pulsecore/pstream.c:1023
#12 0x00007f5fa098ce4f in do_pstream_read_write (p=0x55bb4d8ec460) at ../pulseaudio/src/pulsecore/pstream.c:261
#13 0x00007f5fa23da5e8 in dispatch_func (source=0x55bb4d8603f0, callback=<optimized out>, userdata=<optimized out>) at ../pulseaudio/src/pulse/glib-mainloop.c:581
#14 0x00007f5feab0df69 in g_main_dispatch (context=0x7f5fe0000ec0) at ../glib/glib/gmain.c:3476
#15 0x00007f5feab6c367 in g_main_context_dispatch_unlocked (context=0x7f5fe0000ec0) at ../glib/glib/gmain.c:4284
#16 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7f5fe0000ec0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4349
#17 0x00007f5feab0c162 in g_main_context_iteration (context=0x7f5fe0000ec0, may_block=1) at ../glib/glib/gmain.c:4414
#18 0x00007f5fec2e9e0c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x55bb4d38b8a0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#19 0x00007f5fec299d54 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffd597425e0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#20 0x00007f5fec29b1f3 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#21 0x00007f5fec73bf12 in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1870
#22 0x00007f5fecf76cda in QApplication::exec() () at kernel/qapplication.cpp:2832
#23 0x000055bb4c084517 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdeconnect/kdeconnect-kde-23.08.4/daemon/kdeconnectd.cpp:186
[Inferior 1 (process 1884) detached]


STEPS TO REPRODUCE
1. Disconnect bluetooth headset

OBSERVED RESULT
App crashes and KDE Crash handler appears

EXPECTED RESULT
Should not crash

SOFTWARE/OS VERSIONS
Arch Linux 6.6.7.
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.11
Comment 1 Nicolas Fella 2023-12-30 13:43:11 UTC
*** This bug has been marked as a duplicate of bug 477104 ***
Comment 2 Tjado Edzards 2024-01-10 19:21:55 UTC
Created attachment 164795 [details]
New crash information added by DrKonqi

kdeconnectd (23.08.4) using Qt 5.15.11

While running KDE Connect and GSConnect at the same time in GNOME, after closing the laptop while my headphones are connected (via bluetooth) the headphones disconnected.
After reopening the laptop, I am greeted with the crash handler. The headphones automatically reconnected. This does not happen with my mouse.

-- Backtrace (Reduced):
#7  0x00007fab2bcfcf24 in context_get_server_info_callback (pd=pd@entry=0x55fa4a133f60, command=command@entry=1, tag=tag@entry=355, t=t@entry=0x0, userdata=userdata@entry=0x55fa4a554750) at ../pulseaudio/src/pulse/introspect.c:122
#8  0x00007fab2bca4ef2 in run_action (pd=0x55fa4a133f60, r=0x55fa4a554990, command=1, ts=0x0) at ../pulseaudio/src/pulsecore/pdispatch.c:291
#9  0x00007fab4c70f5b1 in dispatch_func (source=0x55fa4a40f3d0, callback=<optimized out>, userdata=<optimized out>) at ../pulseaudio/src/pulse/glib-mainloop.c:574
#10 0x00007fab5a50df69 in g_main_dispatch (context=0x7fab50000ec0) at ../glib/glib/gmain.c:3476
#11 0x00007fab5a56c367 in g_main_context_dispatch_unlocked (context=0x7fab50000ec0) at ../glib/glib/gmain.c:4284