Page 1 of 1

crash : invalid_encoding

Posted: Sat Sep 01, 2007 7:10 am
by Tares
hello,

today when I've added new torrent my deluge crashed (svn1601) and here is what i traced back :

Code: Select all

terminate called after throwing an instance of 'libtorrent::invalid_encoding'
  what():  invalid bencoding
Aborted (core dumped)
EDIT :
well, it seems that it happens only to a specific torrent. I can give you link to it.

Re: crash : invalid_encoding

Posted: Thu Sep 06, 2007 2:18 am
by silverdulcet

Code: Select all

Warning: torrent content-type not application/x-bittorrent

terminate called after throwing an instance of 'libtorrent::invalid_encoding'

  what():  invalid bencoding

Aborted (core dumped)

Had the same problem. Here are the links to the .torrent file that caused this problem. I have run into several other torrent files that do the same thing. Not sure what they have in common.

http://www.mininova.org/get/872376
http://www.bt-chat.com/download.php?inf ... 269a2e9733

Both are the same torrent, just from different trackers. I have in the past just downloaded the torrent file from a different tracker and it works fine. This one however, both cause the error above.

Re: crash : invalid_encoding

Posted: Thu Sep 06, 2007 5:39 am
by markybob
silverdulcet wrote:

Code: Select all

Warning: torrent content-type not application/x-bittorrent

terminate called after throwing an instance of 'libtorrent::invalid_encoding'

  what():  invalid bencoding

Aborted (core dumped)

Had the same problem. Here are the links to the .torrent file that caused this problem. I have run into several other torrent files that do the same thing. Not sure what they have in common.

http://www.mininova.org/get/872376
http://www.bt-chat.com/download.php?inf ... 269a2e9733

Both are the same torrent, just from different trackers. I have in the past just downloaded the torrent file from a different tracker and it works fine. This one however, both cause the error above.
these worked fine here. you should try 0.5.5RC1 (version number 0.5.4.1.95) from http://download.deluge-torrent.org/ or get svn trunk and see if it works for you

Re: crash : invalid_encoding

Posted: Fri Sep 07, 2007 2:32 am
by silverdulcet
See my post here:
http://forum.deluge-torrent.org/viewtop ... =&start=50

I think it might have something to do with the FlexRSS plugin. Basically it will run across a torrent and after it retrieves it from the RSS feed it will then crash. Then it will continue to crash everytime it loads the plugin and again attempts to download that torrent file. Then after deleting FlexRSS's settings so that I can start deluge, I download the torrent file manually through a browser and then attempt to load it into deluge. This also crashes it with the same error. I can't seem to put my finger on why it happens to some files and not others. Then later it will work. As I wrote in my post linked above, perhaps it has something to do with the way FlexRSS grabs the torrent file. I'm not sure. In svn 1637 some of the torrent files I was having trouble with would give the error:

Code: Select all

URL doesn't appear to be a valid torrent file: http://www.bt-chat.com/download.php?info_hash=8f962a45b2556ebe8103c82a12df5e7b602faa67

URL doesn't appear to be a valid torrent file: http://www.mininova.org/tor/872286

This when trying to add it via URL. I haven't run into trouble since compiling version 1637, but will update this post if I see it happen again. Would you like me to attach a torrent file that crashes deluge next time it happens? Perhaps that would give a clue to what is causing it.

**Update**
Here is an example. http://www.mininova.org/get/872376 link when added via URL in deluge returns the invalid URL error above. When load the link in a browser it returns:

Code: Select all

Cannot connect to MySQL server... Please wait a few seconds and reload this page (F5).
When I use the FlexRSS option to "Download torrent" from an RSS feed it will crash deluge with the encoding error. So it must have something to do with how FlexRSS retrieves the torrent file. It still doesn't explain how when I download the torrent file through a web browser, then open it with deluge, it then crashes.

Re: crash : invalid_encoding

Posted: Fri Sep 07, 2007 3:04 am
by markybob
silverdulcet wrote:Here is an example. http://www.mininova.org/get/872376 link when added via URL in deluge returns the invalid URL error above. When load the link in a browser it returns:

Code: Select all

Cannot connect to MySQL server... Please wait a few seconds and reload this page (F5).
is this a joke? how is it deluge's fault that mininova is having mysql server problems? what exactly do you expect deluge to do about it? if your browser cant open it, how are we supposed to?

Re: crash : invalid_encoding

Posted: Fri Sep 07, 2007 3:10 am
by silverdulcet
Deluge doesn't seem to have a problem. It seems to be more of a FlexRSS problem. If you load the rss feed and choose download torrent from that feed it will cause that crash. I'm just pointing out that FlexRSS should probably behave in the same way Deluge does. I suppose this should be posted in the FlexRSS thread instead.

Re: crash : invalid_encoding

Posted: Fri Sep 07, 2007 3:13 am
by markybob
silverdulcet wrote:Deluge doesn't seem to have a problem. It seems to be more of a FlexRSS problem. If you load the rss feed and choose download torrent from that feed it will cause that crash. I'm just pointing out that FlexRSS should probably behave in the same way Deluge does. I suppose this should be posted in the FlexRSS thread instead.
ah, i see. i somehow missed the part about it crashing deluge. i'll fix this so that error wont crash things. thanks

Re: crash : invalid_encoding

Posted: Fri Sep 07, 2007 3:19 am
by markybob
markybob wrote:ah, i see. i somehow missed the part about it crashing deluge. i'll fix this so that error wont crash things. thanks
i just looked at the deluge code and it looked fine (as in, wouldnt crash), so then i went to file->add url and added a fake torrent that i knew would give an invalid_encoding error. sure enough, it erred, but it didnt crash. it looks like the actual problem is in the flexrss code. sorry, but i cant really do anything about that. hopefully its author will be made aware that it crashes on invalid torrents
http://forum.deluge-torrent.org/viewtop ... 1832#p1832