deluge-gtk crashes while connecting to server

General support for problems installing or using Deluge
Post Reply
ryvasy
New User
New User
Posts: 5
Joined: Sat Mar 31, 2012 10:00 am

deluge-gtk crashes while connecting to server

Post by ryvasy »

I'm running Arch Linux

Code: Select all

The program 'deluge-gtk' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 48496 error_code 3 request_code 155 minor_code 3)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
This is what I get after chosing server in Deluge's connection manager. At the same time deluge-gtk process dies.
I'm using 1.3.4 version, but downgrading has no effect, so I think it may be a bug in some depency package.
What's the reason, who knows?

Sorry for bad English, it's not my native language.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: deluge-gtk crashes while connecting to server

Post by Cas »

You would need to run deluge-gtk in a gdb and get a backtrace to determine what is causing gtkui to crash.

Code: Select all

gdb --args python /usr/bin/deluge-gtk
(gdb) run
#after crash
(gdb) bt
ryvasy
New User
New User
Posts: 5
Joined: Sat Mar 31, 2012 10:00 am

Re: deluge-gtk crashes while connecting to server

Post by ryvasy »

Code: Select all

GNU gdb (GDB) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/python2...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/python2 /usr/bin/deluge-gtk
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
[New Thread 0x7fffe9452700 (LWP 18632)]
[New Thread 0x7fffe3107700 (LWP 18633)]
[New Thread 0x7fffe2906700 (LWP 18634)]
[New Thread 0x7fffe2105700 (LWP 18635)]
[New Thread 0x7fffe1904700 (LWP 18636)]
[Thread 0x7fffe2906700 (LWP 18634) exited]
[Thread 0x7fffe3107700 (LWP 18633) exited]
[Thread 0x7fffe2105700 (LWP 18635) exited]
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/twisted/internet/base.py", line 413, in fireEvent
    DeferredList(beforeResults).addCallback(self._continueFiring)
  File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 301, in addCallback
    callbackKeywords=kw)
  File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 290, in addCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
--- <exception caught here> ---
  File "/usr/lib/python2.7/site-packages/twisted/internet/base.py", line 426, in _continueFiring
    callable(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/gtkui.py", line 336, in _on_reactor_start
    self.__start_non_classic()
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/gtkui.py", line 376, in __start_non_classic
    reactor.simulate()
exceptions.AttributeError: 'Gtk2Reactor' object has no attribute 'simulate'
[New Thread 0x7fffe2105700 (LWP 18643)]
The program 'deluge' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 27310 error_code 3 request_code 152 minor_code 3)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
[Thread 0x7fffe2105700 (LWP 18643) exited]
[Thread 0x7fffe1904700 (LWP 18636) exited]
[Thread 0x7fffe9452700 (LWP 18632) exited]
[Inferior 1 (process 18624) exited with code 01]
[New Thread 0x7fffe2105700 (LWP 18643)] - this line appears when I open connection manager and following messages are showed after clicking "Connect" button
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: deluge-gtk crashes while connecting to server

Post by Cas »

You need to run backtrace (bt) in gdb after the crash.
ryvasy
New User
New User
Posts: 5
Joined: Sat Mar 31, 2012 10:00 am

Re: deluge-gtk crashes while connecting to server

Post by ryvasy »

Sorry

Code: Select all

GNU gdb (GDB) 7.4
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/python2...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/python2 /usr/bin/deluge-gtk
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
[New Thread 0x7fffe9452700 (LWP 3512)]
[New Thread 0x7fffe3107700 (LWP 3513)]
[New Thread 0x7fffe2906700 (LWP 3514)]
[Thread 0x7fffe2906700 (LWP 3514) exited]
Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/twisted/internet/base.py", line 413, in fireEvent
    DeferredList(beforeResults).addCallback(self._continueFiring)
  File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 301, in addCallback
    callbackKeywords=kw)
  File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 290, in addCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.7/site-packages/twisted/internet/defer.py", line 551, in _runCallbacks
    current.result = callback(current.result, *args, **kw)
--- <exception caught here> ---
  File "/usr/lib/python2.7/site-packages/twisted/internet/base.py", line 426, in _continueFiring
    callable(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/gtkui.py", line 336, in _on_reactor_start
    self.__start_non_classic()
  File "/usr/lib/python2.7/site-packages/deluge/ui/gtkui/gtkui.py", line 376, in __start_non_classic
    reactor.simulate()
exceptions.AttributeError: 'Gtk2Reactor' object has no attribute 'simulate'
[New Thread 0x7fffe2906700 (LWP 3518)]
The program 'deluge' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 20441 error_code 3 request_code 152 minor_code 3)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
[Thread 0x7fffe3107700 (LWP 3513) exited]
[Thread 0x7fffe9452700 (LWP 3512) exited]
[Thread 0x7fffe2906700 (LWP 3518) exited]
[Inferior 1 (process 3504) exited with code 01]
(gdb) bt
No stack.
(gdb) 
And nothing else
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: deluge-gtk crashes while connecting to server

Post by Cas »

This error is something to do with X and will need further debugging but you will need to search or ask in arch for details on this.

Edit: Just to add there are often reports that this is video driver related e.g. https://bbs.archlinux.org/viewtopic.php?id=123176
ryvasy
New User
New User
Posts: 5
Joined: Sat Mar 31, 2012 10:00 am

Re: deluge-gtk crashes while connecting to server

Post by ryvasy »

It is strange because:
1) I have 2 PCs running Arch with different video cards and both have this problem with Deluge
2) No other applications on both PCs work like this

Ok. Thanks for assistance. Hope, I'll manage to find some solution: Deluge is very convenient bittorrent client for me.
ryvasy
New User
New User
Posts: 5
Joined: Sat Mar 31, 2012 10:00 am

Re: deluge-gtk crashes while connecting to server

Post by ryvasy »

I'm running KDE and use Oxygen-GTK theme for GTK applications. Downgrading oxygen-gtk2 Arch package to version 1.2.1-1 solves problem.
Kvaks
New User
New User
Posts: 6
Joined: Mon Oct 17, 2011 8:41 pm

Re: deluge-gtk crashes while connecting to server

Post by Kvaks »

Just confirming. I had the same problem and the solution was to change gtk-theme (open GTK+ Appearance in KDE). I just picked a random one other than oxygen-gtk and now Deluge-gtk works again.
Post Reply