Bug 461040

Summary: Сrashes when receiving files from phone
Product: [Applications] kdeconnect Reporter: VladKo <vldkozlenko>
Component: commonAssignee: Albert Vaca Cintora <albertvaka>
Status: RESOLVED DUPLICATE    
Severity: crash CC: arcadiy, cwo.kde, dah5aeZe, gustavo.schenkel, jona.verdiecoschool, nicolas.fella, throw.away97219, wilker-gaming
Priority: NOR Keywords: drkonqi
Version First Reported In: 22.08.1   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
See Also: https://bugzilla.redhat.com/show_bug.cgi?id=2227406
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi
New crash information added by DrKonqi

Description VladKo 2022-10-26 23:20:32 UTC
Application: kdeconnectd (22.08.1)

Qt Version: 5.15.6
Frameworks Version: 5.98.0
Operating System: Linux 5.19.15-301.fc37.x86_64 x86_64
Windowing System: Wayland
Distribution: Fedora Linux 37 (Workstation Edition)
DrKonqi: 5.25.5 [KCrashBackend]

-- Information about the crash:
kde connect crashed when I tried to send a gif file from my phone to my PC.

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: Фонова служба KDE Connect (kdeconnectd), signal: Aborted

[KCrash Handler]
#4  0x00007f3a97309e7c in __pthread_kill_implementation () from /lib64/libc.so.6
#5  0x00007f3a972b9aa6 in raise () from /lib64/libc.so.6
#6  0x00007f3a972a37fc in abort () from /lib64/libc.so.6
#7  0x00007f3a977404d5 in QMessageLogger::fatal(char const*, ...) const () from /lib64/libQt5Core.so.5
#8  0x00007f3a98b97e4a in KIO::SlaveBase::waitForAnswer(int, int, QByteArray&, int*) () from /lib64/libKF5KIOCore.so.5
#9  0x00007f3a98b9b085 in KIO::SlaveBase::canResume(unsigned long long) () from /lib64/libKF5KIOCore.so.5
#10 0x00007f3a7ce3412d in FileProtocol::put(QUrl const&, int, QFlags<KIO::JobFlag>) () from /usr/lib64/qt5/plugins/kf5/kio/kio_file.so
#11 0x00007f3a98b9a711 in KIO::SlaveBase::dispatch(int, QByteArray const&) () from /lib64/libKF5KIOCore.so.5
#12 0x00007f3a98b930be in KIO::SlaveBase::dispatchLoop() () from /lib64/libKF5KIOCore.so.5
#13 0x00007f3a98c0bb73 in KIO::WorkerThread::run() () from /lib64/libKF5KIOCore.so.5
#14 0x00007f3a97777487 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#15 0x00007f3a9730814d in start_thread () from /lib64/libc.so.6
#16 0x00007f3a97389950 in clone3 () from /lib64/libc.so.6

Thread 6 (Thread 0x7f3a7dcd56c0 (LWP 5853) "kdeconnectd"):
#1  0x00007f3a932b200f in usbmuxd_listen_inotify () from /lib64/libusbmuxd-2.0.so.6
#2  0x00007f3a932b2cab in device_monitor () from /lib64/libusbmuxd-2.0.so.6
#3  0x00007f3a9730814d in start_thread () from /lib64/libc.so.6
#4  0x00007f3a97389950 in clone3 () from /lib64/libc.so.6

Thread 5 (Thread 0x7f3a7e5ed6c0 (LWP 4022) "Qt bearer threa"):
#1  0x00007f3a970655b4 in QNetworkInterfaceManager::scan() () from /lib64/libQt5Network.so.5
#2  0x00007f3a970555e4 in QNetworkInterfaceManager::allInterfaces() () from /lib64/libQt5Network.so.5
#3  0x00007f3a97056615 in QNetworkInterface::allInterfaces() () from /lib64/libQt5Network.so.5
#4  0x00007f3a8405696b in QGenericEngine::doRequestUpdate() () from /usr/lib64/qt5/plugins/bearer/libqgenericbearer.so
#5  0x00007f3a979457ea in QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const () from /lib64/libQt5Core.so.5
#6  0x00007f3a9794692e in QMetaObject::invokeMethod(QObject*, char const*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) () from /lib64/libQt5Core.so.5
#7  0x00007f3a970418f9 in QNetworkConfigurationManagerPrivate::pollEngines() () from /lib64/libQt5Network.so.5
#8  0x00007f3a9796ab2f in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#9  0x00007f3a9796dd2e in QTimer::timeout(QTimer::QPrivateSignal) () from /lib64/libQt5Core.so.5
#10 0x00007f3a97961ad5 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#11 0x00007f3a979371ab in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#12 0x00007f3a979873b1 in QTimerInfoList::activateTimers() () from /lib64/libQt5Core.so.5
#13 0x00007f3a97987c8c in timerSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
#14 0x00007f3a95cdcc3f in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#15 0x00007f3a95d323c8 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#16 0x00007f3a95cd9ec0 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#17 0x00007f3a97988046 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#18 0x00007f3a97935c1a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#19 0x00007f3a9777615a in QThread::exec() () from /lib64/libQt5Core.so.5
#20 0x00007f3a97777487 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#21 0x00007f3a9730814d in start_thread () from /lib64/libc.so.6
#22 0x00007f3a97389950 in clone3 () from /lib64/libc.so.6

