[winswitch] Xpra crash (Gdk error)

Antoine Martin antoine at nagafix.co.uk
Tue Feb 14 05:59:57 GMT 2017


On 14/02/17 12:54, Lukas Haase wrote:
> Hi Antoine,
> 
>> [...]
>> The log file would still be useful to see: the last few entries in it
>> would tell us what part of the code was potentially doing this illegal
>> access.
> 
> What amount of log level would help to identify this problem? Or asked differently, with which "-d" should I start the xpra server?
Since we don't know where the error is going to be coming from...
"-d all" is the best bet... though it may slow things down quite a bit.
And sometimes that's even enough to make the problems go away :/

>> [...]
>>> 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
>> It should be harmless and just means that the window disappeared before
>> we could manage it.
>> We probably shouldn't be logging an error here.
> 
> Yes, I would really appreciate that.
> Errors - in particular with stack traces showing some internals always causes me to think about heavy problems.
Maybe it is related to the problem above?
How do I reproduce it? Which particular application / platform /
settings / etc.

> I think many programs draw and quickly remove windows - at least this happens all the time with me.
gtkperf does that, and we use it to stress test - but it has not caused
such problems lately - or we would have fixed them.


Cheers
Antoine



More information about the shifter-users mailing list