Opened 6 years ago

Closed 6 years ago

#2457 closed defect (can't reproduce)

glUniformMatrix4fv → invalid operation

Reported by: chimerax-bug-report@… Owned by: Tom Goddard
Priority: normal Milestone:
Component: Graphics Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Windows-10-10.0.17763
ChimeraX Version: 0.91 (2019-09-28)
Description
(Describe the actions that caused this problem to occur here)

Log:
Startup Messages  
---  
warning | 'clip' is a prefix of an existing command 'clipper'  
  
UCSF ChimeraX version: 0.91 (2019-09-28)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> toolshed show Registration

"Other funding source" field cannot be empty when "other" is selected  
Thank you for registering your copy of ChimeraX. By providing the information
requested you will be helping us document the impact this software is having
in the scientific community. The information you supplied will only be used
for reporting summary usage statistics; no individual data will be released.  
davidrourap@gmail.com is subscribed to the ChimeraX announcements list  

> open "D:/Google Drive/Bern/Acyltransferase/2q0s-ACysEt-opt.pdb"

2q0s-ACysEt-opt.pdb title:  
Structure of the inhibitor bound form of M. Smegmatis aryl esterase [more
info...]  
  
Chain information for 2q0s-ACysEt-opt.pdb #1  
---  
Chain | Description  
A B C D E F G H | No description available  
  
Non-standard residues in 2q0s-ACysEt-opt.pdb #1  
---  
CET — Unknown ligand  
N10 — O-[(hexylamino)carbonyl]-L-serine  
SO4 — sulfate ion  
  

> show cartoons

> style sphere

Changed 26433 atom styles  

> preset "overall look" publication

Preset expands to these ChimeraX commands:

    
    
    set bg white
    set silhouettes t

  

> toolshed show Registration

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.  
  
Traceback (most recent call last):  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\updateloop.py", line 73, in draw_new_frame  
view.draw(check_for_changes = False)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\view.py", line 166, in draw  
self._draw_scene(camera, drawings)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\view.py", line 240, in _draw_scene  
draw_transparent(r, transparent_drawings)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\drawing.py", line 1426, in draw_transparent  
lambda: _draw_multiple(drawings, r, Drawing.TRANSPARENT_DRAW_PASS))  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\opengl.py", line 1134, in draw_transparent  
draw_depth()  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\drawing.py", line 1425, in <lambda>  
lambda: _draw_multiple(drawings, r, Drawing.TRANSPARENT_DEPTH_DRAW_PASS),  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\drawing.py", line 1431, in _draw_multiple  
d.draw(renderer, draw_pass)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\drawing.py", line 716, in draw  
self.draw_self(renderer, draw_pass)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\drawing.py", line 727, in draw_self  
self._draw_geometry(renderer, transparent_only = any_opaque)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\drawing.py", line 754, in _draw_geometry  
shader = r.shader(sopt)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\opengl.py", line 558, in shader  
p = self._opengl_shader(options)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\opengl.py", line 660, in _opengl_shader  
self._use_shader(p)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\opengl.py", line 585, in _use_shader  
self.set_projection_matrix()  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\opengl.py", line 678, in set_projection_matrix  
p.set_matrix('projection_matrix', pm)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\opengl.py", line 2605, in set_matrix  
GL.glUniformMatrix4fv(self.uniform_id(name), 1, False, matrix)  
File "src\latebind.pyx", line 32, in
OpenGL_accelerate.latebind.LateBind.__call__  
File "src\wrapper.pyx", line 318, in
OpenGL_accelerate.wrapper.Wrapper.__call__  
File "src\wrapper.pyx", line 311, in
OpenGL_accelerate.wrapper.Wrapper.__call__  
File "src\errorchecker.pyx", line 53, in
OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError  
OpenGL.error.GLError: GLError(  
err = 1282,  
description = b'invalid operation',  
baseOperation = glUniformMatrix4fv,  
pyArgs = (  
3,  
1,  
False,  
<OpenGL.arrays.lists.c_float_Array_4_Array_4 object at 0x000001BF305CAEC8>,  
),  
cArgs = (  
3,  
1,  
False,  
<OpenGL.arrays.lists.c_float_Array_4_Array_4 object at 0x000001BF305CAEC8>,  
),  
cArguments = (  
3,  
1,  
False,  
<OpenGL.arrays.lists.c_float_Array_4_Array_4 object at 0x000001BF305CAEC8>,  
)  
)  
  




OpenGL version: 3.3.0 NVIDIA 430.64
OpenGL renderer: GeForce MX250/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation

Change History (2)

comment:1 by pett, 6 years ago

Component: UnassignedGraphics
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionglUniformMatrix4fv → invalid operation

comment:2 by Tom Goddard, 6 years ago

Resolution: can't reproduce
Status: assignedclosed

OpenGL INVALID_OPERATION error setting a shader variable. Unclear how this can happen. The last command in the log before the error is "toolshed show Registration". That must have been entered by menu entry Tools / Utilities / Registration. The preceding command was publication preset (menu Presets / Publication) which does not seem to generate the error.

Two ideas about the cause. 1) Some kind of graphics driver bug. The use has new MX250 graphics which was released Jan 2019 and is laptop graphics. 2) the registration dialog generated a resize event which somehow happened in the middle of a draw causing Qt's opengl context to replace our rendering opengl context. Neither seem likely.

Note: See TracTickets for help on using tickets.