crash : invalid_encoding

Suggestions and discussion of future versions
Post Reply
User avatar
Tares
Member
Member
Posts: 38
Joined: Wed Jun 13, 2007 3:37 pm
Location: Europe, Poland

crash : invalid_encoding

Post 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.
Ubuntu 9.10 Karmic Koala amd64
User avatar
silverdulcet
Member
Member
Posts: 41
Joined: Sat Jul 21, 2007 6:48 am
Contact:

Re: crash : invalid_encoding

Post 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.
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: crash : invalid_encoding

Post 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
User avatar
silverdulcet
Member
Member
Posts: 41
Joined: Sat Jul 21, 2007 6:48 am
Contact:

Re: crash : invalid_encoding

Post 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.
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: crash : invalid_encoding

Post 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?
User avatar
silverdulcet
Member
Member
Posts: 41
Joined: Sat Jul 21, 2007 6:48 am
Contact:

Re: crash : invalid_encoding

Post 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.
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: crash : invalid_encoding

Post 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
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: crash : invalid_encoding

Post 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
Post Reply