This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[svn 543809] KTorrent truncates previous downloads

Tags: None
(comma "," separated)
imported4-Tomasu
Registered Member
Posts
302
Karma
0
I had a 2GB download, which I tested a couple days ago, and upon trying to play it today, all files are 0 sized.
agforsyth
Registered Member
Posts
133
Karma
0

Mon May 22, 2006 9:39 pm
It'd be easier to understand what you meant if you'd explain exactly what you did. Did you import the completed download or download it with KTorrent?
imported4-Tomasu
Registered Member
Posts
302
Karma
0

Mon May 22, 2006 9:43 pm
Downloaded via KTorrent. The torrent did finish, and I tested it a couple days ago, and I wanted to view it today, but I found that all the files in the folder are 0 sized.
George
Moderator
Posts
5421
Karma
1

Tue May 23, 2006 4:37 pm
Tomasu wrote:Downloaded via KTorrent. The torrent did finish, and I tested it a couple days ago, and I wanted to view it today, but I found that all the files in the folder are 0 sized.


This doesn't add up, we preallocate the diskspace, so even if it is garbage, it should be 2 GB of garbage.

Did you move the data ?
imported4-Tomasu
Registered Member
Posts
302
Karma
0

Tue May 23, 2006 9:13 pm
Didn't move it. Though I just tried it for fun, and its started seeding from nothing and created a new set of files.
George
Moderator
Posts
5421
Karma
1

Wed May 24, 2006 4:57 pm
Tomasu wrote:Didn't move it. Though I just tried it for fun, and its started seeding from nothing and created a new set of files.


That shouldn't happen, when those files exist they will not be recreated. Maybe you saved them on a different partition and this wasn't mounted ?
imported4-Tomasu
Registered Member
Posts
302
Karma
0

Wed May 24, 2006 8:01 pm
No, what happend was, I found the files were 0ed, renamed the folder, and restarted the torrent, expecting it to start downloading, except it didn't, instead it recreated the file, and started seeding.
cyrylas
Registered Member
Posts
59
Karma
0

Thu May 25, 2006 7:45 am
George wrote:That shouldn't happen

But it does. At least did a while ago: http://bugs.kde.org/show_bug.cgi?id=126230
George
Moderator
Posts
5421
Karma
1

Thu May 25, 2006 11:19 am
cyrylas wrote:
George wrote:That shouldn't happen

But it does. At least did a while ago: http://bugs.kde.org/show_bug.cgi?id=126230


A now I see, this will all be fixed with the auto import stuff, which I'm currently working on.
imported4-Tomasu
Registered Member
Posts
302
Karma
0

Sun May 28, 2006 10:03 am
Just an update, its 0ed my files AGAIN. near 4GB, which was taking about a week to totally download.

It seems that ktorrent only saves its state and torrent info once it exits, as I just had to sysrq-s,u,b my system, and it rememberd its old state from over a week ago when I originally had this issue. It still thought the torrent was done, with 0sized source files.

Its rather frustrating, having to waste bandwidth due to ktorrent wiping out GBs of data.

in case youre wondering, the file mod times of the 0ed files match up with the time ktorrent was restarted after the reboot. maybe this is due to kde's session saving? but it shouldn't save data like THAT in the session :o
George
Moderator
Posts
5421
Karma
1

Sun May 28, 2006 10:41 am
Tomasu wrote:Just an update, its 0ed my files AGAIN. near 4GB, which was taking about a week to totally download.

It seems that ktorrent only saves its state and torrent info once it exits, as I just had to sysrq-s,u,b my system, and it rememberd its old state from over a week ago when I originally had this issue. It still thought the torrent was done, with 0sized source files.

Its rather frustrating, having to waste bandwidth due to ktorrent wiping out GBs of data.

in case youre wondering, the file mod times of the 0ed files match up with the time ktorrent was restarted after the reboot. maybe this is due to kde's session saving? but it shouldn't save data like THAT in the session :o


The current SVN only creates files the first time you load a file. Also you can check the data now.

I still don't understand how this could have happened, we only recreated the files when they were not there. Anyway the new SVN version has this fixed. I still need to add a check at startup of a torrent to see if all files are present and have the correct size.


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]