Bug 475747 - kconnect crash whilst transferring multiple files from phone
Summary: kconnect crash whilst transferring multiple files from phone
Status: RESOLVED DUPLICATE of bug 450135
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (other bugs)
Version First Reported In: 23.08.4
Platform: Debian stable Linux
: NOR crash
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2023-10-17 15:03 UTC by Tim Small
Modified: 2024-07-31 16:33 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Small 2023-10-17 15:03:29 UTC
Application: kdeconnectd (22.12.3)

Qt Version: 5.15.8
Frameworks Version: 5.103.0
Operating System: Linux 6.1.0-13-amd64 x86_64
Windowing System: Wayland
Distribution: Debian GNU/Linux 12 (bookworm)
DrKonqi: 5.27.5 [KCrashBackend]

-- Information about the crash:
KDE crashes on the 10th file, when tranfering a block of 16 files from my phone.

The crash can be reproduced sometimes.

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

[KCrash Handler]
#4  __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#5  0x00007f1c91aa9d9f in __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#6  0x00007f1c91a5af32 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#7  0x00007f1c91a45472 in __GI_abort () at ./stdlib/abort.c:79
#8  0x00007f1c91c90c79 in qt_message_fatal (message=<synthetic pointer>..., context=...) at global/qlogging.cpp:1914
#9  QMessageLogger::fatal (this=this@entry=0x7f1c5e3fc6f0, msg=msg@entry=0x7f1c934b3d40 "Fatal Error: Got cmd %d, while waiting for an answer!") at global/qlogging.cpp:893
#10 0x00007f1c933e93b6 in KIO::SlaveBase::waitForAnswer (this=this@entry=0x7f1c4c003090, expected1=expected1@entry=84, expected2=expected2@entry=65, data=..., pCmd=pCmd@entry=0x7f1c5e3fc764) at ./src/core/slavebase.cpp:1149
#11 0x00007f1c933eb335 in KIO::SlaveBase::canResume (this=this@entry=0x7f1c4c003090, offset=65536) at ./src/core/slavebase.cpp:1116
#12 0x00007f1c805581bd in FileProtocol::put (this=0x7f1c4c003080, url=..., _mode=-1, _flags=...) at ./src/ioslaves/file/file.cpp:546
#13 0x00007f1c933f0a91 in KIO::SlaveBase::dispatch (this=0x7f1c4c003090, command=68, data=...) at ./src/core/slavebase.cpp:1289
#14 0x00007f1c933f13f6 in KIO::SlaveBase::dispatchLoop (this=0x7f1c4c003090) at ./src/core/slavebase.cpp:342
#15 0x00007f1c9348aa6e in KIO::WorkerThread::run (this=0x563834ef9660) at ./src/core/workerthread.cpp:62
#16 0x00007f1c91ccbd43 in QThreadPrivate::start (arg=0x563834ef9660) at thread/qthread_unix.cpp:331
#17 0x00007f1c91aa8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#18 0x00007f1c91b2861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 10 (Thread 0x7f1c5f3ff6c0 (LWP 4478) "kdeconnectd"):
#1  __pselect (nfds=nfds@entry=5, readfds=readfds@entry=0x7f1c5f3f6ad0, writefds=writefds@entry=0x0, exceptfds=exceptfds@entry=0x0, timeout=<optimized out>, timeout@entry=0x7f1c5f3f6ac0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/pselect.c:56
#2  0x00007f1c9020ba62 in usbmuxd_listen_inotify () at libusbmuxd.c:923
#3  0x00007f1c9020ce60 in usbmuxd_listen () at libusbmuxd.c:979
#4  device_monitor (data=<optimized out>) at libusbmuxd.c:1107
#5  0x00007f1c91aa8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#6  0x00007f1c91b2861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 9 (Thread 0x7f1c74dff6c0 (LWP 4358) "Qt bearer threa"):
#1  0x00007f1c905d49ae in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f1c905d4acc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f1c91f0984e in QEventDispatcherGlib::processEvents (this=0x7f1c58000b70, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#4  0x00007f1c91eb017b in QEventLoop::exec (this=this@entry=0x7f1c74dfebc0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#5  0x00007f1c91ccab87 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#6  0x00007f1c91ccbd43 in QThreadPrivate::start (arg=0x563834dec9b0) at thread/qthread_unix.cpp:331
#7  0x00007f1c91aa8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#8  0x00007f1c91b2861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 8 (Thread 0x7f1c80ffc6c0 (LWP 4357) "QDBusConnection"):
#1  __GI___libc_read (fd=16, buf=0x7f1c80ffb970, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007f1c90623c9f in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f1c905d44c5 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f1c905d4958 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f1c905d4acc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f1c91f0984e in QEventDispatcherGlib::processEvents (this=0x7f1c68000b70, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#7  0x00007f1c91eb017b in QEventLoop::exec (this=this@entry=0x7f1c80ffbb90, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#8  0x00007f1c91ccab87 in QThread::exec (this=this@entry=0x7f1c93215d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#9  0x00007f1c9319d487 in QDBusConnectionManager::run (this=0x7f1c93215d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at ./src/dbus/qdbusconnection.cpp:179
#10 0x00007f1c91ccbd43 in QThreadPrivate::start (arg=0x7f1c93215d80 <(anonymous namespace)::Q_QGS__q_manager::innerFunction()::holder>) at thread/qthread_unix.cpp:331
#11 0x00007f1c91aa8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#12 0x00007f1c91b2861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 7 (Thread 0x7f1c817fd6c0 (LWP 4348) "kdeconnect:sh2"):
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x563834cf8ce0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
#2  0x00007f1c91aa4e0b in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x563834cf8ce0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x00007f1c91aa7468 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x563834cf8c90, cond=0x563834cf8cb8) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x563834cf8cb8, mutex=0x563834cf8c90) at ./nptl/pthread_cond_wait.c:618
#5  0x00007f1c8910c059 in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:135
#6  0x00007f1c890be17b in util_queue_thread_func (input=input@entry=0x563834cf95e0) at ../src/util/u_queue.c:290
#7  0x00007f1c8910bf97 in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:67
#8  0x00007f1c91aa8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#9  0x00007f1c91b2861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 6 (Thread 0x7f1c81ffe6c0 (LWP 4347) "kdeconnect:sh1"):
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x563834cf8ce0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
#2  0x00007f1c91aa4e0b in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x563834cf8ce0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x00007f1c91aa7468 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x563834cf8c90, cond=0x563834cf8cb8) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x563834cf8cb8, mutex=0x563834cf8c90) at ./nptl/pthread_cond_wait.c:618
#5  0x00007f1c8910c059 in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:135
#6  0x00007f1c890be17b in util_queue_thread_func (input=input@entry=0x563834cf9750) at ../src/util/u_queue.c:290
#7  0x00007f1c8910bf97 in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:67
#8  0x00007f1c91aa8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#9  0x00007f1c91b2861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 5 (Thread 0x7f1c827ff6c0 (LWP 4346) "kdeconnect:sh0"):
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x563834cf8ce0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
#2  0x00007f1c91aa4e0b in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x563834cf8ce0, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x00007f1c91aa7468 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x563834cf8c90, cond=0x563834cf8cb8) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x563834cf8cb8, mutex=0x563834cf8c90) at ./nptl/pthread_cond_wait.c:618
#5  0x00007f1c8910c059 in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:135
#6  0x00007f1c890be17b in util_queue_thread_func (input=input@entry=0x563834c8a100) at ../src/util/u_queue.c:290
#7  0x00007f1c8910bf97 in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:67
#8  0x00007f1c91aa8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#9  0x00007f1c91b2861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 4 (Thread 0x7f1c88d126c0 (LWP 4345) "kdeconn:disk$0"):
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x563834d01468, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
#2  0x00007f1c91aa4e0b in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x563834d01468, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x00007f1c91aa7468 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x563834d01418, cond=0x563834d01440) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x563834d01440, mutex=0x563834d01418) at ./nptl/pthread_cond_wait.c:618
#5  0x00007f1c8910c059 in cnd_wait (cond=<optimized out>, mtx=<optimized out>) at ../src/c11/impl/threads_posix.c:135
#6  0x00007f1c890be17b in util_queue_thread_func (input=input@entry=0x563834cfaaa0) at ../src/util/u_queue.c:290
#7  0x00007f1c8910bf97 in impl_thrd_routine (p=<optimized out>) at ../src/c11/impl/threads_posix.c:67
#8  0x00007f1c91aa8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#9  0x00007f1c91b2861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 3 (Thread 0x7f1c8b6696c0 (LWP 4335) "WaylandEventThr"):
#1  0x00007f1c8ff2fcd6 in poll (__timeout=-1, __nfds=2, __fds=0x7f1c8b668bb0) at /usr/include/x86_64-linux-gnu/bits/poll2.h:39
#2  QtWaylandClient::EventThread::run (this=0x563834c71d20) at ./src/client/qwaylanddisplay.cpp:208
#3  0x00007f1c91ccbd43 in QThreadPrivate::start (arg=0x563834c71d20) at thread/qthread_unix.cpp:331
#4  0x00007f1c91aa8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#5  0x00007f1c91b2861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 2 (Thread 0x7f1c8be6a6c0 (LWP 4334) "WaylandEventThr"):
#1  __futex_abstimed_wait_common (futex_word=futex_word@entry=0x563834c739e4, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0, cancel=cancel@entry=true) at ./nptl/futex-internal.c:87
#2  0x00007f1c91aa4e0b in __GI___futex_abstimed_wait_cancelable64 (futex_word=futex_word@entry=0x563834c739e4, expected=expected@entry=0, clockid=clockid@entry=0, abstime=abstime@entry=0x0, private=private@entry=0) at ./nptl/futex-internal.c:139
#3  0x00007f1c91aa7468 in __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x563834c73990, cond=0x563834c739b8) at ./nptl/pthread_cond_wait.c:503
#4  ___pthread_cond_wait (cond=0x563834c739b8, mutex=0x563834c73990) at ./nptl/pthread_cond_wait.c:618
#5  0x00007f1c91cd1a2b in QWaitConditionPrivate::wait (deadline=..., this=0x563834c73990) at thread/qwaitcondition_unix.cpp:146
#6  QWaitCondition::wait (this=this@entry=0x563834c6ba90, mutex=mutex@entry=0x563834c6ba88, deadline=...) at thread/qwaitcondition_unix.cpp:225
#7  0x00007f1c8ff2fc7f in QtWaylandClient::EventThread::waitForReading (this=0x563834c6ba50) at ./src/client/qwaylanddisplay.cpp:242
#8  QtWaylandClient::EventThread::run (this=0x563834c6ba50) at ./src/client/qwaylanddisplay.cpp:206
#9  0x00007f1c91ccbd43 in QThreadPrivate::start (arg=0x563834c6ba50) at thread/qthread_unix.cpp:331
#10 0x00007f1c91aa8044 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
#11 0x00007f1c91b2861c in clone3 () at ../sysdeps/unix/sysv/linux/x86_64/clone3.S:81

