desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Tranfer gets interruped for some files no matter retries

Open EmmanuelMess opened this issue 6 years ago • 5 comments

PC: Ubuntu 18.04 with Unity 7 linux 4.15 Phone: LG K11α

Transferring a few images, some always fail: imagen And they seem to be always the same photos:

I received these (partial) files (compressed to be able to upload to GitHub).

EmmanuelMess avatar Jun 01 '19 17:06 EmmanuelMess

Hi @EmmanuelMess, I haven't been able to solve this problem yet. It is happening on my machine as well.

velitasali avatar Jun 02 '19 11:06 velitasali

Count me in too, i don't know why but if i double-click to restart sending the interrupted file when another file before is running the sending file, sometimes it completes, who knows why, but almost all the times if fails...

dCo3lh0 avatar Jul 04 '19 03:07 dCo3lh0

@velitasali Any ideas on what is the problem?

EmmanuelMess avatar Jul 04 '19 12:07 EmmanuelMess

@EmmanuelMess There is an ongoing issue with IO during transfer.

On this line, bytesToReceive() always returns a positive number though there is not, creating an issue on the other side of the connection. To prevent that I added checks after that if statement, still, we have issues. https://github.com/genonbeta/TrebleShot-Desktop/blob/24a646a0d392fb2834e0de33a4058ec06882056c/src/broadcast/SeamlessServer.cpp#L159

I am still not sure how to fix that.

velitasali avatar Jul 04 '19 14:07 velitasali

@velitasali Ok, I don't have much experience with Qt. And I haven't run the code. But, if I may give some advice. Are you compressing, or better, tarring, before sending? So that we can rule out metadata problems.

EmmanuelMess avatar Jul 04 '19 15:07 EmmanuelMess