Bug 470273

Summary: KDE connect daemon crashed while sending files from android device
Product: [Applications] kdeconnect Reporter: Samuel <thepixelcode>
Component: commonAssignee: Albert Vaca Cintora <albertvaka>
Status: CONFIRMED ---    
Severity: crash CC: andrew.g.r.holmes, kdedev
Priority: NOR Keywords: drkonqi
Version First Reported In: 23.08.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Samuel 2023-05-26 02:19:30 UTC
Application: kdeconnectd (23.04.1)

Qt Version: 5.15.9
Frameworks Version: 5.106.0
Operating System: Linux 6.3.3-zen1-1-zen x86_64
Windowing System: Wayland
Distribution: EndeavourOS
DrKonqi: 5.27.5 [KCrashBackend]

-- Information about the crash:
I was sending three pdfs from my android to my computer, when crashed after one file was sended, I don't know if it is usefull but my computer is connected via ethernet cable and while I was using kdeconnect the computer was receiving files via samba

The reporter is unsure if this crash is reproducible.

-- Backtrace:
Application: Demonio de KDE Connect (kdeconnectd), signal: Segmentation fault
Content of s_kcrashErrorMessage: std::unique_ptr<char []> = {get() = <optimized out>}
[KCrash Handler]
#6  std::__atomic_base<void*>::load (__m=std::memory_order_relaxed, this=0x41) at /usr/include/c++/13.1.1/bits/atomic_base.h:837
#7  std::atomic<void*>::load(std::memory_order) const [clone .constprop.0] (this=0x41, __m=std::memory_order_relaxed) at /usr/include/c++/13.1.1/atomic:577
#8  0x00007f158dccf966 in QAtomicOps<void*>::loadRelaxed<void*> (_q_value=..., _q_value=...) at ../../include/QtCore/../../src/corelib/thread/qatomic_cxx11.h:239
#9  QBasicAtomicPointer<void>::loadRelaxed (this=<optimized out>, this=<optimized out>) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:248
#10 doActivate<false> (sender=0x55a639a1a5f0, signal_index=4, argv=0x7ffd756c9c50) at kernel/qobject.cpp:3850
#11 0x00007f158dbf2df6 in QIODevice::channelReadyRead (this=this@entry=0x55a639a1a5f0, _t1=<optimized out>, _t1@entry=0) at .moc/moc_qiodevice.cpp:197
#12 0x00007f158d9890ae in QSslSocketBackendPrivate::transmit (this=0x55a639a41a30) at ssl/qsslsocket_openssl.cpp:1202
#13 0x00007f158dcd01a3 in doActivate<false> (sender=0x55a639a74810, signal_index=3, argv=0x7ffd756cada0) at kernel/qobject.cpp:3935
#14 0x00007f158d951180 in QAbstractSocketPrivate::emitReadyRead (channel=0, this=0x55a639b49460) at socket/qabstractsocket.cpp:1323
#15 QAbstractSocketPrivate::canReadNotification (this=0x55a639b49460) at socket/qabstractsocket.cpp:748
#16 0x00007f158d96828a in QAbstractSocketEngine::readNotification (this=<optimized out>) at socket/qabstractsocketengine.cpp:160
#17 QReadNotifier::event (this=<optimized out>, e=<optimized out>) at socket/qnativesocketengine.cpp:1274
#18 0x00007f158e97893f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x55a6399f0cd0, e=0x7ffd756caeb0) at kernel/qapplication.cpp:3640
#19 0x00007f158dc9ab18 in QCoreApplication::notifyInternal2 (receiver=0x55a6399f0cd0, event=0x7ffd756caeb0) at kernel/qcoreapplication.cpp:1064
#20 0x00007f158dce8c76 in socketNotifierSourceDispatch (source=0x55a63954e420) at kernel/qeventdispatcher_glib.cpp:107
#21 0x00007f158c10f53b in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#22 0x00007f158c16c219 in ?? () from /usr/lib/libglib-2.0.so.0
#23 0x00007f158c10e1a2 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#24 0x00007f158dce9f0c in QEventDispatcherGlib::processEvents (this=0x55a63954a9b0, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#25 0x00007f158dc99824 in QEventLoop::exec (this=this@entry=0x7ffd756cb130, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#26 0x00007f158dc9acc3 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#27 0x00007f158e13b7c2 in QGuiApplication::exec () at kernel/qguiapplication.cpp:1870
#28 0x00007f158e976cda in QApplication::exec () at kernel/qapplication.cpp:2832
#29 0x000055a638c02597 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kdeconnect/kdeconnect-kde-23.04.1/daemon/kdeconnectd.cpp:185
[Inferior 1 (process 751) detached]

The reporter indicates this bug may be a duplicate of or related to bug 467015.

Reported using DrKonqi
Comment 1 TraceyC 2024-02-07 02:44:36 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