Thread 1 (Thread 0x7f1c8d4299c0 (LWP 4297) "kdeconnectd"):
#1  0x00007f1c905d0307 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f1c905d0430 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f1c905d47e8 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f1c905d4a38 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f1c905d4acc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f1c91f09836 in QEventDispatcherGlib::processEvents (this=0x563834c71c90, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#7  0x00007f1c91eb017b in QEventLoop::exec (this=this@entry=0x7ffe99c2b1f0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#8  0x00007f1c91eb82d6 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#9  0x0000563833785b2f in main (argc=<optimized out>, argv=<optimized out>) at ./daemon/kdeconnectd.cpp:185
[Inferior 1 (process 4297) detached]

Reported using DrKonqi
Comment 1 Tim Small 2023-11-03 10:42:39 UTC
Also crashed during first file transfer when transferring 3 files.
Comment 2 TraceyC 2024-02-07 02:45:16 UTC
I was able to reproduce this, intermittently
See https://bugs.kde.org/show_bug.cgi?id=418074 

There are a number of bugs related to crashes in kdeconnect if the user atteempts to transfer multiple files, or a large file, from a phone to Plasma. I'm not sure they are all duplicates. I'm listing them here so that someone more knowledgeable can more easily take a look at them as a group.

https://bugs.kde.org/show_bug.cgi?id=418074
https://bugs.kde.org/show_bug.cgi?id=467015
https://bugs.kde.org/show_bug.cgi?id=470273
https://bugs.kde.org/show_bug.cgi?id=471881
https://bugs.kde.org/show_bug.cgi?id=473071
https://bugs.kde.org/show_bug.cgi?id=474495
https://bugs.kde.org/show_bug.cgi?id=475747
https://bugs.kde.org/show_bug.cgi?id=480889

## System details

kdeconnect 23.08.4

Operating System: Solus 4.5
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12
Kernel Version: 6.6.15-272.current (64-bit)
Graphics Platform: X11
Processors: 16 × 11th Gen Intel® Core™ i7-11800H @ 2.30GHz
Memory: 62.5 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2
Manufacturer: Dell Inc.
Product Name: XPS 17 9710

Phone:
Sony Xperia 1 III
Model: SQ-BC62
Android v12 - kdeconnect 1.29.0
Comment 3 cwo 2024-07-31 16:33:16 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 ***