Bug 466617 - kdeconnectd crashes when attempting to pair a device while playing MPRIS music without album art
Summary: kdeconnectd crashes when attempting to pair a device while playing MPRIS musi...
Status: ASSIGNED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: 22.12.2
Platform: Arch Linux Linux
: HI crash
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords: drkonqi
: 448005 451414 465624 496753 496756 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-02-28 19:10 UTC by csh
Modified: 2024-11-27 23:34 UTC (History)
7 users (show)

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


Attachments
New crash information added by DrKonqi (3.65 KB, text/plain)
2023-07-15 01:50 UTC, Fushan Wen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description csh 2023-02-28 19:10:22 UTC
Application: kdeconnectd (22.12.2)

Qt Version: 5.15.8
Frameworks Version: 5.103.0
Operating System: Linux 6.1.10-273-tkg-pds x86_64
Windowing System: Wayland
Distribution: EndeavourOS
DrKonqi: 5.27.1 [KCrashBackend]

-- Information about the crash:
Sometimes when attempting to pair from my Fedora 36 laptop running GSConnect, the KDE Connect daemon on the host computer will crash. I noticed a mention of mpris in the crash log, and I was using an application that supports it on the host computer (specifically Cantata); however, I was playing back a radio stream without any album art.

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  QString::QString (other=..., this=<optimized out>, this=<optimized out>, other=...) at /usr/include/qt/QtCore/qstring.h:1093
#7  Device::name (this=0x0) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.2/core/device.cpp:115
#8  0x00007fe11ea7065c in CompositeUploadJob::emitDescription (this=this@entry=0x5564e681a5f0, currentFileName=...) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.2/core/backends/lan/compositeuploadjob.cpp:287
#9  0x00007fe11ea73410 in CompositeUploadJob::addSubjob (this=this@entry=0x5564e681a5f0, job=job@entry=0x7fe11005e890) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.2/core/backends/lan/compositeuploadjob.cpp:212
#10 0x00007fe11ea758e3 in LanDeviceLink::sendPacket (this=<optimized out>, np=...) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.2/core/backends/lan/landevicelink.cpp:86
#11 0x00007fe11ea7fc95 in Device::sendPacket (this=<optimized out>, np=...) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.2/core/device.cpp:385
#12 0x00007fe0f87f0c56 in MprisControlPlugin::sendAlbumArt (np=..., this=0x5564e65fb6b0) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.2/plugins/mpriscontrol/mpriscontrolplugin.cpp:255
#13 MprisControlPlugin::receivePacket (this=0x5564e65fb6b0, np=...) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.2/plugins/mpriscontrol/mpriscontrolplugin.cpp:266
#14 0x00007fe11ea835b8 in Device::privateReceivedPacket (this=0x5564e64b84a0, np=...) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.2/core/device.cpp:401
#15 0x00007fe11d2bea71 in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#16 doActivate<false> (sender=0x5564e65d4210, signal_index=7, argv=0x7ffd080b3100) at kernel/qobject.cpp:3923
#17 0x00007fe11ea73ea6 in DeviceLink::receivedPacket (_t1=..., this=0x5564e65d4210) at /usr/src/debug/kdeconnect/build/core/kdeconnectcore_autogen/CSWKE6ESUK/moc_devicelink.cpp:225
#18 LanDeviceLink::dataReceived (this=0x5564e65d4210) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.2/core/backends/lan/landevicelink.cpp:136
#19 0x00007fe11d2bea71 in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#20 doActivate<false> (sender=0x5564e6823790, signal_index=3, argv=0x7ffd080b31e0) at kernel/qobject.cpp:3923
#21 0x00007fe11ea6c056 in SocketLineReader::dataReceived (this=0x5564e6823790) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.2/core/backends/lan/socketlinereader.cpp:28
#22 0x00007fe11d2bea71 in QtPrivate::QSlotObjectBase::call (a=<optimized out>, r=<optimized out>, this=<optimized out>, this=<optimized out>, r=<optimized out>, a=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#23 doActivate<false> (sender=0x5564e65c46d0, signal_index=3, argv=0x7ffd080b32f0) at kernel/qobject.cpp:3923
#24 0x00007fe11cf869d3 in QSslSocketBackendPrivate::transmit (this=0x5564e6665530) at ssl/qsslsocket_openssl.cpp:1201
#25 0x00007fe11d2bec20 in doActivate<false> (sender=0x5564e65853e0, signal_index=3, argv=0x7ffd080b4460) at kernel/qobject.cpp:3935
#26 0x00007fe11cf51fc0 in QAbstractSocketPrivate::emitReadyRead (channel=0, this=0x5564e666b180) at socket/qabstractsocket.cpp:1323
#27 QAbstractSocketPrivate::canReadNotification (this=0x5564e666b180) at socket/qabstractsocket.cpp:748
#28 0x00007fe11cf6882a in QAbstractSocketEngine::readNotification (this=<optimized out>) at socket/qabstractsocketengine.cpp:160
#29 QReadNotifier::event (this=<optimized out>, e=<optimized out>) at socket/qnativesocketengine.cpp:1274
#30 0x00007fe11df78b5c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5564e66f7d00, e=0x7ffd080b4570) at kernel/qapplication.cpp:3640
#31 0x00007fe11d28df48 in QCoreApplication::notifyInternal2 (receiver=0x5564e66f7d00, event=0x7ffd080b4570) at kernel/qcoreapplication.cpp:1064
#32 0x00007fe11d2d7ac6 in socketNotifierSourceDispatch (source=0x5564e608e5d0) at kernel/qeventdispatcher_glib.cpp:107
#33 0x00007fe11bb1682b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#34 0x00007fe11bb6dcc9 in ?? () from /usr/lib/libglib-2.0.so.0
#35 0x00007fe11bb150e2 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#36 0x00007fe11d2d8c8f in QEventDispatcherGlib::processEvents (this=0x5564e604b440, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#37 0x00007fe11d2866ec in QEventLoop::exec (this=0x7ffd080b47f0, flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#38 0x00007fe11d291219 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#39 0x00007fe11d739fe2 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1870
#40 0x00007fe11df76f2a in QApplication::exec () at kernel/qapplication.cpp:2832
#41 0x00005564e5ae3597 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdeconnect/kdeconnect-kde-22.12.2/daemon/kdeconnectd.cpp:185
[Inferior 1 (process 2803246) detached]

