Bug 344057 - Bigger files don't transfer fully when sharing from android device to computer
Summary: Bigger files don't transfer fully when sharing from android device to computer
Status: RESOLVED DUPLICATE of bug 334080
Alias: None
Product: kdeconnect
Classification: Applications
Component: common (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-11 23:28 UTC by tamius.han
Modified: 2015-02-14 02:25 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 tamius.han 2015-02-11 23:28:23 UTC
When sharing bigger files from phone to computer, only a part of file will be transferred. For example, when sharing a ~75 MiB file, only ~70 MiB chunk of the file will end up on computer. The issue becomes even worse when file sizes grow (I've tried sharing a 665 MiB video I recorded with the phone, the file I received on computer was less than half this size (300 MiB, video playback confirmed that I've indeed only got the first half of the video).

The issue doesn't seem to occur on files smaller than 50 MiB (30 MiB file transfered just fine).

This isn't an issue with my disk being full (/home/ has 3.8 GiB to go, / has 3.1 GiB of free space).

======= Slightly more detailed testing =======

I've performed some additional testing with the 665 MiB fiile: I've tried sharing from phone to computer on an isolated network (no internet and no other devices, just my laptop and phone). 

The notification about transfer says 665 MiB out of 665 MiB was transferred and gives a current speed of transfer throughout the transfer. This is likely correct.

* Router and network widget show that transfer speed is roughly correct (doesn't vary enough to cause the size differences I'm seeing).
* I did ifconfig on wireless interface before and after the file transfer (note: network wasn't connected to the internet or any other device, the only thing going on that network was this file transfer). The difference between RX_bytes before and RX_bytes after the transfer was about 730 MiB, which means that the whole file did probably indeed get sent (with 65 MiB of overhead, no less!).  

Dolphin says that the received file is only 280 MiB, which is the correct amount of data that got written to disk.

This makes it seem that the issue occurs somewhere between KDEConnect receiving file and writing it to disk.

Reproducible: Always

Steps to Reproduce:
1. Take your android device, find a big file (preferrably at least 100 MiB or bigger). The bigger, the better.
2. Share the said big file to your computer from any app using KDE Connect

Actual Results:  
File received on computer is smaller than the file being sent

Expected Results:  
The received file should be as big as the file that is being sent

I'm using Manjaro, but the issue was present when I tried it on Kubuntu (14.10) as well.

According to Octopi, KDE Connect version is 0.7.3-1 (which I didn't see in the dropdown above)

Phone: Samsung Galaxy S3 Mini with Vanir/Android 4.4.4
Comment 1 Albert Vaca Cintora 2015-02-14 02:21:22 UTC
This is a known issue, as of now we have no verification in place for file transfers now, so we rely directly on the underlying TCP sockets.
Comment 2 Albert Vaca Cintora 2015-02-14 02:25:10 UTC

*** This bug has been marked as a duplicate of bug 334080 ***