Thread 4 (Thread 0x7f3a7f7fe6c0 (LWP 4011) "WaylandEventThr"):
#1  0x00007f3a9551a7b7 in QtWaylandClient::EventThread::run() () from /lib64/libQt5WaylandClient.so.5
#2  0x00007f3a97777487 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#3  0x00007f3a9730814d in start_thread () from /lib64/libc.so.6
#4  0x00007f3a97389950 in clone3 () from /lib64/libc.so.6

Thread 3 (Thread 0x7f3a7ffff6c0 (LWP 4010) "WaylandEventThr"):
#1  0x00007f3a97307530 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libc.so.6
#2  0x00007f3a9777cec4 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /lib64/libQt5Core.so.5
#3  0x00007f3a9551a760 in QtWaylandClient::EventThread::run() () from /lib64/libQt5WaylandClient.so.5
#4  0x00007f3a97777487 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#5  0x00007f3a9730814d in start_thread () from /lib64/libc.so.6
#6  0x00007f3a97389950 in clone3 () from /lib64/libc.so.6

Thread 2 (Thread 0x7f3a85a236c0 (LWP 4000) "QDBusConnection"):
#1  0x00007f3a95cdd28a in g_main_context_check () from /lib64/libglib-2.0.so.0
#2  0x00007f3a95d3223a in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#3  0x00007f3a95cd9ec0 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#4  0x00007f3a97988046 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007f3a97935c1a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#6  0x00007f3a9777615a in QThread::exec() () from /lib64/libQt5Core.so.5
#7  0x00007f3a98260b1b in QDBusConnectionManager::run() () from /lib64/libQt5DBus.so.5
#8  0x00007f3a97777487 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#9  0x00007f3a9730814d in start_thread () from /lib64/libc.so.6
#10 0x00007f3a97389950 in clone3 () from /lib64/libc.so.6

Thread 1 (Thread 0x7f3a92fdf980 (LWP 3959) "kdeconnectd"):
#1  0x00007f3a95cdd28a in g_main_context_check () from /lib64/libglib-2.0.so.0
#2  0x00007f3a95d3223a in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
#3  0x00007f3a95cd9ec0 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#4  0x00007f3a9798802a in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007f3a97935c1a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#6  0x00007f3a9793dce2 in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#7  0x00005579c0a26106 in main ()
[Inferior 1 (process 3959) detached]

Reported using DrKonqi
Comment 1 Arcadiy Ivanov 2022-11-14 02:21:23 UTC
Created attachment 153727 [details]
New crash information added by DrKonqi

kdeconnectd (22.08.1) using Qt 5.15.6

Receiving 3 files via KDE Connect, the transfer stuck, crashed when cancelled.

-- Backtrace (Reduced):
#4  0x00007f40e19fce0b in KJob::kill(KJob::KillVerbosity) () from /lib64/libKF5CoreAddons.so.5
#5  0x00007f40e19fce0d in KJob::kill(KJob::KillVerbosity) () from /lib64/libKF5CoreAddons.so.5
#6  0x00007f40e06db9a6 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
#7  0x00007f40e1945aa3 in OrgKdeJobViewV3Interface::qt_metacall(QMetaObject::Call, int, void**) () from /lib64/libKF5JobWidgets.so.5
#8  0x00007f40e11920bb in QDBusConnectionPrivate::deliverCall(QObject*, int, QDBusMessage const&, QVector<int> const&, int) () from /lib64/libQt5DBus.so.5
Comment 2 Nicolas Fella 2022-11-17 22:48:02 UTC

*** This bug has been marked as a duplicate of bug 457436 ***
Comment 3 Gustavo Brondani Schenkel 2023-03-28 15:33:46 UTC
Created attachment 157669 [details]
New crash information added by DrKonqi

kdeconnectd (22.12.3) using Qt 5.15.8

