Xpra: Ticket #2499: macOS openGL client errors (gl_paint_planar)

When using macOS with the latest xpra client beta, I'm receiving errors of the form:

2019-11-29 10:00:03,375 Error painting planar update
Traceback (most recent call last):
  File "/Applications/Xpra.app/Contents/Resources/lib/python/xpra/client/gl/gl_window_backing_base.py", line 1101, in gl_paint_planar
    self.render_planar_update(x, y, enc_width, enc_height, x_scale, y_scale, shader)
  File "/Applications/Xpra.app/Contents/Resources/lib/python/xpra/client/gl/gl_window_backing_base.py", line 1199, in render_planar_update
    glEnd()
  File "src/latebind.pyx", line 44, in OpenGL_accelerate.latebind.Curry.__call__
  File "/Applications/Xpra.app/Contents/Resources/lib/python/site-packages.zip/OpenGL/GL/exceptional.py", line 45, in glEnd
    return baseFunction( )
  File "src/errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
	err = 1282,
	description = b'invalid operation',
	baseOperation = glEnd,
	cArguments = ()
)
2019-11-29 10:00:03,380  flush=0, image=ImageWrapper(YUV420P:(0, 0, 640, 344, 24):PACKED), coords=(0, 0, 640, 344), size=640x344
2019-11-29 10:00:03,383 Error presenting FBO:
2019-11-29 10:00:03,384  GLError(
	err = 1282,
	description = b'invalid operation',
	baseOperation = glEnd,
	cArguments = ()
)
2019-11-29 10:00:03,386 Error painting planar update
Traceback (most recent call last):
  File "/Applications/Xpra.app/Contents/Resources/lib/python/xpra/client/gl/gl_window_backing_base.py", line 1101, in gl_paint_planar
    self.render_planar_update(x, y, enc_width, enc_height, x_scale, y_scale, shader)
  File "/Applications/Xpra.app/Contents/Resources/lib/python/xpra/client/gl/gl_window_backing_base.py", line 1199, in render_planar_update
    glEnd()
  File "src/latebind.pyx", line 44, in OpenGL_accelerate.latebind.Curry.__call__
  File "/Applications/Xpra.app/Contents/Resources/lib/python/site-packages.zip/OpenGL/GL/exceptional.py", line 45, in glEnd
    return baseFunction( )
  File "src/errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
	err = 1282,
	description = b'invalid operation',
	baseOperation = glEnd,
	cArguments = ()
)


Fri, 29 Nov 2019 18:14:39 GMT - mjlbach: component, summary changed


Fri, 29 Nov 2019 18:16:15 GMT - mjlbach: summary changed


Fri, 29 Nov 2019 18:21:51 GMT - mjlbach:

Of note, this affects start-up. The client xpra window will start completely black until openGL is toggled on/off.


Sat, 30 Nov 2019 01:39:16 GMT - Antoine Martin: status changed; resolution set

Duplicate of #2491


Thu, 05 Dec 2019 13:13:22 GMT - Antoine Martin:

Finally fixed (that was hard), see ticket:2491#comment:10. The latest beta builds have this fix and this will also be included in 3.0.3

Please report if you still have problems.


Sat, 23 Jan 2021 05:52:57 GMT - migration script:

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