Bug 438319 - KDE Connect crashes when pairing from phone
Summary: KDE Connect crashes when pairing from phone
Status: RESOLVED DUPLICATE of bug 438065
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: 2021-06-09 11:50 UTC by Stephan Diestelhorst
Modified: 2021-06-17 09:07 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Diestelhorst 2021-06-09 11:50:54 UTC
Application: kdeconnectd (21.04.1)

Qt Version: 5.15.3
Frameworks Version: 5.82.0
Operating System: Linux 5.9.2-050902-generic x86_64
Windowing System: X11
Drkonqi Version: 5.21.5
Distribution: KDE neon User Edition 5.21

-- Information about the crash:
- What I was doing when the application crashed:

Trying to pair my phone (Xiaomi Mi8) in the same WiFi network using the F-Droid app (version 1.17.0) and the desktop app crashes everytime I initiate the pairing process from the phone.  Both devices see each other, the same key is displayed in the pop-up, and I click on the "accept" button in the pop-up, and then the KDE Connect Deamon crashes with the attached backtrace.

The crash can be reproduced every time.

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

[New LWP 585258]
[New LWP 585259]
[New LWP 585260]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f3630611aff in __GI___poll (fds=0x7ffde197e9a8, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
[Current thread is 1 (Thread 0x7f362cae4d40 (LWP 585257))]

Thread 4 (Thread 0x7f3628f53700 (LWP 585260)):
#0  0x00007f362f153508 in g_mutex_unlock () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f362f10628e in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f362f1064a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3630bdfb3b in QEventDispatcherGlib::processEvents (this=0x7f3620000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f3630b83dcb in QEventLoop::exec (this=this@entry=0x7f3628f52ce0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f363099dbb2 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f363099ed4c in QThreadPrivate::start (arg=0x55c5621365c0) at thread/qthread_unix.cpp:329
#7  0x00007f362fb27609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#8  0x00007f363061e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f362a164700 (LWP 585259)):
#0  0x00007f3630611aff in __GI___poll (fds=0x7f361c0132a0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f362f10636e in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f362f1064a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3630bdfb3b in QEventDispatcherGlib::processEvents (this=0x7f361c000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f3630b83dcb in QEventLoop::exec (this=this@entry=0x7f362a163cb0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#5  0x00007f363099dbb2 in QThread::exec (this=this@entry=0x7f363158cd80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f3631508f4b in QDBusConnectionManager::run (this=0x7f363158cd80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at qdbusconnection.cpp:179
#7  0x00007f363099ed4c in QThreadPrivate::start (arg=0x7f363158cd80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:329
#8  0x00007f362fb27609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f363061e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f362bcec700 (LWP 585258)):
#0  0x00007f3630611aff in __GI___poll (fds=fds@entry=0x7f362bcebbe8, nfds=nfds@entry=1, timeout=timeout@entry=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f362ec72c1a in poll (__timeout=-1, __nfds=1, __fds=0x7f362bcebbe8) at /usr/include/x86_64-linux-gnu/bits/poll2.h:46
#2  _xcb_conn_wait (c=c@entry=0x55c562024810, cond=cond@entry=0x55c562024850, vector=vector@entry=0x0, count=count@entry=0x0) at ../../src/xcb_conn.c:480
#3  0x00007f362ec7490a in xcb_wait_for_event (c=c@entry=0x55c562024810) at ../../src/xcb_in.c:697
#4  0x00007f362c422e88 in QXcbEventQueue::run (this=0x55c562014790) at qxcbeventqueue.cpp:228
#5  0x00007f363099ed4c in QThreadPrivate::start (arg=0x55c562014790) at thread/qthread_unix.cpp:329
#6  0x00007f362fb27609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#7  0x00007f363061e293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f362cae4d40 (LWP 585257)):
[KCrash Handler]
#4  Device::reloadPlugins (this=this@entry=0x55c56226c710) at ./core/device.cpp:192
#5  0x00007f3632171990 in Device::pairStatusChanged (this=0x55c56226c710, status=DeviceLink::Paired) at ./core/device.cpp:249
#6  0x00007f3630bbc2ee in QtPrivate::QSlotObjectBase::call (a=0x7ffde197f420, r=0x55c56226c710, this=0x55c56226a570) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#7  doActivate<false> (sender=0x55c56226c890, signal_index=5, argv=0x7ffde197f420) at kernel/qobject.cpp:3886
#8  0x00007f3630bb56b7 in QMetaObject::activate (sender=sender@entry=0x55c56226c890, m=m@entry=0x7f363218aa40 <DeviceLink::staticMetaObject>, local_signal_index=local_signal_index@entry=2, argv=argv@entry=0x7ffde197f420) at kernel/qobject.cpp:3946
#9  0x00007f3632127aa5 in DeviceLink::pairStatusChanged (this=this@entry=0x55c56226c890, _t1=<optimized out>, _t1@entry=DeviceLink::Paired) at ./obj-x86_64-linux-gnu/core/kdeconnectcore_autogen/CSWKE6ESUK/moc_devicelink.cpp:211
#10 0x00007f36321515f8 in DeviceLink::setPairStatus (this=this@entry=0x55c56226c890, status=status@entry=DeviceLink::Paired) at ./core/backends/devicelink.cpp:26
#11 0x00007f36321417bf in LanDeviceLink::setPairStatus (this=0x55c56226c890, status=<optimized out>) at ./core/backends/lan/landevicelink.cpp:164
#12 0x00007f363214315d in LanPairingHandler::acceptPairing (this=0x55c562273770) at ./core/backends/lan/lanpairinghandler.cpp:83
#13 0x00007f363216e0d2 in Device::acceptPairing (this=<optimized out>) at ./core/device.cpp:345
#14 0x00007f3630bbc2ee in QtPrivate::QSlotObjectBase::call (a=0x7ffde197f650, r=0x55c56226c710, this=0x55c5622743f0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#15 doActivate<false> (sender=0x55c56222c8e0, signal_index=6, argv=0x7ffde197f650) at kernel/qobject.cpp:3886
#16 0x00007f3630bb56b7 in QMetaObject::activate (sender=sender@entry=0x55c56222c8e0, m=m@entry=0x7f3631fa4560 <KNotification::staticMetaObject>, local_signal_index=local_signal_index@entry=3, argv=argv@entry=0x0) at kernel/qobject.cpp:3946
#17 0x00007f3631f57007 in KNotification::action1Activated (this=this@entry=0x55c56222c8e0) at ./obj-x86_64-linux-gnu/src/KF5Notifications_autogen/EWIEGA46WW/moc_knotification.cpp:277
#18 0x00007f3631f5c330 in KNotification::activate (this=this@entry=0x55c56222c8e0, action=1) at ./src/knotification.cpp:327
#19 0x00007f3631f64507 in KNotificationManager::notificationActivated (this=0x7f3631fa5fb0 <(anonymous namespace)::Q_QGS_s_self::innerFunction()::holder>, id=<optimized out>, action=<optimized out>) at ./src/knotificationmanager.cpp:236
#20 0x00007f3630bbc2ee in QtPrivate::QSlotObjectBase::call (a=0x7ffde197f860, r=0x7f3631fa5fb0 <(anonymous namespace)::Q_QGS_s_self::innerFunction()::holder>, this=0x55c562255210) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#21 doActivate<false> (sender=0x55c5621a2d10, signal_index=4, argv=0x7ffde197f860) at kernel/qobject.cpp:3886
#22 0x00007f3630bb56b7 in QMetaObject::activate (sender=sender@entry=0x55c5621a2d10, m=m@entry=0x7f3631fa44e0 <KNotificationPlugin::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7ffde197f860) at kernel/qobject.cpp:3946
#23 0x00007f3631f57283 in KNotificationPlugin::actionInvoked (this=this@entry=0x55c5621a2d10, _t1=<optimized out>, _t2=<optimized out>, _t2@entry=1) at ./obj-x86_64-linux-gnu/src/KF5Notifications_autogen/EWIEGA46WW/moc_knotificationplugin.cpp:167
#24 0x00007f3631f7c0a9 in NotifyByPopup::onNotificationActionInvoked (this=0x55c5621a2d10, notificationId=<optimized out>, actionKey=...) at ./src/notifybypopup.cpp:112
#25 0x00007f3630bbc2ee in QtPrivate::QSlotObjectBase::call (a=0x7ffde197faf0, r=0x55c5621a2d10, this=0x7f361c038f40) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#26 doActivate<false> (sender=0x55c5621a2d48, signal_index=3, argv=0x7ffde197faf0) at kernel/qobject.cpp:3886
#27 0x00007f3630bb56b7 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f3631fa4b60 <OrgFreedesktopNotificationsInterface::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffde197faf0) at kernel/qobject.cpp:3946
#28 0x00007f3631f90213 in OrgFreedesktopNotificationsInterface::ActionInvoked (_t2=..., _t1=<optimized out>, this=<optimized out>) at ./obj-x86_64-linux-gnu/src/notifications_interface.moc:213
#29 OrgFreedesktopNotificationsInterface::qt_static_metacall (_o=_o@entry=0x55c5621a2d48, _id=_id@entry=0, _a=_a@entry=0x7ffde197fc50, _c=QMetaObject::InvokeMetaMethod) at ./obj-x86_64-linux-gnu/src/notifications_interface.moc:128
#30 0x00007f3631f91281 in OrgFreedesktopNotificationsInterface::qt_static_metacall (_a=0x7ffde197fc50, _id=0, _c=QMetaObject::InvokeMetaMethod, _o=0x55c5621a2d48) at ./obj-x86_64-linux-gnu/src/notifications_interface.moc:199
#31 OrgFreedesktopNotificationsInterface::qt_metacall (this=0x55c5621a2d48, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0x7ffde197fc50) at ./obj-x86_64-linux-gnu/src/notifications_interface.moc:199
#32 0x00007f363151555b in QDBusConnectionPrivate::deliverCall (this=<optimized out>, object=<optimized out>, msg=..., metaTypes=..., slotIdx=<optimized out>) at qdbusintegrator.cpp:1001
#33 0x00007f3630bb2e69 in QObject::event (this=0x55c5621a2d48, e=0x7f361c037250) at kernel/qobject.cpp:1314
#34 0x00007f36316fbdc3 in QApplicationPrivate::notify_helper (this=this@entry=0x55c562012bd0, receiver=receiver@entry=0x55c5621a2d48, e=e@entry=0x7f361c037250) at kernel/qapplication.cpp:3632
#35 0x00007f3631704bb8 in QApplication::notify (this=0x7ffde1980320, receiver=0x55c5621a2d48, e=0x7f361c037250) at kernel/qapplication.cpp:3156
#36 0x00007f3630b852ca in QCoreApplication::notifyInternal2 (receiver=0x55c5621a2d48, event=0x7f361c037250) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#37 0x00007f3630b87bd1 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x55c562011bb0) at kernel/qcoreapplication.cpp:1821
#38 0x00007f3630be04c7 in postEventSourceDispatch (s=0x55c5620d4b70) at kernel/qeventdispatcher_glib.cpp:277
#39 0x00007f362f10617d in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#40 0x00007f362f106400 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#41 0x00007f362f1064a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007f3630bdfb22 in QEventDispatcherGlib::processEvents (this=0x55c5620cdee0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#43 0x00007f3630b83dcb in QEventLoop::exec (this=this@entry=0x7ffde1980250, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#44 0x00007f3630b8bf84 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#45 0x000055c561dfa016 in main (argc=<optimized out>, argv=<optimized out>) at ./daemon/kdeconnectd.cpp:174
[Inferior 1 (process 585257) detached]

Possible duplicates by query: bug 437773, bug 435992, bug 434725, bug 434192, bug 433252.

Reported using DrKonqi
Comment 1 Stephan Diestelhorst 2021-06-09 12:02:16 UTC
This now works again with updating to 21.04.1-0xneon+20.04+focal+release+build21 for kdeconnect in KDE Neon.
Comment 2 Nicolas Fella 2021-06-17 09:07:33 UTC

*** This bug has been marked as a duplicate of bug 438065 ***