Custom Query (2448 matches)


Show under each result:

Results (16 - 18 of 2448)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Ticket Resolution Summary Owner Reporter
#3518 Fixed Unhandled ValueError in causes startup crash fedevx

deluge-console 2.0.5 libtorrent: Python: 3.10.4 OS: Linux Arch Linux ARM Shell: Zsh

As mentioned in the Summary, deluge-console crashes with the following traceback:

Traceback (most recent call last):                                                                                                                                                                                 
  File "/usr/bin/deluge-console", line 33, in <module>                                                                                                                                                             
    sys.exit(load_entry_point('deluge==2.0.5', 'console_scripts', 'deluge-console')())
  File "/usr/lib/python3.10/site-packages/deluge/ui/console/", line 19, in start
  File "/usr/lib/python3.10/site-packages/deluge/ui/console/", line 164, in start
    return deluge.common.run_profiled(                                                                   
  File "/usr/lib/python3.10/site-packages/deluge/", line 1351, in run_profiled
    return func(*args)                              
  File "/usr/lib/python3.10/site-packages/deluge/ui/console/", line 159, in run
    return c.start_ui()                             
  File "/usr/lib/python3.10/site-packages/deluge/ui/console/", line 164, in start_ui
  File "/usr/lib/python3.10/curses/", line 94, in                                             
    return func(stdscr, *args, **kwds)                                                                   
  File "/usr/lib/python3.10/site-packages/deluge/ui/console/", line 252, in run
  File "/usr/lib/python3.10/site-packages/deluge/ui/console/utils/", line 110, in init_colors
    counter = define_pair(counter, 'white', 'grey', curses.COLOR_WHITE, 241)
  File "/usr/lib/python3.10/site-packages/deluge/ui/console/utils/", line 91, in define_pair
    curses.init_pair(counter, fg, bg)                                                                    
ValueError: Color number is greater than COLORS-1 (7).

A quick change in line 94 of from:

except curses.error as ex:


except (curses.error, ValueError) as ex:

Allows the program to continue and works as expected but you are welcome to dig into the root cause of the actual issue.

#3515 Fixed [AutoAdd] - Disables watch on a folder when a torrent file fails decoding. deaddrop9


Create an invalid torrent file (something this is not bencoded) eg

echo "Invalid torrent file format" > /path/to/watch-folder/bad.torrent

Expected outcome

Torrent file should be detected by AutoAdd?, and after failing attempts to add a few times, it should be renamed to bad.torrent.invalid (using existing file failure functionality) and AutoAdd? should continue to monitor the folder.

Actual outcome

Watch folder is disabled in AutoAdd?, and torrent filename is unchanged. Re-enabling the folder in AutoAdd?, just leads to repeated disables.

deluged[112816]: 21:51:20 [ERROR   ][deluge_autoadd.core           :367 ] Disabling "/path/to/watch-folder", error during update: [Failure instance: Traceback: <class 'RuntimeError'>: unexpected end of file in bencoded string
deluged[112816]: /usr/lib/python3/dist-packages/deluge/plugins/AutoAdd-1.8.egg/deluge_autoadd/
deluged[112816]: /usr/lib/python3/dist-packages/deluge/plugins/AutoAdd-1.8.egg/deluge_autoadd/
deluged[112816]: /usr/local/lib/python3.8/dist-packages/twisted/internet/
deluged[112816]: /usr/local/lib/python3.8/dist-packages/twisted/internet/
deluged[112816]: --- <exception caught here> ---
deluged[112816]: /usr/local/lib/python3.8/dist-packages/twisted/internet/
deluged[112816]: /usr/lib/python3/dist-packages/deluge/plugins/AutoAdd-1.8.egg/deluge_autoadd/
deluged[112816]: /usr/lib/python3/dist-packages/deluge/plugins/AutoAdd-1.8.egg/deluge_autoadd/
deluged[112816]: ]

Root cause is failure to check data returned from bdecode function. (it return None when decoding fails) (pull request to fix coming shortly)

#3514 Fixed syslog spam: builtins.KeyError: 'disk.num_blocks_cache_hits' growly

While running deluge, the following error fills up syslog, emitting a few times a second:

Mar 17 09:03:37 growly /usr/libexec/gdm-x-session[5026]: 09:03:37 [CRITICAL][twisted                       :154 ] Unhandled Error
Mar 17 09:03:37 growly /usr/libexec/gdm-x-session[5026]: Traceback (most recent call last):
Mar 17 09:03:37 growly /usr/libexec/gdm-x-session[5026]:   File "/usr/lib/python3/dist-packages/deluge/core/", line 122, in run_daemon
Mar 17 09:03:37 growly /usr/libexec/gdm-x-session[5026]:     daemon.start()
Mar 17 09:03:37 growly /usr/libexec/gdm-x-session[5026]:   File "/usr/lib/python3/dist-packages/deluge/core/", line 164, in start
Mar 17 09:03:37 growly /usr/libexec/gdm-x-session[5026]:
Mar 17 09:03:37 growly /usr/libexec/gdm-x-session[5026]:   File "/usr/lib/python3/dist-packages/twisted/internet/", line 1283, in run
Mar 17 09:03:37 growly /usr/libexec/gdm-x-session[5026]:     self.mainLoop()
Mar 17 09:03:37 growly /usr/libexec/gdm-x-session[5026]:   File "/usr/lib/python3/dist-packages/twisted/internet/", line 1292, in mainLoop
Mar 17 09:03:37 growly /usr/libexec/gdm-x-session[5026]:     self.runUntilCurrent()
Mar 17 09:03:37 growly /usr/libexec/gdm-x-session[5026]: --- <exception caught here> ---
Mar 17 09:03:37 growly /usr/libexec/gdm-x-session[5026]:   File "/usr/lib/python3/dist-packages/twisted/internet/", line 913, in runUntilCurrent
Mar 17 09:03:37 growly /usr/libexec/gdm-x-session[5026]:     call.func(*call.args, **
Mar 17 09:03:37 growly /usr/libexec/gdm-x-session[5026]:   File "/usr/lib/python3/dist-packages/deluge/core/", line 345, in _on_alert_session_stats
Mar 17 09:03:37 growly /usr/libexec/gdm-x-session[5026]:     self._update_session_cache_hit_ratio()
Mar 17 09:03:37 growly /usr/libexec/gdm-x-session[5026]:   File "/usr/lib/python3/dist-packages/deluge/core/", line 361, in _update_session_cache_hit_ratio
Mar 17 09:03:37 growly /usr/libexec/gdm-x-session[5026]:     self.session_status['disk.num_blocks_cache_hits'] / blocks_read
Mar 17 09:03:37 growly /usr/libexec/gdm-x-session[5026]: builtins.KeyError: 'disk.num_blocks_cache_hits'

It occurs immediately after startup and doesn't stop, or rather I can't tell what event it starts on. deluge seems to be working and the errors persist even after the gui is closed. The log spam only stops when I kill deluged.

$ deluge --version
deluge 2.0.3
Python: 3.9.2
OS: Linux Debian GNU/Linux unstable sid

I installed the debian package, which is version "2.0.3-3.1".

Apologies if this is a dupe, I tried to find any similar issues but couldn't.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Note: See TracQuery for help on using queries.