Xpra: Ticket #1886: crash with gtk3 cairo backend

python3 /usr/bin/xpra attach tcp:// --opengl=no -d all


2018-06-24 23:47:24,690 cairo._do_paint_rgb(ARGB32, True, 630736 \
    <class 'xpra.net.mmap_pipe.c_char_Array_630736'>,15,0,484,316,1996, \
    {b'rgb_format': 'BGRX', 'encoding': 'mmap'}) \
    set_image_surface_data=<built-in function set_image_surface_data>, use pixbuf=False
2018-06-24 23:47:24,690 source image surface: (cairo.Format.ARGB32, 484, 316, 1936, cairo.Content.COLOR_ALPHA)
2018-06-24 23:47:24,691 cairo_paint_surface(<function CairoBackingBase.cairo_paint_surface.<locals>.set_source_surface at 0x7fc0b771a048>, \
    <cairo.ImageSurface object at 0x7fc09ed645f0>, 15, 0, 484, 316, \
    {b'rgb_format': 'BGRX', 'encoding': 'mmap'}) backing=<cairo.ImageSurface object at 0x7fc0b421f910>, paint box line width=0
double free or corruption (out)
Aborted (core dumped)

The bug does not occur with opengl on, or with mmap off. Converting the mmap array to bytes does not help.

Sun, 24 Jun 2018 16:53:21 GMT - Antoine Martin: priority, status, description changed

Mon, 25 Jun 2018 04:57:47 GMT - Antoine Martin: status, summary changed; resolution set

Not just with mmap, also with plain rgb.

Memory overflow fixed in r19707.

Related improvements in:

Sat, 23 Jan 2021 05:36:24 GMT - migration script:

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