Xpra: Ticket #269: Problem launching binary xpra-0.8.6-1.fc18.i386

Fedora 18 i386

curl -O http://xpra.org/dists/Fedora/18/i386/xpra-0.8.6-1.fc18.i386.rpm yum localinstall xpra-0.8.6-1.fc18.i386.rpm

started with command line

xpra start :11 --no-daemon -d all
2013-02-25 20:37:15,201 cyxor loaded
2013-02-25 20:37:15,227 sizing world to 5120x3200
2013-02-25 20:37:15,228 sending WM_TAKE_FOCUS: <gtk.gdk.Window object at 0x9ef6694 (GdkWindow at 0x9e21e58)>, 0L
2013-02-25 20:37:15,296 _call(True,<function get_default_cursor at 0x9efa80c>,(),{}) Python int too large to convert to C long
Traceback (most recent call last):
  File "/usr/bin/xpra", line 6, in <module>
    sys.exit(xpra.scripts.main.main(__file__, sys.argv))
  File "/usr/lib/python2.7/site-packages/xpra/scripts/main.py", line 563, in main
    return run_server(parser, options, mode, script_file, args)
  File "/usr/lib/python2.7/site-packages/xpra/scripts/server.py", line 429, in run_server
    app = XpraServer(clobber, sockets, opts)
  File "/usr/lib/python2.7/site-packages/xpra/server.py", line 182, in __init__
    XpraServerBase.__init__(self, clobber, sockets, opts)
  File "/usr/lib/python2.7/site-packages/xpra/server_base.py", line 60, in __init__
    self.x11_init(clobber)
  File "/usr/lib/python2.7/site-packages/xpra/server.py", line 214, in x11_init
    trap.swallow_synced(get_default_cursor)
  File "/usr/lib/python2.7/site-packages/wimpiggy/error.py", line 137, in swallow_synced
    self.call_synced(fun, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/wimpiggy/error.py", line 120, in call_synced
    return self._call(True, fun, args, kwargs)
  File "/usr/lib/python2.7/site-packages/wimpiggy/error.py", line 112, in _call
    raise e
OverflowError: Python int too large to convert to C long
2013-02-25 20:37:15,304 removing socket /root/.xpra/localhost-11
2013-02-25 20:37:15,305 killing xvfb with pid 3663
[root@localhost ~]# Server terminated successfully (0). Closing log file.

I've tried the binary for 0.8.5 and there is no issue



Tue, 26 Feb 2013 05:54:12 GMT - Antoine Martin:

I will have to test, but feel free to beat me to it:

--- src/wimpiggy/lowlevel/bindings.pyx	(revision 2766)
+++ src/wimpiggy/lowlevel/bindings.pyx	(working copy)
@@ -1687,7 +1687,7 @@
     cdef char b1, b2, b3, b4
     while i < len:
         argb = data[i] & 0xffffffff
-        rgba = (argb << 8) | (argb >> 24)
+        rgba = ((argb << 8) | (argb >> 24)) & 0xffffffff
         b1 = (rgba >> 24)  & 0xff
         b2 = (rgba >> 16) & 0xff
         b3 = (rgba >> 8) & 0xff

Tue, 26 Feb 2013 10:18:48 GMT - Antoine Martin: status changed; resolution set

r2800 + r2802 + r2804 fix this for trunk, backported to v0.8.x in r2805

Tested on Ubuntu 12.10 x86 and Fedora 18 x86.


Sat, 23 Jan 2021 04:50:06 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/269