Reported using DrKonqi
Comment 1 Fushan Wen 2023-07-15 01:50:43 UTC
Created attachment 160296 [details]
New crash information added by DrKonqi

kdeconnectd (23.07.70) using Qt 5.15.10

When the current song changes, kdeconnect crashed.

-- Backtrace (Reduced):
#6  QString::QString(QString const&) (other=<error reading variable: Cannot access memory at address 0x10>, this=this@entry=0x7ffd9d5d4f08) at /usr/include/qt5/QtCore/qstring.h:1093
#7  Device::name() const (this=0x0) at /mnt/data/home/qydw/Develop/KDE/Network/kdeconnect-kde/core/device.cpp:119
#8  0x00007f4c9a00b12b in CompositeUploadJob::emitDescription(QString const&) (this=this@entry=0x2092860, currentFileName=...) at /mnt/data/home/qydw/Develop/KDE/Network/kdeconnect-kde/core/backends/lan/compositeuploadjob.cpp:287
#9  0x00007f4c9a00bafc in CompositeUploadJob::startNextSubJob() (this=0x2092860) at /mnt/data/home/qydw/Develop/KDE/Network/kdeconnect-kde/core/backends/lan/compositeuploadjob.cpp:96
#10 0x00007f4c981192b0 in QObject::event(QEvent*) (this=0x2092860, e=0x7f4c8c057370) at kernel/qobject.cpp:1347
Comment 2 Bug Janitor Service 2023-07-15 02:01:42 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/kdeconnect-kde/-/merge_requests/562
Comment 3 cwo 2024-08-01 15:36:13 UTC
*** Bug 451414 has been marked as a duplicate of this bug. ***
Comment 4 cwo 2024-08-01 15:36:45 UTC
*** Bug 448005 has been marked as a duplicate of this bug. ***
Comment 5 cwo 2024-08-01 15:38:06 UTC
bug 465624 seems to be the same crash, but with a different plugin (share instead of mpris). Marking as related.
Comment 6 Nicolas Fella 2024-11-27 23:25:55 UTC
*** Bug 496756 has been marked as a duplicate of this bug. ***
Comment 7 Nicolas Fella 2024-11-27 23:26:09 UTC
*** Bug 465624 has been marked as a duplicate of this bug. ***
Comment 8 Nicolas Fella 2024-11-27 23:26:22 UTC
*** Bug 496753 has been marked as a duplicate of this bug. ***