Bug 453580 - kdeconnectd constantly crashing
Summary: kdeconnectd constantly crashing
Status: RESOLVED WORKSFORME
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-05-09 17:14 UTC by Oded Arbel
Modified: 2024-03-18 07:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (3.08 KB, text/plain)
2023-02-26 11:37 UTC, aeneid
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oded Arbel 2022-05-09 17:14:26 UTC
Application: kdeconnectd (22.07.70)

Qt Version: 5.15.3
Frameworks Version: 5.94.0
Operating System: Linux 5.15.0-27-generic x86_64
Windowing System: X11
Distribution: Ubuntu 22.04 LTS
DrKonqi: 5.24.80 [KCrashBackend]

-- Information about the crash:
the kdeconnect service crashes after a short while regardless of what is going on. Whenerver I start a kdeconnect operation, such as through the CLI or the plasma icon, after a few seconds kdeconnectd crashes and I get a crash report dialog.

The crash can be reproduced every time.

-- Backtrace:
Application: KDE Connect Daemon (kdeconnectd), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f9fdbb92c3b in qobject_cast<PulseAudioQt::Port*> (object=<error reading variable: Cannot access memory at address 0x559e1f573e80>) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:524
#5  PulseAudioQt::Sink::setActivePortIndex (this=0x559c4a101350, port_index=984771552) at ./src/sink.cpp:58
#6  0x00007f9fe80bccf6 in SystemvolumePlugin::sendSinkList() () from /usr/lib/x86_64-linux-gnu/qt5/plugins/kdeconnect/kdeconnect_systemvolume.so
#7  0x00007f9ff0271b83 in QtPrivate::QSlotObjectBase::call (a=0x7ffc3ab26e30, r=0x559c49bb2360, this=0x559c49f771f0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#8  doActivate<false> (sender=0x559c49f8c730, signal_index=3, argv=0x7ffc3ab26e30) at kernel/qobject.cpp:3886
#9  0x00007f9ff026ae97 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f9fdbbbbca0 <PulseAudioQt::Context::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc3ab26e30) at kernel/qobject.cpp:3946
#10 0x00007f9fdbb67fc3 in PulseAudioQt::Context::sinkAdded (this=<optimized out>, _t1=<optimized out>) at ./obj-x86_64-linux-gnu/src/KF5PulseAudioQt_autogen/EWIEGA46WW/moc_context.cpp:325
#11 0x00007f9ff0271b83 in QtPrivate::QSlotObjectBase::call (a=0x7ffc3ab26f40, r=0x559c49f8c730, this=0x559c49f8b660) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#12 doActivate<false> (sender=0x559c49c395a8, signal_index=4, argv=0x7ffc3ab26f40) at kernel/qobject.cpp:3886
#13 0x00007f9ff026ae97 in QMetaObject::activate (sender=sender@entry=0x559c49c395a8, m=m@entry=0x7f9fdbbbbbe0 <PulseAudioQt::MapBaseQObject::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffc3ab26f40) at kernel/qobject.cpp:3946
#14 0x00007f9fdbb68a91 in PulseAudioQt::MapBaseQObject::added (this=this@entry=0x559c49c395a8, _t1=<optimized out>, _t1@entry=0, _t2=<optimized out>, _t2@entry=0x559c4a101350) at ./obj-x86_64-linux-gnu/src/KF5PulseAudioQt_autogen/EWIEGA46WW/moc_maps.cpp:175
#15 0x00007f9fdbb82264 in PulseAudioQt::MapBase<PulseAudioQt::Sink, pa_sink_info>::insert (object=0x559c4a101350, this=0x559c49c395a8) at ./src/maps.h:111
#16 PulseAudioQt::MapBase<PulseAudioQt::Sink, pa_sink_info>::updateEntry (parent=<optimized out>, info=<optimized out>, this=0x559c49c395a8) at ./src/maps.h:130
#17 PulseAudioQt::MapBase<PulseAudioQt::Sink, pa_sink_info>::updateEntry (parent=<optimized out>, info=<optimized out>, this=0x559c49c395a8) at ./src/maps.h:117
#18 PulseAudioQt::ContextPrivate::sinkCallback (info=<optimized out>, this=0x559c49c395a0) at ./src/context.cpp:523
#19 PulseAudioQt::sink_cb (context=<optimized out>, eol=0, data=0x559c49c395a0, info=<optimized out>) at ./src/context.cpp:82
#20 PulseAudioQt::sink_cb (context=<optimized out>, info=<optimized out>, eol=<optimized out>, data=0x559c49c395a0) at ./src/context.cpp:76
#21 0x00007f9fdbb16aa9 in context_get_sink_info_callback (pd=pd@entry=0x559c4a0ffd70, command=command@entry=2, tag=tag@entry=3, t=t@entry=0x559c4a1046d0, userdata=userdata@entry=0x559c49c258f0) at ../src/pulse/introspect.c:268
#22 0x00007f9fdbab7383 in run_action (pd=0x559c4a0ffd70, r=0x559c49d10630, command=2, ts=0x559c4a1046d0) at ../src/pulsecore/pdispatch.c:291
#23 0x00007f9fdbab85bf in pa_pdispatch_run (pd=0x559c4a0ffd70, packet=packet@entry=0x559c49c257f0, ancil_data=ancil_data@entry=0x559c4a0f88a8, userdata=userdata@entry=0x559c49f883c0) at ../src/pulsecore/pdispatch.c:344
#24 0x00007f9fdbb10083 in pstream_packet_callback (p=<optimized out>, packet=0x559c49c257f0, ancil_data=0x559c4a0f88a8, userdata=0x559c49f883c0) at ../src/pulse/context.c:364
#25 0x00007f9fdbabd487 in do_read (p=p@entry=0x559c4a0f8610, re=re@entry=0x559c4a0f8790) at ../src/pulsecore/pstream.c:1023
#26 0x00007f9fdbabe28f in do_pstream_read_write (p=0x559c4a0f8610) at ../src/pulsecore/pstream.c:261
#27 0x00007f9fe82c6916 in dispatch_func (source=0x559c49c35d40, callback=<optimized out>, userdata=<optimized out>) at ../src/pulse/glib-mainloop.c:581
#28 0x00007f9fee6cdd1b in g_main_dispatch (context=0x7f9fe4005010) at ../../../glib/gmain.c:3417
#29 g_main_context_dispatch (context=0x7f9fe4005010) at ../../../glib/gmain.c:4135
#30 0x00007f9fee7226f8 in g_main_context_iterate.constprop.0 (context=context@entry=0x7f9fe4005010, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../../../glib/gmain.c:4211
#31 0x00007f9fee6cb3c3 in g_main_context_iteration (context=0x7f9fe4005010, may_block=1) at ../../../glib/gmain.c:4276
#32 0x00007f9ff02934c8 in QEventDispatcherGlib::processEvents (this=0x559c4993ec20, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#33 0x00007f9ff0238b0b in QEventLoop::exec (this=this@entry=0x7ffc3ab27580, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#34 0x00007f9ff0241094 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#35 0x0000559c486cd01e in ?? ()
#36 0x00007f9fefb54d90 in __libc_start_call_main (main=main@entry=0x559c486ccb70, argc=argc@entry=1, argv=argv@entry=0x7ffc3ab277f8) at ../sysdeps/nptl/libc_start_call_main.h:58
#37 0x00007f9fefb54e40 in __libc_start_main_impl (main=0x559c486ccb70, argc=1, argv=0x7ffc3ab277f8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffc3ab277e8) at ../csu/libc-start.c:392
#38 0x0000559c486cd2b5 in _start ()
[Inferior 1 (process 3214388) detached]

