GTK errors running 2.0.3

General support for problems installing or using Deluge
Post Reply
bytecodeutilize
New User
New User
Posts: 3
Joined: Sat Jul 06, 2019 3:00 am

GTK errors running 2.0.3

Post by bytecodeutilize »

OS: Arch Linux
Version: 2.0.3 https://www.archlinux.org/packages/extra/any/deluge/

Deluge hasn't been working since installed updates on my computer yesterday. The program will load but isn't functioning correctly. Anyone know what's going on or how to fix this?

When I launch the program I get this:

Code: Select all

$ deluge-gtk 
(deluge:22332): Gtk-CRITICAL **: 20:03:35.347: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
(deluge:22332): Gtk-CRITICAL **: 20:03:35.347: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
(deluge:22332): Gtk-CRITICAL **: 20:03:35.348: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
When I click to add a torrent from URL I get this:

Code: Select all

Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/deluge/ui/gtk3/addtorrentdialog.py", line 752, in on_button_url_clicked
    text = get_clipboard_text()
  File "/usr/lib/python3.7/site-packages/deluge/ui/gtk3/common.py", line 388, in get_clipboard_text
    or Clipboard.get().wait_for_text()
TypeError: Gtk.Clipboard.get() takes exactly 1 argument (0 given)
The box to specify a url does not appear so it's unusable.

Additional details:
I installed all the "Optional" dependencies for the package. I tried the AUR package and had the same issue.
bytecodeutilize
New User
New User
Posts: 3
Joined: Sat Jul 06, 2019 3:00 am

Re: GTK errors running 2.0.3

Post by bytecodeutilize »

Looks like it's a gtk3 porting issue. How is no one else reporting this issue?
https://stackoverflow.com/questions/132 ... -on-ubuntu

In deluge\ui\gtk3\common.py

Code: Select all

def get_clipboard_text():
    text = (
        Clipboard.get(selection=SELECTION_CLIPBOARD).wait_for_text()
        or Clipboard.get().wait_for_text()
    )
    if text:
        return text.strip()
bytecodeutilize
New User
New User
Posts: 3
Joined: Sat Jul 06, 2019 3:00 am

Re: GTK errors running 2.0.3

Post by bytecodeutilize »

Removing "or Clipboard.get().wait_for_text()" fixes the one issue. Why in the world is that there?
Post Reply