Bug 438065 - kdeconnectd crashes on connection attempt from another device
Summary: kdeconnectd crashes on connection attempt from another device
Status: CLOSED FIXED
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
: 438052 438053 438060 438062 438064 438066 438073 438076 438077 438139 438164 438319 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-06-04 05:04 UTC by poomklao
Modified: 2021-06-20 01:55 UTC (History)
18 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
attachment-11965-0.html (2.07 KB, text/html)
2021-06-05 02:48 UTC, Kedar Apte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description poomklao 2021-06-04 05:04:46 UTC
Created attachment 139012 [details]
attachment-11965-0.html

Application: kdeconnectd (21.04.1)

Qt Version: 5.15.3
Frameworks Version: 5.82.0
Operating System: Linux 5.4.0-74-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:
Made the phone app attempt to connect to the computer by pressing "refresh" on the "add new devices" page. The daemon crashes instantly afterwards.

The crash can be reproduced every time.

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

[New LWP 5905]
[New LWP 5906]
[New LWP 5907]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f8939e2faff in __GI___poll (fds=0x7ffe84430be8, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
[Current thread is 1 (Thread 0x7f8936302d40 (LWP 5904))]

Thread 4 (Thread 0x7f892e755700 (LWP 5907)):
#0  __libc_enable_asynccancel () at ../sysdeps/unix/sysv/linux/x86_64/cancellation.S:54
#1  0x00007f8939e2fae7 in __GI___poll (fds=0x7f8920004a60, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#2  0x00007f893892436e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f89389244a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f893a3fdb3b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f893a3a1dcb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f893a1bbbb2 in QThread::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f893a1bcd4c in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f8939345609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f8939e3c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f892f966700 (LWP 5906)):
#0  0x00007f8939e2faff in __GI___poll (fds=0x7f8928013290, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f893892436e in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f89389244a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f893a3fdb3b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f893a3a1dcb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f893a1bbbb2 in QThread::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f893ad26f4b in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f893a1bcd4c in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f8939345609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f8939e3c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f8935501700 (LWP 5905)):
#0  0x00007f8939e2faff in __GI___poll (fds=0x7f8935500be8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f8938490c1a in ?? () from /lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f893849290a in xcb_wait_for_event () from /lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f8935c43e88 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f893a1bcd4c in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f8939345609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f8939e3c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f8936302d40 (LWP 5904)):
[KCrash Handler]
#4  Device::reloadPlugins (this=this@entry=0x5568718e4d30) at ./core/device.cpp:192
#5  0x00007f893b990562 in Device::addLink (this=this@entry=0x5568718e4d30, identityPacket=..., link=<optimized out>, link@entry=0x55687190a8f0) at ./core/device.cpp:302
#6  0x00007f893b983b73 in Daemon::onNewDeviceLink (this=0x7ffe84433a40, identityPacket=..., dl=0x55687190a8f0) at ./core/daemon.cpp:206
#7  0x00007f893a3da2ee in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f893b945e48 in LinkProvider::onConnectionReceived (this=this@entry=0x556871858b30, _t1=..., _t2=<optimized out>, _t2@entry=0x55687190a8f0) at ./obj-x86_64-linux-gnu/core/kdeconnectcore_autogen/CSWKE6ESUK/moc_linkprovider.cpp:169
#9  0x00007f893b955ad8 in LanLinkProvider::addLink (this=this@entry=0x556871858b30, deviceId=..., socket=<optimized out>, receivedPacket=receivedPacket@entry=0x556871903c50, connectionOrigin=connectionOrigin@entry=LanDeviceLink::Remotely) at ./core/backends/lan/lanlinkprovider.cpp:627
#10 0x00007f893b95632f in LanLinkProvider::encrypted (this=0x556871858b30) at ./core/backends/lan/lanlinkprovider.cpp:372
#11 0x00007f893a3da2ee in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f8939b91923 in QSslSocketBackendPrivate::continueHandshake (this=0x55687191f380) at ssl/qsslsocket_openssl.cpp:1995
#13 0x00007f8939b98100 in QSslSocketBackendPrivate::startHandshake (this=this@entry=0x55687191f380) at ssl/qsslsocket_openssl.cpp:1440
#14 0x00007f8939b98656 in QSslSocketBackendPrivate::transmit (this=0x55687191f380) at ssl/qsslsocket_openssl.cpp:1114
#15 0x00007f8939b6acf0 in QSslSocket::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ssl/qsslsocket.h:227
#16 0x00007f893a3da320 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#17 0x00007f8939b2e8e4 in QAbstractSocketPrivate::emitReadyRead (this=0x556871934a50, channel=0) at socket/qabstractsocket.cpp:1323
#18 0x00007f8939b2e979 in QAbstractSocketPrivate::canReadNotification (this=0x556871934a50) at socket/qabstractsocket.cpp:748
#19 0x00007f8939b40c89 in QReadNotifier::event (this=<optimized out>, e=<optimized out>) at socket/qnativesocketengine.cpp:1274
#20 0x00007f893af19dc3 in QApplicationPrivate::notify_helper (this=this@entry=0x55687174c7b0, receiver=receiver@entry=0x556871908dd0, e=e@entry=0x7ffe84433720) at kernel/qapplication.cpp:3632
#21 0x00007f893af22bb8 in QApplication::notify (this=0x7ffe84433a00, receiver=0x556871908dd0, e=0x7ffe84433720) at kernel/qapplication.cpp:3156
#22 0x00007f893a3a32ca in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#23 0x00007f893a3fe725 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007f893892417d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#25 0x00007f8938924400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#26 0x00007f89389244a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#27 0x00007f893a3fdb3b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#28 0x00007f893a3a1dcb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#29 0x00007f893a3a9f84 in QCoreApplication::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#30 0x0000556870f09016 in main (argc=<optimized out>, argv=<optimized out>) at ./daemon/kdeconnectd.cpp:174
[Inferior 1 (process 5904) detached]

Reported using DrKonqi
Comment 1 poomklao 2021-06-04 05:06:52 UTC
Note: Most likely, I will not be able to reproduce this bug anymore (after restarting the computer). Will report back to see if that is the case.
Comment 2 poomklao 2021-06-04 05:30:24 UTC
Crash is still reproducible after restarting both devices.
Comment 3 Nicolas Fella 2021-06-04 09:26:52 UTC
*** Bug 438077 has been marked as a duplicate of this bug. ***
Comment 4 Nicolas Fella 2021-06-04 09:27:17 UTC
*** Bug 438076 has been marked as a duplicate of this bug. ***
Comment 5 Nicolas Fella 2021-06-04 09:27:48 UTC
*** Bug 438064 has been marked as a duplicate of this bug. ***
Comment 6 Nicolas Fella 2021-06-04 09:28:07 UTC
*** Bug 438062 has been marked as a duplicate of this bug. ***
Comment 7 Nicolas Fella 2021-06-04 09:28:24 UTC
*** Bug 438066 has been marked as a duplicate of this bug. ***
Comment 8 Nicolas Fella 2021-06-04 09:28:39 UTC
*** Bug 438052 has been marked as a duplicate of this bug. ***
Comment 9 Nicolas Fella 2021-06-04 09:29:05 UTC
*** Bug 438073 has been marked as a duplicate of this bug. ***
Comment 10 Nicolas Fella 2021-06-04 09:29:40 UTC
*** Bug 438053 has been marked as a duplicate of this bug. ***
Comment 11 Nicolas Fella 2021-06-04 09:29:54 UTC
*** Bug 438060 has been marked as a duplicate of this bug. ***
Comment 12 Nicolas Fella 2021-06-04 10:10:28 UTC
kdeconnect.core: KPluginFactory could not load the plugin: "kdeconnect_findthisdevice" "Cannot load library /usr/lib/x86_64-linux-gnu/qt5/plugins/kdeconnect/kdeconnect_findthisdevice.so: (libKF5PulseAudioQt.so.2: cannot open shared object file: No such file or directory)"

Looks like Neon did not rebuild KDE Connect after the ABI break in PulseAudioQt 1.3
Comment 13 Genneret 2021-06-04 10:11:59 UTC
I add one information : The problem was after an upgrade of KDE NEON with a information message .
There is a mismatch of version between python3-pyqt5 and python3-pyqt5.qtwebengine
Message :
Investigating (0) python3-pyqt5:amd64 < 5.14.1+dfsg-3+20.04+focal+build13 -> 5.15.4+dfsg-1+20.04+focal+unstable+build20 @ii umU Ib >
Broken python3-pyqt5:amd64 Breaks on python3-pyqt5.qtwebengine:amd64 < 5.14.0-2build1 @ii mK > (< 5.15.0-1+exp1~)
  Considering python3-pyqt5.qtwebengine:amd64 1 as a solution to python3-pyqt5:amd64 38
  Added python3-pyqt5.qtwebengine:amd64 to the remove list
Comment 14 Jonathan Riddell 2021-06-04 10:41:55 UTC
I'm rebuilding kdeconnect and pyqtwebengine now..
Comment 15 Adrien Beau 2021-06-04 13:06:30 UTC
The newly built (and released) package works fine now.
Comment 16 Dony 2021-06-04 13:12:35 UTC
It's fixed with a new update that has been just released. Thank you.
Comment 17 Jernej 2021-06-04 13:31:32 UTC
kde neon last update fixed the issue for me.

kdeconnect-21.04.1-0xneon+20.04+focal+release+build21.amd64
kdeconnect-dbgsym-21.04.1-0xneon+20.04+focal+release+build21.amd64
neon-repositories-ubuntu-ddebs-0.1+p20.04+trelease+git20210604.1100.all
Comment 18 Jernej 2021-06-04 13:32:25 UTC
thanks for the super fast fixing
Comment 19 Genneret 2021-06-04 14:15:14 UTC
It's good for me. The files has been upgraded . KDE Connect work gracefully. Thanks for all
Comment 20 Kedar Apte 2021-06-05 02:48:31 UTC
beauty.. Works now. Thanks for the quick turnaround

On Fri, Jun 4, 2021 at 6:36 PM Adrien Beau <bugzilla_noreply@kde.org> wrote:

> Adrien Beau <abe.kde.bugs@zerty.xyz> changed bug 438065
> <https://bugs.kde.org/show_bug.cgi?id=438065>
> What Removed Added
> CC   abe.kde.bugs@zerty.xyz
>
> *Comment # 15 <https://bugs.kde.org/show_bug.cgi?id=438065#c15> on bug
> 438065 <https://bugs.kde.org/show_bug.cgi?id=438065> from Adrien Beau
> <abe.kde.bugs@zerty.xyz> *
>
> The newly built (and released) package works fine now.
>
> ------------------------------
> You are receiving this mail because:
>
>    - You are on the CC list for the bug.
>
>
Comment 21 Kedar Apte 2021-06-05 02:49:39 UTC
Works now. Thanks for the quick turn around
Comment 22 Nicolas Fella 2021-06-17 09:07:33 UTC
*** Bug 438319 has been marked as a duplicate of this bug. ***
Comment 23 Nicolas Fella 2021-06-17 09:08:13 UTC
*** Bug 438164 has been marked as a duplicate of this bug. ***
Comment 24 Nicolas Fella 2021-06-17 09:08:36 UTC
*** Bug 438139 has been marked as a duplicate of this bug. ***
Comment 25 Maxwell175 2021-06-20 01:55:15 UTC
This update fixed the issue for me as well. Huge thanks! I can now really appreciate the beauty of this phenomenal system. Huge props to all the contributors of KDE connect for making it such an amazing experience!