Was trying to send 2 pdf from LineageOS 20.0 to Slackware 15.0-current, and the daemon crashed, tried just one file and it crashed again.
I didn't have this problems last month.

-- Backtrace (Reduced):
#7  0x00007fa61a4a1b79 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib64/libQt5Core.so.5
#8  0x00007fa61c057d66 in KIO::SlaveBase::waitForAnswer(int, int, QByteArray&, int*) () from /usr/lib64/libKF5KIOCore.so.5
#9  0x00007fa61c05992d in KIO::SlaveBase::canResume(unsigned long long) () from /usr/lib64/libKF5KIOCore.so.5
[...]
#11 0x00007fa61c05ea61 in KIO::SlaveBase::dispatch(int, QByteArray const&) () from /usr/lib64/libKF5KIOCore.so.5
#12 0x00007fa61c05f3a6 in KIO::SlaveBase::dispatchLoop() () from /usr/lib64/libKF5KIOCore.so.5
Comment 4 Christian Stadelmann 2023-07-29 09:17:01 UTC
*** Bug 468729 has been marked as a duplicate of this bug. ***
Comment 5 Christian Stadelmann 2023-07-29 09:21:04 UTC
It seems like there are two crashes happening here:
1. During transfer, the PC (linux) application crashes in `KIO::SlaveBase::waitForAnswer`
2. When clicking "Abort" on the stuck file transfer dialog, this one crashes in `KJob::kill` (see comment #1)

I can still reproduce this issue with kdeconnectd-23.04.3-2.fc38 (Fedora 38), see https://bugzilla.redhat.com/show_bug.cgi?id=2227406
Comment 6 Christian Stadelmann 2023-07-29 09:21:41 UTC
Reopening as this bug report holds more useful information that bug #468729.
Comment 7 jona.verdiecoschool 2023-12-09 22:48:05 UTC
Created attachment 164056 [details]
New crash information added by DrKonqi

kdeconnectd (23.04.2) using Qt 5.15.9

i was trying to recive files from my phone and it crashed on both devices

-- Backtrace (Reduced):
#7  0x00007fc4236a0098 in QMessageLogger::fatal(char const*, ...) const () from /usr/lib/libQt5Core.so.5
[...]
#9  0x00007fc424ed3bc6 in KIO::SlaveBase::canResume(unsigned long long) () from /usr/lib/libKF5KIOCore.so.5
[...]
#11 0x00007fc424ed30c5 in KIO::SlaveBase::dispatch(int, QByteArray const&) () from /usr/lib/libKF5KIOCore.so.5
#12 0x00007fc424ecb26e in KIO::SlaveBase::dispatchLoop() () from /usr/lib/libKF5KIOCore.so.5
[...]
#6  0x00007fc4238e9f2f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
Comment 8 cwo 2024-07-31 16:33:34 UTC
Thank you for the bug report! This crash is already reported and being tracked, please follow the linked bug report for updates.

*** This bug has been marked as a duplicate of bug 450135 ***
Comment 9 throw.away97219 2024-10-08 17:09:43 UTC
Created attachment 174536 [details]
New crash information added by DrKonqi

kdeconnectd (22.12.3) using Qt 5.15.8

Kde Connect Daemon crashed when receaving a ~21MB pdf from an android, 1.32.5, Play Store version
Note: I had already tried sending the same file before, it got stuck, I disconnected both devices from internet, shortly after I tried again and got this
Note 2: I got the file from Whatzapp, and tried to send it from Whatzapp's share file feature

-- Backtrace (Reduced):
#4  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#5  0x00007f171c4a9e9f in __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#6  0x00007f171c45afb2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#7  0x00007f171c445472 in __GI_abort () at ./stdlib/abort.c:79
#8  0x00007f171c690c79 in QMessageLogger::fatal(char const*, ...) const () from /lib/x86_64-linux-gnu/libQt5Core.so.5
Comment 10 throw.away97219 2024-10-08 17:17:44 UTC
Created attachment 174538 [details]
New crash information added by DrKonqi

kdeconnectd (22.12.3) using Qt 5.15.8

Important note: Doesn't seem to be tied with the app that is sending the file, seems to be a KConnect issue
IN2: Second time sending this have log
Kde Connect crashed when receaving a ~21MB pdf from phone, Kde Connect 1.32.5 Play Store

-- Backtrace (Reduced):
#4  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#5  0x00007f68714a9e9f in __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#6  0x00007f687145afb2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#7  0x00007f6871445472 in __GI_abort () at ./stdlib/abort.c:79
#8  0x00007f6871690c79 in QMessageLogger::fatal(char const*, ...) const () from /lib/x86_64-linux-gnu/libQt5Core.so.5