Xpra: Ticket #1852: windows fail to render content with python 2.6

OS: Centos 6.9 Xpra: 1.0.11-2

After updating to 1.0.11-2 from 1.0.10-1 windows no longer render content. The window frame is drawn but nothing appears within the window. We get a traceback that displays:

2018-05-22 16:21:30,423 Error painting rgb24
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/xpra/client/window_backing_base.py", line 288, in do_paint_rgb
    success = paint_fn(img_data, x, y, width, height, rowstride, options)
  File "/usr/lib64/python2.6/site-packages/xpra/client/gtk2/pixmap_backing.py", line 130, in _do_paint_rgb24
    if isinstance(img_data, (memoryview, _buffer, bytearray)):
NameError: global name 'memoryview' is not defined

If we remove the following line from pixmap_backing.py, it works:

        if isinstance(img_data, (memoryview, _buffer, bytearray)):


Tue, 22 May 2018 20:42:16 GMT - Wes Harrell: attachment set

Bug Report output


Wed, 23 May 2018 03:58:13 GMT - Antoine Martin: status, description, component, summary changed; milestone, resolution set

Note: this only triggers with the non-opengl rendering codepath when running under python 2.6 (ie: centos6).

This was caused by r18768 and is fixed in r18946. This will be included in 1.0.12.


Sat, 23 Jan 2021 05:35:29 GMT - migration script:

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