Page 1 of 1

Possible bug with "Don't download" function and other

Posted: Thu Feb 14, 2008 1:13 pm
by mariush
Deluge 0.5.8.3 / windows 2003

Start torrent with lots of folders
After a minute or so go to files list and select random files and click Don't download
Wait until torrent is finished.
Go to whatever file manager you use and remove the folders that Deluge created and are now set with "Don't download" (offtopic, shouldn't Deluge delete the files that are set to Don't download and are not specified in chunks from other files?)

If Deluge is minimized in system tray then after a while, when I click on the system tray icon Deluge pops up and a message box says: Read error, something critical while writing , torrent paused and only Ok button is shown. It's confusing.
Ok, clicking on the Ok, torrent seems to pause, it resumes automatically and in about two seconds the message pops again and repeats until I pause the torrent for good.
It could be that those message boxes accumulate while Deluge is in system tray but i'm not sure...

I had to upgrade to this version because the old version i had, even though I said not to check for new versions, kept telling me there's a new version and asked me if I want to download. That message window ALWAYS appeared behind the main window so noticing I can't use the main window (modal message box?) i moved it around to see the message box behind it.
Once after i said No, Deluge just stopped responding and killing it using task manager didn't help... just crashed for good and I had to reinstall it.

When you right click on the system tray, the menu appears with two up and down arrows, but I guess you already know about this... I've seen it mentioned in other places. However, if I click on the taskbar while the menu is open or that window loses focus, it should close itself.

I've tried using the translation site that you people use but it's EXTREMELY slow.. it takes up to a minute to apply something or change pages or do anything with it...

Otherwise as design this version looks great and you're doing a great job. I don't know Python... If I knew I would have tried to help..

Re: Possible bug with "Don't download" function and other

Posted: Thu Feb 14, 2008 1:43 pm
by johnnyg
mariush wrote:Deluge 0.5.8.3 / windows 2003

Start torrent with lots of folders
After a minute or so go to files list and select random files and click Don't download
Wait until torrent is finished.
Go to whatever file manager you use and remove the folders that Deluge created and are now set with "Don't download" (offtopic, shouldn't Deluge delete the files that are set to Don't download and are not specified in chunks from other files?)

If Deluge is minimized in system tray then after a while, when I click on the system tray icon Deluge pops up and a message box says: Read error, something critical while writing , torrent paused and only Ok button is shown. It's confusing.
Ok, clicking on the Ok, torrent seems to pause, it resumes automatically and in about two seconds the message pops again and repeats until I pause the torrent for good.
It could be that those message boxes accumulate while Deluge is in system tray but i'm not sure...
http://deluge-torrent.org/faq.php#6n41

basically you're deleting pieces that files you're downloading need..hence you get a read error.
mariush wrote:I had to upgrade to this version because the old version i had, even though I said not to check for new versions, kept telling me there's a new version and asked me if I want to download. That message window ALWAYS appeared behind the main window so noticing I can't use the main window (modal message box?) i moved it around to see the message box behind it.
Once after i said No, Deluge just stopped responding and killing it using task manager didn't help... just crashed for good and I had to reinstall it.

When you right click on the system tray, the menu appears with two up and down arrows, but I guess you already know about this... I've seen it mentioned in other places. However, if I click on the taskbar while the menu is open or that window loses focus, it should close itself.
yeah unfortunately this is a GTK bug.
mariush wrote:I've tried using the translation site that you people use but it's EXTREMELY slow.. it takes up to a minute to apply something or change pages or do anything with it...

Otherwise as design this version looks great and you're doing a great job. I don't know Python... If I knew I would have tried to help..
the translation site can get really slow at times, I haven't tried it since they've moved servers though.

Re: Possible bug with \\\"Don\\\'t download\\\" function and oth

Posted: Thu Feb 14, 2008 6:43 pm
by mariush
The download was completed and the torrent was in the client on Seeding.

What I may have done is delete chunks from files that were configured not to download but had to be downloaded because they were bundled under one sha1 hash chunk of the torrent with files I wanted to download.

The way I would have done it is the way uTorrent does it as far as I know:
* don\'t create the files that are set as \"Don\'t download\" or remove them as soon as user selects \"Don\'t download\"
* have at the root of the folder where the torrent is downloaded files named like chunk<n>.$$$ or chunk<n>.tmp where n is the number of the fragment where a file that was downloaded and one that was not downloaded is joined.

For example, let\'s say I have a 1096 KB file and a 4096KB file and the torrent file is created using a piece size of 1024 KB.
The torrent would have six pieces.
The first piece only the first file
The second piece would have hash for the last 72KB and the first 952KB of the second file.
The last pieces are not important.

If I set the second file on \"Do not download\", I shouldn\'t have to keep the 4 MB file on the drive because it\'s needed to complete the first file or because a part of it is bundled in a piece with the first file, it makes more sense to have a 1024KB temporary file called chunk0002.tmp on the computer, which would hold the second piece.

I\'m not sure if i\'ll be understood, maybe i\'m stupid and I assume Deluge works in a way it\'s not working now. In this case, please clarify it for me if you can spare some time.


ps. sorry about the slashes, it\'s the online proxy i have to use because opendns says your nameservers are not working.