Blocklist Importer Crash Caused by FlexRSS

Suggest, post, or discuss plugins for Deluge
Post Reply
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Blocklist Importer Crash Caused by FlexRSS

Post by johnnyg »

I've had this happen to me a few times now, both in linux & in windows.

At first I thought it must have been my preferences seeing it had never happened before, however after having done a clean install (including deleting my preferences folder) I can say that it's definitely a bug.

How to reproduce it:
1. Enable the blocklist importer (I used the safepeer list)
2. Enable FlexRSS
3. Add a feed to FlexRSS
4. Create a filter of an entry from the feed
5. Close Deluge
6. Run Deluge
7. Deluge now opens up, and starts importing the blocklist (so far so good)
8. In the background, deluge checks the feed and starts downloading a file from FlexRSS
9. Blocklist import finishes
10. Deluge crashes (this last step is the one you don't want to happen :P)

The following is spat out in the terminal:

Code: Select all

Traceback (most recent call last):
  File "/usr/bin/deluge", line 146, in <module>
    start_deluge()
  File "/usr/bin/deluge", line 128, in start_deluge
    interface.start(get_cmd_line_torrents())
  File "/var/lib/python-support/python2.5/deluge/interface.py", line 1056, in start
    self.load_plugins()
  File "/var/lib/python-support/python2.5/deluge/interface.py", line 1077, in load_plugins
    self.plugins.enable_plugin("Blocklist Importer")
  File "/var/lib/python-support/python2.5/deluge/plugins.py", line 80, in enable_plugin
    self.enabled_plugins[name] = plugin.enable(self.core, self.interface)
  File "/usr/share/deluge/plugins/BlocklistImport/__init__.py", line 29, in enable
    return BlocklistImport(path, core, interface)
  File "/usr/share/deluge/plugins/BlocklistImport/__init__.py", line 67, in __init__
    self.loadlist(fetch=self.config.get('load_on_start'))
  File "/usr/share/deluge/plugins/BlocklistImport/__init__.py", line 141, in loadlist
    if not self.paused_or_not[unique_ID]:
KeyError: 0
Hope that's enough info. I'd be more than glad to provide more and/or also help you debug.
markybob
Compulsive Poster
Compulsive Poster
Posts: 1230
Joined: Thu May 24, 2007 11:27 pm
Location: Chicago, IL, USA
Contact:

Re: Blocklist Importer Crash Caused by FlexRSS

Post by markybob »

johnnyg wrote:I've had this happen to me a few times now, both in linux & in windows.

At first I thought it must have been my preferences seeing it had never happened before, however after having done a clean install (including deleting my preferences folder) I can say that it's definitely a bug.

How to reproduce it:
1. Enable the blocklist importer (I used the safepeer list)
2. Enable FlexRSS
3. Add a feed to FlexRSS
4. Create a filter of an entry from the feed
5. Close Deluge
6. Run Deluge
7. Deluge now opens up, and starts importing the blocklist (so far so good)
8. In the background, deluge checks the feed and starts downloading a file from FlexRSS
9. Blocklist import finishes
10. Deluge crashes (this last step is the one you don't want to happen :P)

The following is spat out in the terminal:

Code: Select all

Traceback (most recent call last):
  File "/usr/bin/deluge", line 146, in <module>
    start_deluge()
  File "/usr/bin/deluge", line 128, in start_deluge
    interface.start(get_cmd_line_torrents())
  File "/var/lib/python-support/python2.5/deluge/interface.py", line 1056, in start
    self.load_plugins()
  File "/var/lib/python-support/python2.5/deluge/interface.py", line 1077, in load_plugins
    self.plugins.enable_plugin("Blocklist Importer")
  File "/var/lib/python-support/python2.5/deluge/plugins.py", line 80, in enable_plugin
    self.enabled_plugins[name] = plugin.enable(self.core, self.interface)
  File "/usr/share/deluge/plugins/BlocklistImport/__init__.py", line 29, in enable
    return BlocklistImport(path, core, interface)
  File "/usr/share/deluge/plugins/BlocklistImport/__init__.py", line 67, in __init__
    self.loadlist(fetch=self.config.get('load_on_start'))
  File "/usr/share/deluge/plugins/BlocklistImport/__init__.py", line 141, in loadlist
    if not self.paused_or_not[unique_ID]:
KeyError: 0
Hope that's enough info. I'd be more than glad to provide more and/or also help you debug.
thanks, i just fixed this in svn rev 2447 :)
Post Reply