Xpra: Ticket #2205: paint errors with pixmap backend

2019-03-10 19:39:21,839 Error painting rgb32
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/xpra/client/window_backing_base.py", line 347, in do_paint_rgb
    success = paint_fn(img_data, x, y, width, height, rowstride, options)
  File "/usr/lib/python2.7/dist-packages/xpra/client/gtk2/pixmap_backing.py", line 160, in _do_paint_rgb32
    self._backing.draw_rgb_32_image(gc, x, y, width, height, gdk.RGB_DITHER_NONE, img_data, rowstride)
IndexError: rgb_buf is not large enough


Tue, 12 Mar 2019 05:56:51 GMT - Antoine Martin: status, description changed

Looks like the pixel data is in plain RGB format (no alpha), but we're erroneously claiming to send it as rgb32 / BGRX:

compress:   0.1ms for    6x13   pixels at  167,2    for wid=1     using     rgb32 with ratio  75.0%  (    0KB to     0KB), sequence    14, client_options={'rgb_format': u'BGRX'}
client @12.221 process_draw:     234    bytes for window   1, sequence       14,    6x13   at  167,2    using  rgb32 encoding with options={'rgb_format': 'BGRX'}
client @12.221 draw_region(167, 2, 6, 13, rgb32, 234 bytes, 18, {'rgb_format': 'BGRX'}, [<function record_decode_time at 0x7fa833123410>, <function after_draw_refresh at 0x7fa8187b18c0>])
client @12.221 Error painting rgb32
client @12.221 IndexError: rgb_buf is not large enough

6*13*3=234 (6x13 with 3 bytes per pixel)


Tue, 12 Mar 2019 12:26:07 GMT - Antoine Martin: status changed; resolution set

Breakage was caused by r22033, fixed in r22058.


Sat, 23 Jan 2021 05:45:00 GMT - migration script:

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