Tried to install YaRSS2, crashed Deluge and won't start

General support for problems installing or using Deluge
Post Reply
sremick
New User
New User
Posts: 9
Joined: Tue Jun 21, 2016 5:24 am

Tried to install YaRSS2, crashed Deluge and won't start

Post by sremick »

Xubuntu 20.04
Deluge 2.0.3
Python 3.7.7 (now)

So Deluge had been fine. I wanted to experiment with RSS subscriptions, so did some research and learned I needed YaRSS2. Which needed Python 3, which apparently I didn't have for some reason. So I installed it. Now python3 --version reports 3.7.7.

Great. So then I download YaRSS2-2.1.4-py3.7.egg, go into the Deluge GUI and try to install it. Well right after selection it from the file menu to install it, Deluge locks up. Had to kill it. And now when I try and start it:

Code: Select all

raceback (most recent call last):
  File "/usr/bin/deluge", line 11, in <module>
    load_entry_point('deluge==2.0.3', 'gui_scripts', 'deluge')()
  File "/usr/lib/python3/dist-packages/deluge/ui/ui_entry.py", line 143, in start_ui
    ui.start()
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/__init__.py", line 43, in start
    from .gtkui import GtkUI
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/gtkui.py", line 19, in <module>
    import gi  # isort:skip (Required before Gtk import).
  File "/usr/lib/python3/dist-packages/gi/__init__.py", line 42, in <module>
    from . import _gi
ImportError: cannot import name '_gi' from 'gi' (/usr/lib/python3/dist-packages/gi/__init__.py)
Google searching didn't turn up anything helpful. Anyone here able to help me dig my way out of this one? I'm at a loss. At a minimum, making Deluge work again and I'll pretend I never say YaRSS2. Ideally, I'd like that to work too. :)
sremick
New User
New User
Posts: 9
Joined: Tue Jun 21, 2016 5:24 am

Re: Tried to install YaRSS2, crashed Deluge and won't start

Post by sremick »

Nevermind, I'm an idiot.

Didn't realize 20.04 came with python 3.8. O_O
So I royally broke things.
Luckily once I realized the problem, I was able to fix it on my own.
Deluge is running again!
sremick
New User
New User
Posts: 9
Joined: Tue Jun 21, 2016 5:24 am

Re: Tried to install YaRSS2, crashed Deluge and won't start

Post by sremick »

...I spoke too soon.

So Deluge does launch, and I see my previous in-progress torrents. However, uploading/downloading doesn't actually start happening for anything.
Some UI elements are actually broken, and if I try clicking on anything, Deluge immediately crashes.

Looking at the output, immediately after launching Deluge the errors begin:

Code: Select all

Unable to initialize gettext/locale!
'ngettext'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/deluge/i18n/util.py", line 118, in setup_translation
    builtins.__dict__['_n'] = builtins.__dict__['ngettext']
KeyError: 'ngettext'

(deluge:19029): Gdk-CRITICAL **: 22:07:52.253: gdk_window_thaw_toplevel_updates: assertion 'window->update_and_descendants_freeze_count > 0' failed
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/listview.py", line 233, in stabilized
    result = sort_func(model, iter1, iter2, data)
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/torrentview.py", line 106, in progress_sort
    return cmp(state1, state2)
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/common.py", line 45, in cmp
    return (x > y) - (x < y)
TypeError: '>' not supported between instances of 'NoneType' and 'NoneType'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/listview.py", line 233, in stabilized
    result = sort_func(model, iter1, iter2, data)
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/torrentview.py", line 106, in progress_sort
    return cmp(state1, state2)
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/common.py", line 45, in cmp
    return (x > y) - (x < y)
TypeError: '>' not supported between instances of 'NoneType' and 'NoneType'
That last chunk repeats often and fast, quickly scrolling the buffer. After a bajillion of them it changes up:

Code: Select all

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/listview.py", line 233, in stabilized
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/torrentview.py", line 106, in progress_sort
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/common.py", line 45, in cmp
TypeError: '>' not supported between instances of 'NoneType' and 'str'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 109, in apport_excepthook
  File "/usr/lib/python3/dist-packages/apport/report.py", line 620, in add_proc_info
  File "/usr/lib/python3/dist-packages/apport/report.py", line 1731, in get_logind_session
OSError: [Errno 24] Too many open files: 'cgroup'

Original exception was:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/listview.py", line 233, in stabilized
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/torrentview.py", line 106, in progress_sort
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/common.py", line 45, in cmp
TypeError: '>' not supported between instances of 'NoneType' and 'str'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/listview.py", line 233, in stabilized
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/torrentview.py", line 106, in progress_sort
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/common.py", line 45, in cmp
TypeError: '>' not supported between instances of 'NoneType' and 'str'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 109, in apport_excepthook
  File "/usr/lib/python3/dist-packages/apport/report.py", line 566, in add_proc_info
