Bug 421754 - Kdeconnect Fails to Transfer More than One File at a Time
Summary: Kdeconnect Fails to Transfer More than One File at a Time
Status: RESOLVED NOT A BUG
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-19 05:27 UTC by Dashon
Modified: 2020-07-28 20:40 UTC (History)
1 user (show)

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


Attachments
What dolphin looks like after an incomplete transfer and the system freezing. (1.16 MB, image/png)
2020-05-19 05:27 UTC, Dashon
Details
Indefinite Transfer (63.55 KB, image/png)
2020-05-19 05:48 UTC, Dashon
Details
Failed Partial Transfer that occurs after first transfer attempt (410.28 KB, image/png)
2020-05-19 05:49 UTC, Dashon
Details
May be Interesting output from one plus 7 pro (2.34 MB, image/png)
2020-05-19 06:27 UTC, Dashon
Details
Kdeconnect systemd messages via yast (522.33 KB, image/png)
2020-05-19 07:09 UTC, Dashon
Details
Kdeconnect systemd messages via yast 2 (510.51 KB, image/png)
2020-05-19 07:10 UTC, Dashon
Details
Kdeinit5 Crash Backtrace with Debugging Symbols (2.26 KB, text/plain)
2020-05-19 08:06 UTC, Dashon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dashon 2020-05-19 05:27:16 UTC
Created attachment 128593 [details]
What dolphin looks like after an incomplete transfer and the system freezing.

SUMMARY
Hey looking for help with debugging this. Problem is kinda wonky. When I say more than one. I mean I've had this occur with as little as 2 files. Let me try to walk you all through how I've been testing this though. I will take about 30 to 35 pictures on my phone at random and try to share them through kdeconnect. Sometimes this outright fails. Immediately trying again or this may occur the first time, usually kdeconnect transfers most of the files in question. I've tried multiple times with the exact 31 files as well. Sometimes 15 files make it through before the transfer notification stops and just sits there on the desktop saying recieving indefinitely. Other times 22 files may make it through. The point is it varies from transfer to transfer. This makes it hard to guess at it being a specific file as well. If I go to the Downloads folder, I see that wherever it got stuck at is accurate by looking at the number of files in that directory. Cancelling the transfer via the stop button in the notification will then trigger extreme lag throughout plasma altogether. To the point of trying to open an application taking as long as 10-15 seconds. Then once the app say dolphin does open it isn't even fully loaded. It makes my ssd look like an hdd again. Looking for a way to debug this in order to provide better information on this.

STEPS TO REPRODUCE
1. Download android app on your phone from play store or wherever.
2. Pair with laptop/desktop using the latest kde plasma on openSuse TW
3. Update tumblweed by adding the kde stable repos for tumbleweed.
4. Try to share about 30 files or so from your phone to the desktop

OBSERVED RESULT
At some point during the transfer it freezes.

EXPECTED RESULT
All files to be transferred and receiving notification disappears upon completion.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20200516
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.1
Kernel Version: 5.6.12-1-default
OS Type: 64-bit
Processors: 4 × Intel® Core™ i7-7500U CPU @ 2.70GHz
Memory: 15.4 GiB of RAM

ADDITIONAL INFORMATION
Transferring exactly one file is usually pretty smooth. However, it does not trigger a notification like when I transfer multiple files. The file is successfully found in my Downloads folder though.
Comment 1 Dashon 2020-05-19 05:48:05 UTC
Created attachment 128594 [details]
Indefinite Transfer
Comment 2 Dashon 2020-05-19 05:49:48 UTC
Created attachment 128595 [details]
Failed Partial Transfer that occurs after first transfer attempt
Comment 3 Dashon 2020-05-19 06:09:00 UTC
After playing with it for a while. I believe these crashes may specifically affect dolphin.
Comment 4 Dashon 2020-05-19 06:27:01 UTC
Created attachment 128597 [details]
May be Interesting output from one plus 7 pro
Comment 5 Dashon 2020-05-19 06:35:59 UTC
Going to continue to document stuff here as I try more stuff. I tried starting plasmashell from the terminal to hopefully gain some insight from what causing the problem when I try to share files. I tried 34 different pictures this time. It says 33 out of 34 failed and I once again have the infinite receiving notification. The terminal gave me only two line when this happened that may be useful.

