
Looks like a bug in NICE DCV's OpenGL support. I suggest you contact them for help. Error 1282 is GL_INVALID_OPERATION. And glDrawBuffer(GL_NONE) is legal. See https://registry.khronos.org/OpenGL-Refpages/gl4/html/glDrawBuffer.xhtml. -- Greg On 1/5/2024 3:17 AM, georg.kempf--- via ChimeraX-users wrote:
Dear ChimeraX developers and users,
we would like to use ChimeraX in a virtual session using the “NICE DCV” software. We verified that OpenGL hardware rendering is working in the virtual session (glxinfo, glxgears, nvidia-smi) but when opening a structure in ChimeraX, we get the below error. We tried it with different versions of ChimeraX (1.8.dev202311220127, 1.6.1 stable) on Ubuntu 20.04.6 LTS. Since the error doesn’t appear when using ChimeraX on the physical display of the same workstation(s) (where the DCV server is running) it must be related to the virtual session context. I was wondering if anyone knows what could be the cause of the error and in which direction to look regarding debugging?
This is the traceback from ChimeraX:
An error occurred in drawing the scene. Redrawing graphics is now stopped to avoid a continuous stream of error messages. To restart graphics use the command "graphics restart" after changing the settings that caused the error.
GLError( err = 1282, description = b'invalid operation', baseOperation = glDrawBuffer, cArguments = (GL_NONE,) )
Traceback (most recent call last): File "/chimerax/usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/core/updateloop.py", line 84, in draw_new_frame view.draw(check_for_changes = False) File "/chimerax/usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/graphics/view.py", line 188, in draw self._draw_scene(camera, drawings) File "/chimerax/usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/graphics/view.py", line 226, in _draw_scene shadow, multishadow = self._compute_shadowmaps(opaque_drawings, transparent_drawings, camera) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/chimerax/usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/graphics/view.py", line 626, in _compute_shadowmaps multishadow_enabled = r.multishadow.use_multishadow_map(shadow_drawings) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/chimerax/usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/graphics/opengl.py", line 1628, in use_multishadow_map self._start_rendering_multishadowmap(center, radius, size) File "/chimerax/usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/graphics/opengl.py", line 1711, in _start_rendering_multishadowmap fb = r.start_depth_render(self._multishadow_map_framebuffer, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/chimerax/usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/graphics/opengl.py", line 1356, in start_depth_render if not fb.activate(): ^^^^^^^^^^^^^ File "/chimerax/usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/graphics/opengl.py", line 2309, in activate fbo = self.framebuffer_id ^^^^^^^^^^^^^^^^^^^ File "/chimerax/usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/graphics/opengl.py", line 2305, in framebuffer_id self._fbo = fbo = self._create_framebuffer() ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/chimerax/usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/graphics/opengl.py", line 2141, in _create_framebuffer fbo = self._create_fbo(self.color_texture or self._color_rb, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/chimerax/usr/lib/ucsf-chimerax-daily/lib/python3.11/site-packages/chimerax/graphics/opengl.py", line 2169, in _create_fbo GL.glDrawBuffer(GL.GL_NONE) File "src/errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError OpenGL.error.GLError: GLError( err = 1282, description = b'invalid operation', baseOperation = glDrawBuffer, cArguments = (GL_NONE,) )
Many thanks!
Kind regards, Georg _______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/