majestrate / XD

meme bittorrent client
https://xd-torrent.github.io/
MIT License
242 stars 25 forks source link

Last piece downloads forever in the testnet #42

Closed l-n-s closed 6 years ago

l-n-s commented 6 years ago

info

git revision / version: master

OS: linux

Architecture: x86

problem

with 32MB file testnet downloads to 0.99 progress, then stalls forever...

the last piece doesn't seem to download

peers:
        -XD0100-%894%2B%3A%5B%0D%3E%DD%A2%97o%E1                         tx=0.00B/sec    rx=43.22KB/sec
downloading tx=0.00B/sec    rx=43.22KB/sec  (0.00 ratio)
files:
        [0] testfile.iso (0.99 done)

backtrace / error messages

Error messages: [yes/no]

Backtrace: [yes/no]

logs.zip

majestrate commented 6 years ago

what is the file size exactly in bytes and what is the piece size of the torrent?

l-n-s commented 6 years ago

Size was probaly 33554431, but I've already dropped that testnet, so not sure. Looking in logs:


[DBG] 2018-01-23 18:19:09.073052997 +0000 UTC m=+1970.312105504 next piece request made: idx=127 offset=196608 len=16384 total=245760
[DBG] 2018-01-23 18:19:09.073111253 +0000 UTC m=+1970.312163761 ask -XD0100-%894%2B%3A%5B%0D%3E%DD%A2%97o%E1 for 127 196608 16384
[DBG] 2018-01-23 18:19:09.073123832 +0000 UTC m=+1970.312176340 next piece request made: idx=127 offset=212992 len=16384 total=245760
[DBG] 2018-01-23 18:19:09.07313192 +0000 UTC m=+1970.312184434  ask -XD0100-%894%2B%3A%5B%0D%3E%DD%A2%97o%E1 for 127 212992 16384
[DBG] 2018-01-23 18:19:09.073145405 +0000 UTC m=+1970.312197968 next piece request made: idx=127 offset=229376 len=16384 total=245760                                
[DBG] 2018-01-23 18:19:09.073159384 +0000 UTC m=+1970.312211939 ask -XD0100-%894%2B%3A%5B%0D%3E%DD%A2%97o%E1 for 127 229376 16384
[DBG] 2018-01-23 18:19:09.073171831 +0000 UTC m=+1970.312224319 no next piece request for idx=127                                   
[DBG] 2018-01-23 18:19:09.073182693 +0000 UTC m=+1970.312235203 get next piece excluding [127]                                  
[DBG] 2018-01-23 18:19:09.073273055 +0000 UTC m=+1970.312325620 no next piece to download for -XD0100-%894%2B%3A%5B%0D%3E%DD%A2%97o%E1
majestrate commented 6 years ago

try now

majestrate commented 6 years ago

updates?

l-n-s commented 6 years ago

can't confirm now, but probably fixed