Bug 451112 - sending multiple files from Android fails
Summary: sending multiple files from Android fails
Status: REPORTED
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (show other bugs)
Version: unspecified
Platform: Android Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-04 00:47 UTC by skierpage
Modified: 2022-03-04 00:56 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description skierpage 2022-03-04 00:47:03 UTC
SUMMARY
Using Android Share > Share to Apps > (KDE Connect) Send to Device > Share to... > my Fedora laptop running KDE works pretty well for a single file, but hangs transferring multiple files.

STEPS TO REPRODUCE
1. Open Google Photos.
2. Press and hold on multiple pictures to select them.
3. Tap the bent o-o-o "Share" icon.
4. Under Share to Apps, tap KDE Connect's "Send to Device"
5. Under KDE Connect's Share To..., tap username@laptopname

OBSERVED RESULT
On the laptop, a notification pops up
   Receiving files
   1 of 5 files to Downloads
with a progress bar. But it almost immediately stops progressing. There's still a black square "Cancel" icon next to the progress bar.
Show Details reveals
  Destination: /home/spage/Downloads/filenameblahblah.jpg
  2.1 MiB of 7.6 MiB
  1 of 5 files

My Downloads directory contains one file from the transfer, so this filename may be the 2nd file that I asked KDE Connect to transfer.

EXPECTED RESULT
I would like sending multiple files to work.
I would like both sender and receiver to report the stalled progress and apparent failure.

SOFTWARE/OS VERSIONS
Android: KDE Connect 1.19.1 from Google Play Store, on Pixel 3 running Android 12

Linux/KDE Plasma: 
KDE Plasma Version: 5.24.2
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2 on Wayland
kdeconnectd on Linux version 21.12.2

ADDITIONAL INFORMATION
journalctl contains the following log lines with the string "connect":
kdeconnectd[1680]: [15::56:43.226] unknown: TCP connection done (i'm the existing device)
kdeconnectd[1680]: [15::56:43.227] unknown: Starting server ssl (I'm the client TCP socket)
kdeconnectd[1680]: [15::56:43.319] unknown: Socket successfully established an SSL connection
kdeconnectd[1680]: [15::56:43.320] unknown: It is a known device "Pixel 3"
kdeconnectd[1680]: [15::58:17.682] unknown: TCP connection done (i'm the existing device)
kdeconnectd[1680]: [15::58:17.683] unknown: Starting server ssl (I'm the client TCP socket)
kdeconnectd[1680]: [15::58:17.734] unknown: Socket successfully established an SSL connection
kdeconnectd[1680]: [15::58:17.734] unknown: It is a known device "Pixel 3"
kdeconnectd[1680]: [15::58:18.113] unknown: TCP connection done (i'm the existing device)
kdeconnectd[1680]: [15::58:18.115] unknown: Starting server ssl (I'm the client TCP socket)
kdeconnectd[1680]: [15::58:18.144] unknown: Socket successfully established an SSL connection
kdeconnectd[1680]: [15::58:18.145] unknown: It is a known device "Pixel 3"
kdeconnectd[1680]: [15::58:19.918] unknown: File transfer
kdeconnectd[1680]: [15::58:19.928] unknown: FileTransferJob Downloading payload to QUrl("file:///home/spage/Downloads/PXL_20220303_032059275.jpg") size: 2191007
     ^^^^ this file is present and seems to be fine
unknown: JobView requested by "org.kde.kdeconnect.daemon"
plasmashell[1485]: [15::58:19.944] unknown: "/usr/lib64/qt5/plugins/kf5/kio/kdeconnect.so" supports protocols ("kdeconnect")
kdeconnectd[1680]: [15::58:19.988] unknown: QMetaObject::invokeMethod: No such method KIO::StoredTransferJob::slotDataReqFromDevice()
...
kdeconnectd[1680]: [15::58:21.312] unknown: File transfer
kdeconnectd[1680]: [15::58:21.314] unknown: FileTransferJob Downloading payload to QUrl("file:///home/spage/Downloads/PXL_20220228_232833628~2.jpg") size: 537394
    ^^^^ no sign of this file. This is the file in the Destination in the "Receiving files" notification details.
kdeconnectd[1680]: [15::58:22.816] unknown: Ignoring event role sink input.
kdeconnectd[1680]: [15::58:22.818] unknown: Ignoring event role sink input.
kdeconnectd[1680]: [15::58:22.820] unknown: Ignoring event role sink input.
kdeconnectd[1680]: [15::58:22.823] unknown: Ignoring event role sink input.
kdeconnectd[1680]: [15::58:22.878] unknown: Ignoring event role sink input.
...
kdeconnectd[1680]: [15::58:23.084] unknown: File transfer
kdeconnectd[1680]: [15::58:23.085] unknown: FileTransferJob Downloading payload to QUrl("file:///home/spage/Downloads/PXL_20220228_214239782.jpg") size: 2160366
kdeconnectd[1680]: [15::58:24.343] unknown: Finished transfer QUrl("file:///home/spage/Downloads/PXL_20220303_032059275.jpg")
kdeconnectd[1680]: [15::58:24.345] unknown: File transfer finished. QUrl("file:///home/spage/Downloads/PXL_20220303_032059275.jpg")
    ^^^^ yes, this file is the only one that transferred
kdeconnectd[1680]: [15::58:24.345] unknown: QUrl("file:///home/spage/Downloads/PXL_20220303_032059275.jpg.part") -> QUrl("file:///home/spage/Downloads/PXL_20220303_032059275.jpg")
kdeconnectd[1680]: [15::58:24.345] unknown: Item not found: QUrl("file:///home/spage/Downloads/PXL_20220303_032059275.jpg.part")
kdeconnectd[1680]: [15::58:24.348] unknown: QMetaObject::invokeMethod: No such method KIO::StoredTransferJob::slotDataReqFromDevice()
etc.
Comment 1 skierpage 2022-03-04 00:56:45 UTC
I have an Android notification from KDE Connect
   Sent 5 files to name@laptop
with no indication of error.

I tried sending another set of photo, and KDE Connect on Android popped up a notification indicating success, KDE Connect on Linux shows it's receiving the first one, yet there are no files.