njsmith / partiwm

[defunct] Experiments with window managers in Python + GTK+, including the original version of xpra
GNU General Public License v2.0
23 stars 3 forks source link

xpra signal 11, missing properties, X errors, deprecated python sets #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
xpra           0.0.6-0ubuntu8 X Persistent Remote Applications

Get:1 http://ca.archive.ubuntu.com/ubuntu/ lucid/universe wimpiggy
   0.0.6-0ubuntu8 [206kB]
Get:2 http://ca.archive.ubuntu.com/ubuntu/ lucid/main xvfb 2:1.7.6-2ubuntu7
   [1793kB]
Get:3 http://ca.archive.ubuntu.com/ubuntu/ lucid/universe xpra
   0.0.6-0ubuntu8 [44.9kB]

Distributor ID: Ubuntu
Description:    Ubuntu 10.04 LTS
Release:    10.04
Codename:   lucid

Linux linux 2.6.32-22-generic #36-Ubuntu SMP Thu Jun 3 19:31:57 UTC 2010
x86_64 GNU/Linux

$ xpra start :9
Entering daemon mode; any further errors will be reported to:
  /home/idallen/.xpra/:9.log
$ DISPLAY=:9 xload &
[1] 7131
$ xpra list
Found the following xpra sessions:
    LIVE session at :9
$ xpra attach :9

The xload showed correctly, then something happened (I'm not sure what)
and the server died.  In the .xpra/:9.log we see:

[dix] Could not init font path element /usr/share/fonts/X11/cyrillic,
removing from list!
[dix] Could not init font path element /usr/share/fonts/X11/cyrillic,
removing from list!
/usr/lib/python2.6/dist-packages/wimpiggy/wm.py:9: DeprecationWarning: the
sets module is deprecated
  from sets import ImmutableSet
X Error of failed request:  BadValue (integer parameter out of range for
operation)
  Major opcode of failed request:  118 (X_SetModifierMapping)
  Value in failed request:  0x17
  Serial number of failed request:  21
  Current serial number in output stream:  21
Missing window or missing property or wrong property type WM_TRANSIENT_FOR
(window)
Missing window or missing property or wrong property type
_NET_WM_WINDOW_TYPE (['atom'])
Missing window or missing property or wrong property type _NET_WM_PID (u32)
Missing window or missing property or wrong property type _NET_WM_STATE
(['atom'])
Missing window or missing property or wrong property type _NET_WM_NAME (utf8)
Missing window or missing property or wrong property type _NET_WM_NAME (utf8)
Missing window or missing property or wrong property type _NET_WM_ICON_NAME
(utf8)
Missing window or missing property or wrong property type _NET_WM_ICON_NAME
(utf8)
Missing window or missing property or wrong property type
_NET_WM_STRUT_PARTIAL (strut-partial)
Missing window or missing property or wrong property type _NET_WM_STRUT (strut)
Missing window or missing property or wrong property type
_NET_WM_STRUT_PARTIAL (strut-partial)
Missing window or missing property or wrong property type _NET_WM_STRUT (strut)
Missing window or missing property or wrong property type _NET_WM_ICON (icon)
New connection received
Connection lost
New connection received
Handshake complete; enabling connection

Backtrace:
0: Xvfb-for-Xpra-:9 (xorg_backtrace+0x28) [0x557558]
1: Xvfb-for-Xpra-:9 (0x400000+0x15b16d) [0x55b16d]
2: /lib/libpthread.so.0 (0x7f996d7b4000+0xf8f0) [0x7f996d7c38f0]
3: Xvfb-for-Xpra-:9 (0x400000+0x13c090) [0x53c090]
4: Xvfb-for-Xpra-:9 (0x400000+0x146f29) [0x546f29]
5: Xvfb-for-Xpra-:9 (0x400000+0x147d93) [0x547d93]
6: Xvfb-for-Xpra-:9 (0x400000+0x40183) [0x440183]
7: Xvfb-for-Xpra-:9 (0x400000+0x10575c) [0x50575c]
8: Xvfb-for-Xpra-:9 (0x400000+0xf5f3a) [0x4f5f3a]
9: /lib/libc.so.6 (__libc_start_main+0xfd) [0x7f996c4acc4d]
10: Xvfb-for-Xpra-:9 (0x400000+0x1d389) [0x41d389]
Segmentation fault at address 0x38

Caught signal 11 (Segmentation fault). Server aborting
xpra: Fatal IO error 104 (Connection reset by peer) on X server :9.0.

Restarting it didn't reproduce the problem.

=====================
When xpra is already running on :9, trying it a second time says:

|~[8048] xpra start :9
Traceback (most recent call last):
  File "/usr/bin/xpra", line 6, in <module>
    xpra.scripts.main.main(__file__, sys.argv)
  File "/usr/lib/python2.6/dist-packages/xpra/scripts/main.py", line 82, in
main
    run_server(parser, options, mode, script_file, args)
  File "/usr/lib/python2.6/dist-packages/xpra/scripts/server.py", line 181,
in run_server
    logpath = dotxpra.server_socket_path(display_name, upgrading) + ".log"
  File "/usr/lib/python2.6/dist-packages/xpra/dotxpra.py", line 61, in
server_socket_path
    raise ServerSockInUse, (state, local_display_name)
xpra.dotxpra.ServerSockInUse: ('LIVE', ':9')
Exit 1

=====================
Keyboard interrupts are not handled well:

|~[8086] xpra attach :9 
Attached
^C
Shutting down main-loop
Traceback (most recent call last):
  File "/usr/bin/xpra", line 6, in <module>
    xpra.scripts.main.main(__file__, sys.argv)
  File "/usr/lib/python2.6/dist-packages/xpra/scripts/main.py", line 84, in
main
    run_client(parser, options, args)
  File "/usr/lib/python2.6/dist-packages/xpra/scripts/main.py", line 157,
in run_client
    app.run()
  File "/usr/lib/python2.6/dist-packages/xpra/client.py", line 301, in run
    gtk.main()
KeyboardInterrupt
Exit 1

Original issue reported on code.google.com by idal...@idallen.ca on 7 Jun 2010 at 8:43

GoogleCodeExporter commented 9 years ago
If you find multiple issues, please file multiple bug reports -- putting 
everything together in one like this makes it really hard to tell if I've 
actually understood everything, and hard to keep track of what's been fixed and 
what hasn't.

The missing properties and Python deprecation warning are expected (we have to 
use the now-deprecated API if we want to be compatible with old versions), and 
harmless.

The ugly error message you get on a keyboard interrupt is also harmless, but is 
fixed in the development version.

I'm not sure what's going on yet with the X server segfaulting and the 
X_SetModifierMapping error, but I suspect they're related and that's issue #20.

So I'll mark this issue as a dupe of #20, and if I've missed anything then 
please do open a new issue for it.

Original comment by njsmith@ucsd.edu on 26 Jun 2010 at 3:14