Reported using DrKonqi
Comment 1 Oded Arbel 2022-05-09 17:50:41 UTC
I'm running neon unstable jammy, but interestingly, I have libkf5pulseaudioqt3 installed from what appears to be the neon unstable focal (I upgraded from unstable focal to unstable jammy):

```$ apt policy libkf5pulseaudioqt3
libkf5pulseaudioqt3:
  Installed: 1.3+p20.04+tunstable+git20220306.0204-0
  Candidate: 1.3+p20.04+tunstable+git20220306.0204-0
  Version table:
 *** 1.3+p20.04+tunstable+git20220306.0204-0 100
        100 /var/lib/dpkg/status
     1.3-2 500
        500 http://mirror.il-ta.kamatera.com/ubuntu jammy/universe amd64 Packages
```

I see that libkf5pulseaudioqt3 is currently failing to build: https://build.neon.kde.org/job/jammy_unstable_extras_pulseaudio-qt_bin_amd64/6/
Comment 2 aeneid 2023-02-26 11:37:24 UTC
Created attachment 156757 [details]
New crash information added by DrKonqi

kdeconnectd (22.12.2) using Qt 5.15.8

Happened while listening to music in Qmmp with bluetooth earbuds.

-- Backtrace (Reduced):
#7  0x00007ff4fc09d0b8 in context_get_card_info_callback (pd=pd@entry=0x5572a8b54240, command=command@entry=2, tag=tag@entry=839, t=t@entry=0x5572a8bf2bf0, userdata=userdata@entry=0x5572a8b1e920) at ../pulseaudio/src/pulse/introspect.c:990
#8  0x00007ff4f7fbae62 in run_action (pd=0x5572a8b54240, r=0x5572a8bf8a20, command=2, ts=0x5572a8bf2bf0) at ../pulseaudio/src/pulsecore/pdispatch.c:291
#9  0x00007ff4f7fbc09c in pa_pdispatch_run (pd=0x5572a8b54240, packet=packet@entry=0x5572a8beeb70, ancil_data=ancil_data@entry=0x5572a8bf4288, userdata=userdata@entry=0x5572a8b967d0) at ../pulseaudio/src/pulsecore/pdispatch.c:344
#10 0x00007ff4fc08b244 in pstream_packet_callback (p=<optimized out>, packet=0x5572a8beeb70, ancil_data=0x5572a8bf4288, userdata=0x5572a8b967d0) at ../pulseaudio/src/pulse/context.c:364
#11 0x00007ff4f7fc0f85 in do_read (p=p@entry=0x5572a8bf3ff0, re=re@entry=0x5572a8bf4170) at ../pulseaudio/src/pulsecore/pstream.c:1023
Comment 3 Oded Arbel 2024-03-18 07:33:51 UTC
I can no longer reproduce this issue with any relevant Plasma release.