Output:
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/CompactRepresentation.qml:136: ReferenceError: jobProgressItem is not defined
file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/CompactRepresentation.qml:135:13: QML PropertyChanges: Cannot assign to non-existent property "visible"
Comment 6 Dashon 2020-05-19 06:50:04 UTC
More output I got from the terminal after another lagfest.

kdeconnect.interfaces: error while refreshing device list "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
kdeconnect.interfaces: error while refreshing device list "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
kdeconnect.interfaces: error while refreshing device list "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken."
kdeconnect.interfaces: QDBusError("org.freedesktop.DBus.Error.NoReply", "Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.")

Comments: My internet seems to be working fine, but kdeconnect seems to be having trouble. Nothing has changed with the network to my knowledge.
Comment 7 Dashon 2020-05-19 06:55:05 UTC
Further observations: If the desktop starts to lag, even though the lag will eventually stop. I have found that in some cases both devices are unable to discover each other on the same network. By turning the wifi on my laptop off and on. I saw that the icon for kdeconnect doesn't diappear when the device becomes unreachable when in this state. A reboot is required to fix.

Hardware info I forgot to mention:
Laptop: Asus Q325ua, intel integrated graphics.
Phone: One Plus 7 Pro (rooted)
Comment 8 Dashon 2020-05-19 07:09:52 UTC
Created attachment 128598 [details]
Kdeconnect systemd messages via yast
Comment 9 Dashon 2020-05-19 07:10:34 UTC
Created attachment 128599 [details]
Kdeconnect systemd messages via yast 2
Comment 10 Dashon 2020-05-19 07:54:50 UTC
killing and launching kdeconnectd is an alternative to simply rebooting.
Comment 11 Dashon 2020-05-19 08:05:12 UTC
Killing and relaunching kdeconnectd then retrying to share files cause a crash in kdeinit5 will upload backtrace with debug symbols next.
Comment 12 Dashon 2020-05-19 08:06:41 UTC
Created attachment 128602 [details]
Kdeinit5 Crash Backtrace with Debugging Symbols
Comment 13 Dashon 2020-05-19 08:14:14 UTC
Taking a screenshot with spectacle of rectangular region. Then hitting the hamburger menu causes the slowdown after failing to send files via kdeconnect. Killing and restarting kdeconnectd after this then trying to send about 30 files or so yields a greater chance of success. Although my success rate is 1 in 3 at the time of writing.
Comment 14 Dashon 2020-05-19 08:23:27 UTC
Alright gonna try to clean up this flurry of update posts before bed.

What happens is that I am having problems sending multiple files via kdeconnect from my phone to my laptop. This much is consistent. Most times it tries to send the files and then immediately fails while only leaving a partially transferred file in the downloads directory. Playing around with it by killing and restarting both plasmashell and kdeconnectd. I can get it to transfer about half of the files. It transferred all the files exactly once after trying seven times. At least once during testing of this bug following the procedures laid out in this comment, kdeinit5 crashed. A backtrace with debugging symbols has been provided as one of the attachments. Transferring a single file does not send a notification and has a higher chance at succeeding than sending multiple files.
Comment 15 Dashon 2020-05-19 08:25:37 UTC
Android app version is 1.14.2 from playstore.
Comment 16 Dashon 2020-05-19 08:29:45 UTC
Lastly as part of comment number 14. If I try to take a screenshot with spectacle after failing to transfer files via kdeconnect. Plamashell will start lagging severely. This may be a separate issue, but I discovered it as a result of the initial issue.
Comment 17 Dashon 2020-07-28 20:40:44 UTC
Doesn't seem to be the bug I thought it was. What happens is if I reboot my phone things work correctly. After a while the problems listed above start to occur. May be a combination of android 10 problems as well as android and one plus overly aggressively limiting/killing background tasks.