Bug 474495 - kdeconnectd crashes when cancelling file transfer from smartphone
Summary: kdeconnectd crashes when cancelling file transfer from smartphone
Status: CONFIRMED
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: 23.08.4
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords: drkonqi
: 481411 487741 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-09-13 15:39 UTC by Deniil
Modified: 2024-09-28 19:40 UTC (History)
6 users (show)

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


Attachments
New crash information added by DrKonqi (2.31 KB, text/plain)
2024-01-20 09:12 UTC, xanijo3460
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Deniil 2023-09-13 15:39:24 UTC
Application: kdeconnectd (23.08.0)

Qt Version: 5.15.10
Frameworks Version: 5.110.0
Operating System: Linux 6.5.2-zen1-1-zen x86_64
Windowing System: Wayland
Distribution: "Arch Linux"
DrKonqi: 5.27.8 [KCrashBackend]

-- Information about the crash:
-- Info about the smartphone:
Model: Xiaomi POCO X3 NFC
OS: Android 12
KDE Connect 1.27.1

Sharing file from smartphone and then cancelling file transfer on the smartphone causes kdeconnectd to crash on the computer side.

The crash can be reproduced every time.

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

[KCrash Handler]
#4  0x00007f52fabf60e8 in  () at /usr/lib/libQt5Core.so.5
#5  0x00007f52fabf6792 in QIODevice::read(char*, long long) () at /usr/lib/libQt5Core.so.5
#6  0x00007f52fabf9c12 in  () at /usr/lib/libQt5Core.so.5
#7  0x00007f52fa8e60fc in  () at /usr/lib/libQt5Network.so.5
#8  0x00007f52facd17f3 in  () at /usr/lib/libQt5Core.so.5
#9  0x00007f52facc4174 in QObject::event(QEvent*) () at /usr/lib/libQt5Core.so.5
#10 0x00007f52fb97893f in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#11 0x00007f52fac9c6f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#12 0x00007f52faca165b in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /usr/lib/libQt5Core.so.5
#13 0x00007f52face76d8 in  () at /usr/lib/libQt5Core.so.5
#14 0x00007f52f930df19 in  () at /usr/lib/libglib-2.0.so.0
#15 0x00007f52f936c2b7 in  () at /usr/lib/libglib-2.0.so.0
#16 0x00007f52f930c112 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#17 0x00007f52faceb51c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#18 0x00007f52fac9b404 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5
#19 0x00007f52fac9c8a3 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5
#20 0x000055b3cbb58517 in  ()
#21 0x00007f52fa227cd0 in  () at /usr/lib/libc.so.6
#22 0x00007f52fa227d8a in __libc_start_main () at /usr/lib/libc.so.6
#23 0x000055b3cbb58745 in  ()
[Inferior 1 (process 231189) detached]

The reporter indicates this bug may be a duplicate of or related to bug 468729, bug 470273.

Reported using DrKonqi
Comment 1 xanijo3460 2024-01-20 09:12:21 UTC
Created attachment 165065 [details]
New crash information added by DrKonqi

kdeconnectd (23.08.4) using Qt 5.15.11

kdeconnected crashes when I cancel a file transfer using the notification on plasma.

-- Backtrace (Reduced):
#4  0x00007fd226600833 in checkWarnMessage(QIODevice const*, char const*, char const*) () at /lib64/libQt5Core.so.5
#5  0x00007fd226601a42 in QIODevice::read(char*, long long) () at /lib64/libQt5Core.so.5
#6  0x00007fd2266071d9 in QNonContiguousByteDeviceIoDeviceImpl::readPointer(long long, long long&) () at /lib64/libQt5Core.so.5
#7  0x00007fd225ccc730 in QNetworkAccessFileBackend::uploadReadyReadSlot() () at /lib64/libQt5Network.so.5
#8  0x00007fd2266e89f8 in void doActivate<false>(QObject*, int, void**) () at /lib64/libQt5Core.so.5
Comment 2 TraceyC 2024-02-07 02:44:52 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-08-01 15:10:30 UTC
*** Bug 487741 has been marked as a duplicate of this bug. ***
Comment 4 cwo 2024-08-01 15:12:15 UTC
*** Bug 481411 has been marked as a duplicate of this bug. ***
Comment 5 Thomas Bertels 2024-09-28 19:40:30 UTC
I cannot reproduce with:
KDE Connect 1.32.2 on Android 12
kdeconnect 24.05.2