Bug 477104 - KDE Connect crashes after Bluetooth headphones power off (workaround: disable "System volume" plugin on desktop)
Summary: KDE Connect crashes after Bluetooth headphones power off (workaround: disable...
Status: RESOLVED FIXED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: 23.08.2
Platform: Arch Linux Linux
: HI crash
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords: drkonqi
: 461862 465436 475196 476154 476500 478794 479535 480396 492894 494366 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-11-16 16:24 UTC by Peter Kruczkiewicz
Modified: 2024-10-09 20:31 UTC (History)
21 users (show)

See Also:
Latest Commit:
Version Fixed In: pulseaudio-qt 1.4.0
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (3.35 KB, text/plain)
2023-11-18 16:19 UTC, Nathan Middleton
Details
New crash information added by DrKonqi (9.27 KB, text/plain)
2023-12-07 19:29 UTC, Ryan Olthof
Details
New crash information added by DrKonqi (3.55 KB, text/plain)
2023-12-13 14:09 UTC, Möhsün Babayev
Details
New crash information added by DrKonqi (2.62 KB, text/plain)
2024-01-02 17:33 UTC, Andrea Ippolito
Details
New crash information added by DrKonqi (2.82 KB, text/plain)
2024-02-04 22:13 UTC, Nick Austin
Details
New crash information added by DrKonqi (1.86 KB, text/plain)
2024-02-21 18:30 UTC, Neil Hanlon
Details
New crash information added by DrKonqi (3.21 KB, text/plain)
2024-08-16 17:35 UTC, 林博仁(Buo-ren, Lin)
Details
New crash information added by DrKonqi (2.57 KB, text/plain)
2024-09-04 19:30 UTC, nicdex
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Kruczkiewicz 2023-11-16 16:24:44 UTC
Application: kdeconnectd (23.08.2)

Qt Version: 5.15.11
Frameworks Version: 5.111.0
Operating System: Linux 6.5.9-arch2-1 x86_64
Windowing System: X11
Distribution: "Arch Linux"
DrKonqi: 5.27.9 [KCrashBackend]

-- Information about the crash:
KDE Connect consistently crashes after my Bluetooth headphones (Sony  WH1000XM4) power off when not in use (~5 minutes after I take them off my head).

The crash can be reproduced sometimes.

-- Backtrace:
Application: KDE Connect Daemon (kdeconnectd), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  0x00007ff3a018990e in  () at /usr/lib/libKF5PulseAudioQt.so.3
#7  0x00007ff3a01390b8 in context_get_card_info_callback (pd=pd@entry=0x561196e215a0, command=command@entry=2, tag=tag@entry=2476, t=t@entry=0x561196e372c0, userdata=userdata@entry=0x5611964112e0) at ../pulseaudio/src/pulse/introspect.c:990
#8  0x00007ff3a00cee72 in run_action (pd=0x561196e215a0, r=0x561196e37d10, command=2, ts=0x561196e372c0) at ../pulseaudio/src/pulsecore/pdispatch.c:291
#9  0x00007ff3a00d00ac in pa_pdispatch_run (pd=0x561196e215a0, packet=packet@entry=0x561196e874d0, ancil_data=ancil_data@entry=0x561196e44318, userdata=userdata@entry=0x561196dd22a0) at ../pulseaudio/src/pulsecore/pdispatch.c:344
#10 0x00007ff3a0127244 in pstream_packet_callback (p=<optimized out>, packet=0x561196e874d0, ancil_data=0x561196e44318, userdata=0x561196dd22a0) at ../pulseaudio/src/pulse/context.c:364
#11 0x00007ff3a00d4f95 in do_read (p=p@entry=0x561196e44080, re=re@entry=0x561196e44200) at ../pulseaudio/src/pulsecore/pstream.c:1023
#12 0x00007ff3a00d5e2f in do_pstream_read_write (p=0x561196e44080) at ../pulseaudio/src/pulsecore/pstream.c:261
#13 0x00007ff3a8005728 in dispatch_func (source=0x561196dccfd0, callback=<optimized out>, userdata=<optimized out>) at ../pulseaudio/src/pulse/glib-mainloop.c:581
#14 0x00007ff3b530df69 in g_main_dispatch (context=0x7ff3ac000ec0) at ../glib/glib/gmain.c:3476
#15 0x00007ff3b536c327 in g_main_context_dispatch_unlocked (context=0x7ff3ac000ec0) at ../glib/glib/gmain.c:4284
#16 g_main_context_iterate_unlocked.isra.0 (context=context@entry=0x7ff3ac000ec0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4349
#17 0x00007ff3b530c162 in g_main_context_iteration (context=0x7ff3ac000ec0, may_block=1) at ../glib/glib/gmain.c:4414
#18 0x00007ff3b68eaf7c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x561196110b50, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#19 0x00007ff3b689ae74 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7ffc1cd6e590, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#20 0x00007ff3b689c313 in QCoreApplication::exec() () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#21 0x00007ff3b6d3bf12 in QGuiApplication::exec() () at kernel/qguiapplication.cpp:1870
#22 0x00007ff3b7576cda in QApplication::exec() () at kernel/qapplication.cpp:2832
#23 0x000056119503b517 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdeconnect/kdeconnect-kde-23.08.3/daemon/kdeconnectd.cpp:186
[Inferior 1 (process 257743) detached]

The reporter indicates this bug may be a duplicate of or related to bug 476500, bug 476154.

Reported using DrKonqi
Comment 1 Nathan Middleton 2023-11-18 16:19:58 UTC
Created attachment 163269 [details]
New crash information added by DrKonqi

kdeconnectd (23.08.3) using Qt 5.15.11

Running application that could affect this? 
Firefox was playing a video fullscreen and had switched between bluetooth and displayport/hdmi audio several times.
Kate, Konsole were the only other applications running, but unknown if they could have an affect on this.

-- Backtrace (Reduced):
#7  0x00007fa1900d70b8 in context_get_card_info_callback (pd=pd@entry=0x5576a1ddedf0, command=command@entry=2, tag=tag@entry=215, t=t@entry=0x5576a1d92f80, userdata=userdata@entry=0x5576a1d07eb0) at ../pulseaudio/src/pulse/introspect.c:990
#8  0x00007fa19006ce72 in run_action (pd=0x5576a1ddedf0, r=0x5576a1d3f040, command=2, ts=0x5576a1d92f80) at ../pulseaudio/src/pulsecore/pdispatch.c:291
#9  0x00007fa19006e0ac in pa_pdispatch_run (pd=0x5576a1ddedf0, packet=packet@entry=0x5576a1df5780, ancil_data=ancil_data@entry=0x5576a1dfeb68, userdata=userdata@entry=0x5576a1d532e0) at ../pulseaudio/src/pulsecore/pdispatch.c:344
#10 0x00007fa1900c5244 in pstream_packet_callback (p=<optimized out>, packet=0x5576a1df5780, ancil_data=0x5576a1dfeb68, userdata=0x5576a1d532e0) at ../pulseaudio/src/pulse/context.c:364
#11 0x00007fa190072f95 in do_read (p=p@entry=0x5576a1dfe8d0, re=re@entry=0x5576a1dfea50) at ../pulseaudio/src/pulsecore/pstream.c:1023
Comment 2 Nathan Middleton 2023-11-18 16:40:42 UTC
My bluetooth headphones are Sony LinkBuds S. They are not powering on and off but were reconnected several times. Thise was during a fullscreen video was playing on and off in Firefox and no other apps were running.

My KDEConnect session required being re-pairing to work again.
Comment 3 Ryan Olthof 2023-12-07 19:29:25 UTC
Created attachment 163989 [details]
New crash information added by DrKonqi

kdeconnectd (23.08.3) using Qt 5.15.11

Disconnecting bluetooth headphones results in this crash everytime.  Not sure if it's related, but on Opensuse, I must run dracut -f --omit bluetooth --regenerate-all  every kernel update as my laptop BT device is not recognized otherwise.

-- Backtrace (Reduced):
#4  0x00007fd6600d1283 in PulseAudioQt::CardPrivate::update (this=<optimized out>, info=<optimized out>) at /usr/src/debug/pulseaudio-qt-1.3/src/card.cpp:72
#5  0x00007fd660080e28 in context_get_card_info_callback (pd=pd@entry=0x563fc0d30ff0, command=command@entry=2, tag=tag@entry=1591, t=t@entry=0x563fc0d2d250, userdata=userdata@entry=0x563fc0d429a0) at ../src/pulse/introspect.c:990
#6  0x00007fd64ffba6c1 in run_action (pd=0x563fc0d30ff0, r=0x563fc0c42e50, command=2, ts=0x563fc0d2d250) at ../src/pulsecore/pdispatch.c:291
#7  0x00007fd64ffbe9ec in pa_pdispatch_run (pd=0x563fc0d30ff0, packet=packet@entry=0x563fc0d2f9d0, ancil_data=ancil_data@entry=0x563fc0d3fef8, userdata=userdata@entry=0x563fc0cca4c0) at ../src/pulsecore/pdispatch.c:344
#8  0x00007fd66006f58e in pstream_packet_callback (p=<optimized out>, packet=0x563fc0d2f9d0, ancil_data=0x563fc0d3fef8, userdata=0x563fc0cca4c0) at ../src/pulse/context.c:364
Comment 4 Ryan Olthof 2023-12-07 20:26:39 UTC
*** Bug 476500 has been marked as a duplicate of this bug. ***
Comment 5 Ryan Olthof 2023-12-07 20:28:41 UTC
*** Bug 476154 has been marked as a duplicate of this bug. ***
Comment 6 Ryan Olthof 2023-12-07 20:49:47 UTC
*** Bug 461862 has been marked as a duplicate of this bug. ***
Comment 7 Ryan Olthof 2023-12-07 20:51:17 UTC
*** Bug 475196 has been marked as a duplicate of this bug. ***
Comment 8 Möhsün Babayev 2023-12-13 14:09:45 UTC
Created attachment 164137 [details]
New crash information added by DrKonqi

kdeconnectd (23.08.4) using Qt 5.15.11

Bluetooth was enabled. I turn on my Sony WH-1000XM5 headphones and it auto-connected. I noticed that the sound quality of the audio that was playing was bad for some reason, very low bitrate. So, I went to the Bluetooth applet to disconnect and reconnect, hoping it would fix the issue. The moment I clicked the 'Disconnect' button, I saw the notification that 'KDE Connect Daemon Closed Unexpectedly'. I replicated this scenario three times and the behavior was the same.

-- Backtrace (Reduced):
#7  0x00007f006ae852eb in context_get_card_info_callback (pd=pd@entry=0x55866414eed0, command=command@entry=2, tag=tag@entry=333, t=t@entry=0x5586641476d0, userdata=userdata@entry=0x5586640b6f00) at ../pulseaudio/src/pulse/introspect.c:990
#8  0x00007f006abbaef2 in run_action (pd=0x55866414eed0, r=0x5586640b8080, command=2, ts=0x5586641476d0) at ../pulseaudio/src/pulsecore/pdispatch.c:291
#9  0x00007f006abbc13c in pa_pdispatch_run (pd=0x55866414eed0, packet=packet@entry=0x558664152700, ancil_data=ancil_data@entry=0x5586641537b8, userdata=userdata@entry=0x5586640f3b60) at ../pulseaudio/src/pulsecore/pdispatch.c:344
#10 0x00007f006ae73254 in pstream_packet_callback (p=<optimized out>, packet=0x558664152700, ancil_data=0x5586641537b8, userdata=0x5586640f3b60) at ../pulseaudio/src/pulse/context.c:364
#11 0x00007f006abc0fb5 in do_read (p=p@entry=0x558664153520, re=re@entry=0x5586641536a0) at ../pulseaudio/src/pulsecore/pstream.c:1023
Comment 9 Grder Li 2023-12-18 18:48:35 UTC
With some debugging, I found this seems to be related to the systemvolumeplugin-pulse plugin in some pluseaudio object lifecycles management. Crash is not happening anymore after disabling the systemvolume plugin from the desktop side.
Comment 10 Eddi-Jay Ohlms 2023-12-19 03:35:36 UTC
(In reply to Grder Li from comment #9)
> With some debugging, I found this seems to be related to the
> systemvolumeplugin-pulse plugin in some pluseaudio object lifecycles
> management. Crash is not happening anymore after disabling the systemvolume
> plugin from the desktop side.

What is KDE using the plugin for?
Why does it do?
Does it limit usability in any way?
Comment 11 Nicolas Fella 2023-12-30 13:43:11 UTC
*** Bug 478794 has been marked as a duplicate of this bug. ***
Comment 12 Grder Li 2023-12-30 14:51:54 UTC
(In reply to Eddi-Jay Ohlms from comment #10)
> (In reply to Grder Li from comment #9)
> > With some debugging, I found this seems to be related to the
> > systemvolumeplugin-pulse plugin in some pluseaudio object lifecycles
> > management. Crash is not happening anymore after disabling the systemvolume
> > plugin from the desktop side.
> 
> What is KDE using the plugin for?
> Why does it do?
> Does it limit usability in any way?

It's for controlling PulseAudio volume from the phone. I don't really need this feature, so I disabled the plugin. Not sure how it would affect other users.
Comment 13 Nicolas Fella 2023-12-30 14:52:25 UTC
==23675==ERROR: AddressSanitizer: heap-use-after-free on address 0x60300029eac0 at pc 0x7f5df23f5303 bp 0x7fff626c1040 sp 0x7fff626c1038
READ of size 8 at 0x60300029eac0 thread T0
    #0 0x7f5df23f5302 in PulseAudioQt::PulseObject::name() const /home/nico/kde6/src/pulseaudio-qt/src/pulseobject.cpp:38
    #1 0x7f5df23680ba in PulseAudioQt::CardPrivate::update(pa_card_info const*) /home/nico/kde6/src/pulseaudio-qt/src/card.cpp:69
    #2 0x7f5df2392ad6 in PulseAudioQt::MapBase<PulseAudioQt::Card, pa_card_info>::updateEntry(pa_card_info const*, QObject*) /home/nico/kde6/src/pulseaudio-qt/src/maps.h:132
    #3 0x7f5df2382dc3 in PulseAudioQt::ContextPrivate::cardCallback(pa_card_info const*) /home/nico/kde6/src/pulseaudio-qt/src/context.cpp:559
    #4 0x7f5df237b87f in card_cb /home/nico/kde6/src/pulseaudio-qt/src/context.cpp:148
    #5 0x7f5df216ee27 in context_get_card_info_callback ../src/pulse/introspect.c:990
    #6 0x7f5df21036c0 in run_action ../src/pulsecore/pdispatch.c:291
    #7 0x7f5df21079eb in pa_pdispatch_run ../src/pulsecore/pdispatch.c:344
    #8 0x7f5df215d58d in pstream_packet_callback ../src/pulse/context.c:364
    #9 0x7f5df210e762 in do_read ../src/pulsecore/pstream.c:1023
    #10 0x7f5df210ffc6 in do_pstream_read_write ../src/pulsecore/pstream.c:261
    #11 0x7f5df3193647 in dispatch_func ../src/pulse/glib-mainloop.c:581
    #12 0x7f5e0d113f2f in g_main_dispatch ../glib/gmain.c:3476
    #13 0x7f5e0d113f2f in g_main_context_dispatch_unlocked ../glib/gmain.c:4284
    #14 0x7f5e0d115b57 in g_main_context_iterate_unlocked ../glib/gmain.c:4349
    #15 0x7f5e0d11620b in g_main_context_iteration ../glib/gmain.c:4414
    #16 0x7f5e0ddabc6b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (/lib64/libQt6Core.so.6+0x3abc6b) (BuildId: da7667e446842b4ec5e606c6775afb0da17fb3fa)
    #17 0x7f5e0db9211a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (/lib64/libQt6Core.so.6+0x19211a) (BuildId: da7667e446842b4ec5e606c6775afb0da17fb3fa)
    #18 0x7f5e0db8bd45 in QCoreApplication::exec() (/lib64/libQt6Core.so.6+0x18bd45) (BuildId: da7667e446842b4ec5e606c6775afb0da17fb3fa)
    #19 0x406394 in main /home/nico/kde6/src/kdeconnect-kde/daemon/kdeconnectd.cpp:207
    #20 0x7f5e0d2281af in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
    #21 0x7f5e0d228278 in __libc_start_main_impl ../csu/libc-start.c:360
    #22 0x404894 in _start ../sysdeps/x86_64/start.S:115

0x60300029eac0 is located 16 bytes inside of 32-byte region [0x60300029eab0,0x60300029ead0)
freed by thread T0 here:
    #0 0x7f5e12edda78 in operator delete(void*, unsigned long) ../../../../libsanitizer/asan/asan_new_delete.cpp:164
    #1 0x7f5df23dc90a in PulseAudioQt::Profile::~Profile() /home/nico/kde6/src/pulseaudio-qt/src/profile.cpp:21
    #2 0x7f5df23681ad in PulseAudioQt::CardPrivate::update(pa_card_info const*) /home/nico/kde6/src/pulseaudio-qt/src/card.cpp:71
    #3 0x7f5df2392ad6 in PulseAudioQt::MapBase<PulseAudioQt::Card, pa_card_info>::updateEntry(pa_card_info const*, QObject*) /home/nico/kde6/src/pulseaudio-qt/src/maps.h:132
    #4 0x7f5df2382dc3 in PulseAudioQt::ContextPrivate::cardCallback(pa_card_info const*) /home/nico/kde6/src/pulseaudio-qt/src/context.cpp:559
    #5 0x7f5df237b87f in card_cb /home/nico/kde6/src/pulseaudio-qt/src/context.cpp:148
    #6 0x7f5df216ee27 in context_get_card_info_callback ../src/pulse/introspect.c:990

previously allocated by thread T0 here:
    #0 0x7f5e12edcb78 in operator new(unsigned long) ../../../../libsanitizer/asan/asan_new_delete.cpp:95
    #1 0x7f5df2367db0 in PulseAudioQt::CardPrivate::update(pa_card_info const*) /home/nico/kde6/src/pulseaudio-qt/src/card.cpp:62
    #2 0x7f5df2392a85 in PulseAudioQt::MapBase<PulseAudioQt::Card, pa_card_info>::updateEntry(pa_card_info const*, QObject*) /home/nico/kde6/src/pulseaudio-qt/src/maps.h:129
    #3 0x7f5df2382dc3 in PulseAudioQt::ContextPrivate::cardCallback(pa_card_info const*) /home/nico/kde6/src/pulseaudio-qt/src/context.cpp:559
    #4 0x7f5df237b87f in card_cb /home/nico/kde6/src/pulseaudio-qt/src/context.cpp:148
    #5 0x7f5df216ee27 in context_get_card_info_callback ../src/pulse/introspect.c:990

SUMMARY: AddressSanitizer: heap-use-after-free /home/nico/kde6/src/pulseaudio-qt/src/pulseobject.cpp:38 in PulseAudioQt::PulseObject::name() const
Comment 14 Bug Janitor Service 2023-12-30 15:39:03 UTC
A possibly relevant merge request was started @ https://invent.kde.org/libraries/pulseaudio-qt/-/merge_requests/23
Comment 15 Ryan Olthof 2024-01-01 01:37:31 UTC
Kdeconnect settings, selecting my phone and disabling the system volume plugin resolved this for now.  It appears that the plugin author Nicolas Fella has commented and merging a fix.
Comment 16 Oleksandr Natalenko 2024-01-01 19:38:51 UTC
(In reply to Bug Janitor Service from comment #14)
> A possibly relevant merge request was started @
> https://invent.kde.org/libraries/pulseaudio-qt/-/merge_requests/23

After applying this change kdeconnect does not crash for me any more after disconnecting BT headphones.
Comment 17 Andrea Ippolito 2024-01-02 17:33:06 UTC
Created attachment 164629 [details]
New crash information added by DrKonqi

kdeconnectd (23.08.4) using Qt 5.15.11

KDE Connect Daemon crashes when putting my wireless earbuds back into their case (which powers them off).

Happens quite often, not very hard to reproduce.

-- Backtrace (Reduced):
#4  0x00007fc3133c1283 in PulseAudioQt::CardPrivate::update (this=<optimized out>, info=<optimized out>) at /usr/src/debug/pulseaudio-qt-1.3/src/card.cpp:72
#5  0x00007fc313269e28 in context_get_card_info_callback (pd=pd@entry=0x5616519fbf10, command=command@entry=2, tag=tag@entry=1288, t=t@entry=0x5616519ee380, userdata=userdata@entry=0x561651a2ffb0) at ../src/pulse/introspect.c:990
#6  0x00007fc3131fe6c1 in run_action (pd=0x5616519fbf10, r=0x561651962c00, command=2, ts=0x5616519ee380) at ../src/pulsecore/pdispatch.c:291
#7  0x00007fc3132029ec in pa_pdispatch_run (pd=0x5616519fbf10, packet=packet@entry=0x5616519f4bc0, ancil_data=ancil_data@entry=0x5616519fa5d8, userdata=userdata@entry=0x56165199c080) at ../src/pulsecore/pdispatch.c:344
#8  0x00007fc31325858e in pstream_packet_callback (p=<optimized out>, packet=0x5616519f4bc0, ancil_data=0x5616519fa5d8, userdata=0x56165199c080) at ../src/pulse/context.c:364
Comment 18 Andrea Ippolito 2024-01-02 17:37:51 UTC
Wow, Dr Konqi really made A LOT of progress since last time I tried to use it.

With a few clicks it was able to pull the right debug symbols for my distro, analyze the bug report and deem it worthy of reporting, and then showing a list of potential duplicates (which brought me here) in a way that was both easy to navigate and to correlate with my occurrence of the issue, allowing to establish a duplicate link seamlessly.

Whoever did this deserves lots of praise, making it easier to report bugs is the first step to fixing them!

Thanks! (And looking forward for the fix to get merged, of course :D)
Comment 19 Nicolas Fella 2024-01-08 11:58:49 UTC
*** Bug 479535 has been marked as a duplicate of this bug. ***
Comment 20 Nicolas Fella 2024-01-08 11:59:10 UTC
Git commit f8ef220e6a08b047c31c19faa52c197d58910a5d by Nicolas Fella.
Committed on 30/12/2023 at 16:38.
Pushed by nicolasfella into branch 'master'.

[card] Fix removing profiles

We remove items from the list while iterating, which doesn't work this way

Use QMutableListIterator to make it work

M  +5    -2    src/card.cpp

https://invent.kde.org/libraries/pulseaudio-qt/-/commit/f8ef220e6a08b047c31c19faa52c197d58910a5d
Comment 21 Andrea Ippolito 2024-01-15 14:25:22 UTC
(In reply to Grder Li from comment #9)
> With some debugging, I found this seems to be related to the
> systemvolumeplugin-pulse plugin in some pluseaudio object lifecycles
> management. Crash is not happening anymore after disabling the systemvolume
> plugin from the desktop side.

Thanks, I am facing the same issue and thanks to this workaround I haven't experienced any crashes anymore.

I took the liberty to highlight it in the issue title, hope nobody minds.
Comment 22 Nicolas Fella 2024-01-27 22:50:28 UTC
*** Bug 480396 has been marked as a duplicate of this bug. ***
Comment 23 Nick Austin 2024-02-04 22:13:26 UTC
Created attachment 165551 [details]
New crash information added by DrKonqi

kdeconnectd (23.08.4) using Qt 5.15.12

I disconnected my Sony WH-CH720N headphones using the disconnect button in the bluetooth control widget in KDE.

-- Backtrace (Reduced):
#4  0x00007fb3dc48de17 in PulseAudioQt::CardPrivate::update (this=0x5630d0b97050, info=<optimized out>) at /usr/src/debug/pulseaudio-qt-1.3-5.fc39.x86_64/src/card.cpp:72
#5  0x00007fb3dc43ed9f in context_get_card_info_callback (pd=pd@entry=0x5630d0b37720, command=command@entry=2, tag=tag@entry=584, t=t@entry=0x5630d0a1ed90, userdata=userdata@entry=0x5630d09036f0) at ../src/pulse/introspect.c:990
#6  0x00007fb3dc3d7588 in run_action (pd=0x5630d0b37720, r=0x5630d0e25a80, command=2, ts=0x5630d0a1ed90) at ../src/pulsecore/pdispatch.c:291
#7  0x00007fb3dc3dbb1c in pa_pdispatch_run (pd=0x5630d0b37720, packet=packet@entry=0x5630d0970730, ancil_data=ancil_data@entry=0x5630d0c58278, userdata=userdata@entry=0x5630d0c77d60) at ../src/pulsecore/pdispatch.c:344
#8  0x00007fb3dc42d1ab in pstream_packet_callback (p=<optimized out>, packet=0x5630d0970730, ancil_data=0x5630d0c58278, userdata=0x5630d0c77d60) at ../src/pulse/context.c:364
Comment 24 Neil Hanlon 2024-02-21 18:30:14 UTC
Created attachment 165978 [details]
New crash information added by DrKonqi

kdeconnectd (23.08.4) using Qt 5.15.11

Disconnected Sony WH1000XM4 and KDE connect crashed

-- Backtrace (Reduced):
#4  0x00007f2a7647ce17 in PulseAudioQt::CardPrivate::update(pa_card_info const*) () at /lib64/libKF5PulseAudioQt.so.3
#5  0x00007f2a76427d9f in context_get_card_info_callback () at /lib64/libpulse.so.0
#6  0x00007f2a763c0588 in run_action () at /usr/lib64/pulseaudio/libpulsecommon-16.1.so
#7  0x00007f2a763c4b1c in pa_pdispatch_run () at /usr/lib64/pulseaudio/libpulsecommon-16.1.so
#8  0x00007f2a764161ab in pstream_packet_callback () at /lib64/libpulse.so.0
Comment 25 林博仁(Buo-ren, Lin) 2024-08-16 17:35:34 UTC
Created attachment 172675 [details]
New crash information added by DrKonqi

kdeconnectd (23.08.5) using Qt 5.15.13

Seems to be affecting Ubuntu 22.04 at the moment, I have filed a bug to backport the pulseaudio-qt patch:

Bug #2077185 ""[card] Fix removing profiles” patch(f8ef220e) nee... : Bugs : kdeconnect package : Ubuntu
https://bugs.launchpad.net/ubuntu/+source/kdeconnect/+bug/2077185

-- Backtrace (Reduced):
#4  0x0000798669686607 in PulseAudioQt::CardPrivate::update (this=0x5d6d01f1b0a0, info=<optimized out>) at /usr/src/pulseaudio-qt-1.3-2build2/src/card.cpp:72
#5  0x0000798669639dcf in context_get_card_info_callback (pd=pd@entry=0x5d6d020aabb0, command=command@entry=2, tag=tag@entry=331, t=t@entry=0x5d6d01ff5e10, userdata=userdata@entry=0x5d6d01f44a10) at ../src/pulse/introspect.c:990
#6  0x0000798668299558 in run_action (pd=0x5d6d020aabb0, r=0x5d6d01f0d6f0, command=2, ts=0x5d6d01ff5e10) at ../src/pulsecore/pdispatch.c:291
#7  0x000079866829d9ec in pa_pdispatch_run (pd=0x5d6d020aabb0, packet=packet@entry=0x5d6d0211a0f0, ancil_data=ancil_data@entry=0x5d6d020af2d8, userdata=userdata@entry=0x5d6d01f88b30) at ../src/pulsecore/pdispatch.c:344
#8  0x00007986696281db in pstream_packet_callback (p=<optimized out>, packet=0x5d6d0211a0f0, ancil_data=0x5d6d020af2d8, userdata=0x5d6d01f88b30) at ../src/pulse/context.c:364
Comment 26 nicdex 2024-09-04 19:30:29 UTC
Created attachment 173330 [details]
New crash information added by DrKonqi

kdeconnectd (23.08.5) using Qt 5.15.13

KDE Connect crashes after disconnecting bluetooth headphones.

-- Backtrace (Reduced):
#4  0x00007f898ff6a607 in PulseAudioQt::CardPrivate::update (this=0x58e1dbea4370, info=<optimized out>) at /usr/src/pulseaudio-qt-1.3-2build2/src/card.cpp:72
#5  0x00007f898ff17dcf in context_get_card_info_callback (pd=pd@entry=0x58e1dbffdc60, command=command@entry=2, tag=tag@entry=177, t=t@entry=0x58e1dbffad60, userdata=userdata@entry=0x58e1dbf10940) at ../src/pulse/introspect.c:990
#6  0x00007f898feb2558 in run_action (pd=0x58e1dbffdc60, r=0x58e1dbf47920, command=2, ts=0x58e1dbffad60) at ../src/pulsecore/pdispatch.c:291
#7  0x00007f898feb69ec in pa_pdispatch_run (pd=0x58e1dbffdc60, packet=packet@entry=0x58e1dc002040, ancil_data=ancil_data@entry=0x58e1dbffc2f8, userdata=userdata@entry=0x58e1dbed0990) at ../src/pulsecore/pdispatch.c:344
#8  0x00007f898ff061db in pstream_packet_callback (p=<optimized out>, packet=0x58e1dc002040, ancil_data=0x58e1dbffc2f8, userdata=0x58e1dbed0990) at ../src/pulse/context.c:364
Comment 27 Nicolas Fella 2024-10-09 20:29:38 UTC
*** Bug 465436 has been marked as a duplicate of this bug. ***
Comment 28 Nicolas Fella 2024-10-09 20:30:00 UTC
*** Bug 492894 has been marked as a duplicate of this bug. ***
Comment 29 Nicolas Fella 2024-10-09 20:30:11 UTC
*** Bug 494366 has been marked as a duplicate of this bug. ***