OSError: [Errno 24] Too many open files: '/proc/19029'
And then that one repeats a ton. Until it changes again to:

Code: Select all

Temporarily disabling observer LegacyLogObserverWrapper(<bound method TwistedLoggingObserver.emit of <deluge.log.TwistedLoggingObserver object at 0x7f2db3247b80>>) due to exception: [Failure instance: Traceback: <class 'TypeError'>: _findCaller() takes from 1 to 2 positional arguments but 3 were given
/usr/lib/python3/dist-packages/deluge/ui/gtk3/filtertreeview.py:299:update
/usr/lib/python3/dist-packages/twisted/internet/defer.py:953:__del__
/usr/lib/python3/dist-packages/twisted/logger/_logger.py:270:critical
/usr/lib/python3/dist-packages/twisted/logger/_logger.py:144:emit
--- <exception caught here> ---
/usr/lib/python3/dist-packages/twisted/logger/_observer.py:131:__call__
/usr/lib/python3/dist-packages/twisted/logger/_legacy.py:93:__call__
/usr/lib/python3/dist-packages/deluge/log.py:208:emit
/usr/lib/python3/dist-packages/twisted/python/log.py:595:emit
/usr/lib/python3/dist-packages/twisted/logger/_legacy.py:154:publishToNewObserver
/usr/lib/python3/dist-packages/twisted/logger/_stdlib.py:115:__call__
/usr/lib/python3.8/logging/__init__.py:1500:log
/usr/lib/python3.8/logging/__init__.py:1565:_log
]
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/deluge/ui/gtk3/filtertreeview.py", line 299, in update
    
  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 953, in __del__
    
  File "/usr/lib/python3/dist-packages/twisted/logger/_logger.py", line 270, in critical
    
  File "/usr/lib/python3/dist-packages/twisted/logger/_logger.py", line 144, in emit
    
--- <exception caught here> ---
  File "/usr/lib/python3/dist-packages/twisted/logger/_observer.py", line 131, in __call__
    
  File "/usr/lib/python3/dist-packages/twisted/logger/_legacy.py", line 93, in __call__
    
  File "/usr/lib/python3/dist-packages/deluge/log.py", line 208, in emit
    
  File "/usr/lib/python3/dist-packages/twisted/python/log.py", line 595, in emit
    
  File "/usr/lib/python3/dist-packages/twisted/logger/_legacy.py", line 154, in publishToNewObserver
    
  File "/usr/lib/python3/dist-packages/twisted/logger/_stdlib.py", line 115, in __call__
    
  File "/usr/lib/python3.8/logging/__init__.py", line 1500, in log
    
  File "/usr/lib/python3.8/logging/__init__.py", line 1565, in _log
    
builtins.TypeError: _findCaller() takes from 1 to 2 positional arguments but 3 were given
And that repeats a ton, although after a while this gets thrown into the mix too:

Code: Select all

(deluge:19029): Pango-WARNING **: 22:08:06.682: failed to create cairo scaled font, expect ugly output. the offending font is 'DejaVu Sans 9'

(deluge:19029): Pango-WARNING **: 22:08:06.682: font_face status is: <unknown error status>

(deluge:19029): Pango-WARNING **: 22:08:06.682: scaled_font status is: out of memory

(deluge:19029): Pango-WARNING **: 22:08:06.684: failed to create cairo scaled font, expect ugly output. the offending font is 'DejaVu Sans 9'

(deluge:19029): Pango-WARNING **: 22:08:06.684: font_face status is: <unknown error status>

(deluge:19029): Pango-WARNING **: 22:08:06.684: scaled_font status is: out of memory
Seems pretty consistent at that point, until I click on something, then crash:

Code: Select all

(deluge:19029): Gtk-WARNING **: 22:13:15.226: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/elementary-xfce/status/16/image-missing.png: Error opening file /usr/share/icons/elementary-xfce/status/16/image-missing.png: Too many open files (g-io-error-quark, 31)
Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/elementary-xfce/status/16/image-missing.png: Error opening file /usr/share/icons/elementary-xfce/status/16/image-missing.png: Too many open files (g-io-error-quark, 31)
Aborted (core dumped)
So it seems something bad happens early on and things sorta spin out of controll, opening up too many files and exhausting memory... then it can't cope with being touched becuase there aren't any resources left so *BOOM*.

I tried uninstalling deluge and re-installing, but that didn't fix it. I'm afraid I'm back to appealing for help. :(
sremick
New User
New User
Posts: 9
Joined: Tue Jun 21, 2016 5:24 am

Re: Tried to install YaRSS2, crashed Deluge and won't start

Post by sremick »

https://dev.deluge-torrent.org/ticket/3309 perhaps?

Although not sure why my python adventures would've triggered it. The same torrent list was working fine before, same Deluge version.
Post Reply