[winswitch] "Simultanuous" start/upgrade

Lukas Haase lukashaase at gmx.at
Wed Dec 3 01:31:09 GMT 2014


Hi Antoine

> [...]
> This look like a real xpra bug. If you file a ticket, we should be able
> to fix it.
> Try triggering the error with:
> XPRA_SYNCHRONIZE=1 xpra ...
> and / or:
> xpra -d error ...
> It will print a lot of debug, which should include more details about
> the caller.
> 
> We do have a call to trap.swallow_synced, so it should have flushed the
> error on the spot instead of allowing it to go through to gdk where it
> causes the crash.

I am 100% sure this was reproduceable. Because in the beginning, I always called with "--no-mdns" and it crashed. At some point I realized without this argument it works. It it always worked. Now I want to reproduce it again and I fail :-( Seems a mix of coincidence and fails always now ...

Before I start meaningless bug reports, can you tell me if any of those outputs are of any use? In my opinion, the "-d error" does not print "a lot of debug".

This is the output when xpra did not crash (interestingly, I still see errors):

2014-12-02 17:14:08,449DISPLAY2 1280x768 at 0x193 (452x271 mm)
2014-12-02 17:14:08,515 server virtual display now set to 3600x1200 (best match for 3200x1200)
2014-12-02 17:14:08,517 setting key repeat rate from client: 500ms delay / 33ms interval
2014-12-02 17:14:08,518 setting keyboard layout to 'us'
2014-12-02 17:14:08,620 DPI set to 96 x 96
2014-12-02 17:14:08,621 sent updated screen size to 1 clients: 3600x1200 (max 8192x4096)
2014-12-02 17:14:14,456 _call(True,<built-in method XGetWindowProperty of xpra.x11.bindings.window_bindings.X11WindowBindings object at 0x7f01ffb217d8>,(12582913L, 'WM_WINDOW_ROLE', 'STRING', 'latin1'),{}) no such window
Traceback (most recent call last):
Tr
File "/usr/lib64/python2.6/site-packages/xpra/gtk_common/error.py", line 110, in _call
value = fun(*args, **kwargs)
  
File "window_bindings.pyx", line 707, in xpra.x11.bindings.window_bindings.X11WindowBindings.XGetWindowProperty (xpra/x11/bindings/window_bindings.c:6926)
PropertyError: no such window
2014-12-02 17:14:14,457 _call(True,<built-in method XGetWindowProperty of xpra.x11.bindings.window_bindings.X11WindowBindings object at 0x7f01ffb217d8>,(12582913L, '_NET_WM_NAME', 'UTF8_STRING', 'utf8'),{}) no such window
Traceback (most recent call last):
Tr
File "/usr/lib64/python2.6/site-packages/xpra/gtk_common/error.py", line 110, in _call
value = fun(*args, **kwargs)
  
File "window_bindings.pyx", line 707, in xpra.x11.bindings.window_bindings.X11WindowBindings.XGetWindowProperty (xpra/x11/bindings/window_bindings.c:6926)
PropertyError: no such window
2014-12-02 17:14:14,458 _call(True,<built-in method XGetWindowProperty of xpra.x11.bindings.window_bindings.X11WindowBindings object at 0x7f01ffb217d8>,(12582913L, 'WM_NAME', 'STRING', 'latin1'),{}) no such window
Traceback (most recent call last):
Tr
File "/usr/lib64/python2.6/site-packages/xpra/gtk_common/error.py", line 110, in _call
value = fun(*args, **kwargs)
  
File "window_bindings.pyx", line 707, in xpra.x11.bindings.window_bindings.X11WindowBindings.XGetWindowProperty (xpra/x11/bindings/window_bindings.c:6926)
PropertyError: no such window
2014-12-02 17:14:14,459 _call(True,<built-in method XGetWindowProperty of xpra.x11.bindings.window_bindings.X11WindowBindings object at 0x7f01ffb217d8>,(12582913L, '_NET_WM_NAME', 'UTF8_STRING', 'utf8'),{}) no such window
Traceback (most recent call last):
Tr
File "/usr/lib64/python2.6/site-packages/xpra/gtk_common/error.py", line 110, in _call
value = fun(*args, **kwargs)
  
File "window_bindings.pyx", line 707, in xpra.x11.bindings.window_bindings.X11WindowBindings.XGetWindowProperty (xpra/x11/bindings/window_bindings.c:6926)
PropertyError: no such window
2014-12-02 17:14:14,459 _call(True,<built-in method XGetWindowProperty of xpra.x11.bindings.window_bindings.X11WindowBindings object at 0x7f01ffb217d8>,(12582913L, 'WM_NAME', 'STRING', 'latin1'),{}) no such window
Traceback (most recent call last):
Tr
File "/usr/lib64/python2.6/site-packages/xpra/gtk_common/error.py", line 110, in _call
value = fun(*args, **kwargs)
  
File "window_bindings.pyx", line 707, in xpra.x11.bindings.window_bindings.X11WindowBindings.XGetWindowProperty (xpra/x11/bindings/window_bindings.c:6926)
PropertyError: no such window
2014-12-02 17:14:14,460 _call(True,<built-in method XGetWindowProperty of xpra.x11.bindings.window_bindings.X11WindowBindings object at 0x7f01ffb217d8>,(12582913L, '_NET_WM_WINDOW_OPACITY', 'CARDINAL', 'u32'),{}) no such window
Traceback (most recent call last):
Tr
File "/usr/lib64/python2.6/site-packages/xpra/gtk_common/error.py", line 110, in _call
value = fun(*args, **kwargs)
  
File "window_bindings.pyx", line 707, in xpra.x11.bindings.window_bindings.X11WindowBindings.XGetWindowProperty (xpra/x11/bindings/window_bindings.c:6926)
PropertyError: no such window
/usr/lib64/python2.6/site-packages/xpra/server/picture_encode.py:352: DeprecationWarning: tostring() is deprecated. Please call tobytes() instead.
/u
data = img.tostring("raw", target_format)
FreeType: couldn't open face /usr/share/fonts/default/ghostscript/bchb.pfa: 1
[...]



And this is now the output when xpra crashes:

[...]
2014-12-02 17:18:30,206 using rgb as primary encoding, also available: h264, vp8, png, png/P, png/L, webp, rgb24, jpeg, rgb32
2014-12-02 17:18:30,206 client root window size is 3200x1200 with 1 displays:
2014-12-02 17:18:30,206   '1\WinSta-Default' (846x317 mm) workarea: 1920x1167
2014-12-02 17:18:30,206     DISPLAY1 1920x1200 at 1280x0 (677x423 mm)
2014-12-02 17:18:30,206     DISPLAY2 1280x768 at 0x193 (452x271 mm)
2014-12-02 17:18:30,252 server virtual display now set to 3600x1200 (best match for 3200x1200)
2014-12-02 17:18:30,253 setting key repeat rate from client: 500ms delay / 33ms interval
2014-12-02 17:18:30,254 setting keyboard layout to 'us'
2014-12-02 17:18:30,331 DPI set to 96 x 96
2014-12-02 17:18:30,343 sent updated screen size to 1 clients: 3600x1200 (max 8192x4096)


2014-12-02 17:18:38,767 _call(True,<built-in method XGetWindowProperty of xpra.x11.bindings.window_bindings.X11WindowBindings object at 0x7fecfa68c7d8>,(12582913L, 'WM_TRANSIENT_FOR', 'WINDOW', 'window'),{}) no such window
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/xpra/gtk_common/error.py", line 110, in _call
    value = fun(*args, **kwargs)
  File "window_bindings.pyx", line 707, in xpra.x11.bindings.window_bindings.X11WindowBindings.XGetWindowProperty (xpra/x11/bindings/window_bindings.c:6926)
PropertyError: no such window
2014-12-02 17:18:38,768 _call(True,<built-in method XGetWindowProperty of xpra.x11.bindings.window_bindings.X11WindowBindings object at 0x7fecfa68c7d8>,(12582913L, '_NET_WM_WINDOW_TYPE', 'ATOM', ['atom']),{}) no such window
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/xpra/gtk_common/error.py", line 110, in _call
    value = fun(*args, **kwargs)
  File "window_bindings.pyx", line 707, in xpra.x11.bindings.window_bindings.X11WindowBindings.XGetWindowProperty (xpra/x11/bindings/window_bindings.c:6926)
PropertyError: no such window

Gdk-ERROR **: The program 'Xpra' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadDrawable (invalid Pixmap or Window parameter)'.
  (Details: serial 1112 error_code 9 request_code 14 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...
FreeType: couldn't open face /usr/share/fonts/default/ghostscript/bchb.pfa: 1


Both instances were started with

XPRA_SYNCHRONIZE=1 xpra start :1984 -d error --no-daemon



> [...]
> > I understand that these errors might be caused by "the application should not behave like this" and therefore xpra crashes.
> > On the other hand, it works over plain X and VNC. Furthermore, neither the application, nor the X server crashes (only xpra) meaning that it's related to xpra (even if it might behave correctly in a strict sense).
> Plain-X and VNC are not window managers... so they just do not have any
> code to run at all. Apples and oranges really.

No, sorry, I mean "Plain-X" with cygwins X server in windowed mode. This includes the window manager.
For VNC I agree of course.


Thanks
Lukas



More information about the shifter-users mailing list