[winswitch] Xpra crash (Gdk error)

Lukas Haase lukashaase at gmx.at
Mon Feb 13 23:45:02 GMT 2017


Hi,

Once in a while xpra crashes with a message like the following:

Gdk-ERROR **: The program 'Xpra' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 30573157 error_code 3 request_code 3 minor_code 0)
  (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.)
aborting...
Abort (core dumped)

The X server (Xorg-nosuid /usr/bin/Xorg -noreset -nolisten tcp +extension GLX +extension RANDR +extension RENDER -logfile /home/lukas/.xpra/Xorg-10.log -config /etc/xpra/xorg.conf :2000) as well as the client continue running in the background.

I think it is hopeless to debug this and hence do not want to file a bug report because this occurs after working for many days. So debugging/getting this reproducible is hopeless and even if I would enable logging, the log file would probably be GB size.

I would rather like to understand what's going on and maybe prevent doing actions that could result in this state.

Any idea what could cause a situation like this?

Since the error is "BadWindow" I also want to mention that the xpra continuously generates output like this:

2017-02-13 12:36:36,599 failed to manage client <gtk.gdk.Window object at 0x7fa154183460 (GdkWindow at 0x472c7e0)>: XError: BadWindow
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/xpra/x11/gtk2/wm.py", line 346, in _manage_client
    self.do_manage_client(gdkwindow)
  File "/usr/lib64/python2.6/site-packages/xpra/gtk_common/error.py", line 168, in __exit__
    trap._exit(True)
  File "/usr/lib64/python2.6/site-packages/xpra/gtk_common/error.py", line 100, in _exit
    raise XError(get_X_error(error))
XError: XError: BadWindow
2017-02-13 12:36:36,609 failed to manage client <gtk.gdk.Window object at 0x2a58640 (GdkWindow at 0x385bc60)>: XError: BadWindow
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/xpra/x11/gtk2/wm.py", line 346, in _manage_client
    self.do_manage_client(gdkwindow)
  File "/usr/lib64/python2.6/site-packages/xpra/gtk_common/error.py", line 168, in __exit__
    trap._exit(True)
  File "/usr/lib64/python2.6/site-packages/xpra/gtk_common/error.py", line 100, in _exit
    raise XError(get_X_error(error))
XError: XError: BadWindow

as well as:

2017-02-13 15:13:01,663 client 64: unknown string message: 0xc22fL / 49371 / 0

but xpra does not crash - usually for days.
However, after a couple of days xpra server will eventually crash with the Gdk error above.

It also seems that I can resume the X server/X client with "xpra upgrade" (which mitigates the problem a bit).


Thanks,
Lukas






More information about the shifter-users mailing list