Opened 6 years ago

Closed 6 years ago

#2188 closed defect (can't reproduce)

glUniformMatrix4fv error while in VR

Reported by: zackg@… Owned by: Tom Goddard
Priority: normal Milestone:
Component: VR 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.18362
ChimeraX Version: 0.91 (2019-07-07)
Description
While rotating on object in SteamVR on an Oculus Rift.  I think I was pressing the right grip button when it crashed.

Log:
UCSF ChimeraX version: 0.91 (2019-07-07)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open "P:\\\IDPs\\\IDP" L2071 "CL17\\\Particle" "3\\\Grid" "A3\\\20190502" -
TitanX - Particle 3 Grid "A3\\\0008" - EDS Tomo Lone
"EA\\\ManyElements8bin.cxc"

File not found: P:\IDPs\IDP  
File not found: P:\IDPs\IDP  

> open "P:\\\IDPs\\\IDP L2071 CL17\\\Particle 3\\\Grid A3\\\20190502 - TitanX
- Particle 3 Grid A3\\\0008 - EDS Tomo Lone EA\\\ManyElements8bin.cxc"

> open Output8bin/Reconstructed/C_K_reconstruction_cropped.mrc

Summary of feedback from opening
Output8bin/Reconstructed/C_K_reconstruction_cropped.mrc  
---  
note | P:\IDPs\IDP L2071 CL17\Particle 3\Grid A3\20190502 - TitanX - Particle
3 Grid A3\0008 - EDS Tomo Lone
EA\Output8bin\Reconstructed\C_K_reconstruction_cropped.mrc: invalid cell
angles 0,0,0 must be between 0 and 180.  
  
Opened C_K_reconstruction_cropped.mrc, grid size 64,64,64, pixel 0.0156, shown
at level 1.15, step 1, values float32  

> volume voxelSize 1

> view orient cofr false

> volume median #1 binSize 3

> close #1

> volume #2 style surface color white level 0.878

> volume #2 projectionMode 3d

> volume #2 hide

> open Output8bin/Reconstructed/Al_K_reconstruction_cropped.mrc

Summary of feedback from opening
Output8bin/Reconstructed/Al_K_reconstruction_cropped.mrc  
---  
note | P:\IDPs\IDP L2071 CL17\Particle 3\Grid A3\20190502 - TitanX - Particle
3 Grid A3\0008 - EDS Tomo Lone
EA\Output8bin\Reconstructed\Al_K_reconstruction_cropped.mrc: invalid cell
angles 0,0,0 must be between 0 and 180.  
  
Opened Al_K_reconstruction_cropped.mrc, grid size 64,64,64, pixel 0.0156,
shown at level 0.553, step 1, values float32  

> volume voxelSize 1

> view orient cofr false

> volume median #1 binSize 3

> close #1

> volume #3 style surface color purple level 0.251

> volume #3 projectionMode 3d

> volume #3 hide

> open Output8bin/Reconstructed/Fe_Ka_reconstruction_cropped.mrc

Summary of feedback from opening
Output8bin/Reconstructed/Fe_Ka_reconstruction_cropped.mrc  
---  
note | P:\IDPs\IDP L2071 CL17\Particle 3\Grid A3\20190502 - TitanX - Particle
3 Grid A3\0008 - EDS Tomo Lone
EA\Output8bin\Reconstructed\Fe_Ka_reconstruction_cropped.mrc: invalid cell
angles 0,0,0 must be between 0 and 180.  
  
Opened Fe_Ka_reconstruction_cropped.mrc, grid size 64,64,64, pixel 0.0156,
shown at level 1.49, step 1, values float32  

> view orient cofr false

> volume voxelSize 1

> volume median #1 binSize 3

> close #1

> volume #4 style surface color red level 2.98

> volume #4 projectionMode 3d

> volume #4 show

> open Output8bin/Reconstructed/Ca_Ka_reconstruction_cropped.mrc

Summary of feedback from opening
Output8bin/Reconstructed/Ca_Ka_reconstruction_cropped.mrc  
---  
note | P:\IDPs\IDP L2071 CL17\Particle 3\Grid A3\20190502 - TitanX - Particle
3 Grid A3\0008 - EDS Tomo Lone
EA\Output8bin\Reconstructed\Ca_Ka_reconstruction_cropped.mrc: invalid cell
angles 0,0,0 must be between 0 and 180.  
  
Opened Ca_Ka_reconstruction_cropped.mrc, grid size 64,64,64, pixel 0.0156,
shown at level 0.488, step 1, values float32  

> volume voxelSize 1

> view orient cofr false

> volume median #1 binSize 3

> close #1

> volume #5 style surface color gold level 0.469

> volume #5 projectionMode 3d

> volume #5 show

> open Output8bin/Reconstructed/Mg_K_reconstruction_cropped.mrc

Summary of feedback from opening
Output8bin/Reconstructed/Mg_K_reconstruction_cropped.mrc  
---  
note | P:\IDPs\IDP L2071 CL17\Particle 3\Grid A3\20190502 - TitanX - Particle
3 Grid A3\0008 - EDS Tomo Lone
EA\Output8bin\Reconstructed\Mg_K_reconstruction_cropped.mrc: invalid cell
angles 0,0,0 must be between 0 and 180.  
  
Opened Mg_K_reconstruction_cropped.mrc, grid size 64,64,64, pixel 0.0156,
shown at level 2.98, step 1, values float32  

> volume voxelSize 1

> view orient cofr false

> volume median #1 binSize 3

> close #1

> volume #6 style surface color limegreen level 1.43

> volume #6 projectionMode 3d

> volume #6 show

> open Output8bin/Reconstructed/Ni_Ka_reconstruction_cropped.mrc

Summary of feedback from opening
Output8bin/Reconstructed/Ni_Ka_reconstruction_cropped.mrc  
---  
note | P:\IDPs\IDP L2071 CL17\Particle 3\Grid A3\20190502 - TitanX - Particle
3 Grid A3\0008 - EDS Tomo Lone
EA\Output8bin\Reconstructed\Ni_Ka_reconstruction_cropped.mrc: invalid cell
angles 0,0,0 must be between 0 and 180.  
  
Opened Ni_Ka_reconstruction_cropped.mrc, grid size 64,64,64, pixel 0.0156,
shown at level 0.285, step 1, values float32  

> volume voxelSize 1

> view orient cofr false

> volume median #1 binSize 3

> close #1

> volume #7 style surface color limegreen level 0.267

> volume #7 projectionMode 3d

> volume #7 hide

> open Output8bin/Reconstructed/O_K_reconstruction_cropped.mrc

Summary of feedback from opening
Output8bin/Reconstructed/O_K_reconstruction_cropped.mrc  
---  
note | P:\IDPs\IDP L2071 CL17\Particle 3\Grid A3\20190502 - TitanX - Particle
3 Grid A3\0008 - EDS Tomo Lone
EA\Output8bin\Reconstructed\O_K_reconstruction_cropped.mrc: invalid cell
angles 0,0,0 must be between 0 and 180.  
  
Opened O_K_reconstruction_cropped.mrc, grid size 64,64,64, pixel 0.0156, shown
at level 3.74, step 1, values float32  

> volume voxelSize 1

> view orient cofr false

> volume median #1 binSize 3

> close #1

> volume #8 style surface color royalblue

> volume #8 projectionMode 3d

> volume #8 hide

> open Output8bin/Reconstructed/Si_K_reconstruction_cropped.mrc

Summary of feedback from opening
Output8bin/Reconstructed/Si_K_reconstruction_cropped.mrc  
---  
note | P:\IDPs\IDP L2071 CL17\Particle 3\Grid A3\20190502 - TitanX - Particle
3 Grid A3\0008 - EDS Tomo Lone
EA\Output8bin\Reconstructed\Si_K_reconstruction_cropped.mrc: invalid cell
angles 0,0,0 must be between 0 and 180.  
  
Opened Si_K_reconstruction_cropped.mrc, grid size 64,64,64, pixel 0.0156,
shown at level 3.7, step 1, values float32  

> volume voxelSize 1

> view orient cofr false

> volume median #1 binSize 3

> close #1

> volume #9 style surface color royalblue

> volume #9 projectionMode 3d

> volume #9 hide

> open Output8bin/Reconstructed/S_K_reconstruction_cropped.mrc

Summary of feedback from opening
Output8bin/Reconstructed/S_K_reconstruction_cropped.mrc  
---  
note | P:\IDPs\IDP L2071 CL17\Particle 3\Grid A3\20190502 - TitanX - Particle
3 Grid A3\0008 - EDS Tomo Lone
EA\Output8bin\Reconstructed\S_K_reconstruction_cropped.mrc: invalid cell
angles 0,0,0 must be between 0 and 180.  
  
Opened S_K_reconstruction_cropped.mrc, grid size 64,64,64, pixel 0.0156, shown
at level 0.742, step 1, values float32  

> volume voxelSize 1

> view orient cofr false

> volume median #1 binSize 3

> close #1

> volume #10 style surface color royalblue level 1.21

> volume #10 projectionMode 3d

> volume #10 show

> open Output8bin/Reconstructed/Cr_Ka_reconstruction_cropped.mrc

Summary of feedback from opening
Output8bin/Reconstructed/Cr_Ka_reconstruction_cropped.mrc  
---  
note | P:\IDPs\IDP L2071 CL17\Particle 3\Grid A3\20190502 - TitanX - Particle
3 Grid A3\0008 - EDS Tomo Lone
EA\Output8bin\Reconstructed\Cr_Ka_reconstruction_cropped.mrc: invalid cell
angles 0,0,0 must be between 0 and 180.  
  
Opened Cr_Ka_reconstruction_cropped.mrc, grid size 64,64,64, pixel 0.0156,
shown at level 0.29, step 1, values float32  

> volume voxelSize 1

> view orient cofr false

> volume median #1 binSize 3

> close #1

> volume #11 style surface color royalblue

> volume #11 projectionMode 3d

> volume #11 hide

> open Output8bin/Reconstructed/HAADF_reconstruction_cropped.mrc

Summary of feedback from opening
Output8bin/Reconstructed/HAADF_reconstruction_cropped.mrc  
---  
note | P:\IDPs\IDP L2071 CL17\Particle 3\Grid A3\20190502 - TitanX - Particle
3 Grid A3\0008 - EDS Tomo Lone
EA\Output8bin\Reconstructed\HAADF_reconstruction_cropped.mrc: invalid cell
angles 0,0,0 must be between 0 and 180.  
  
Opened HAADF_reconstruction_cropped.mrc, grid size 512,512,512, pixel 0.00195,
shown at level 350, step 2, values float32  

> volume bin #1 binSize 1

> volume #12 voxelSize 0.25

> view orient cofr false

> close #1

> volume #12 style solid color white

> volume #12 projectionMode 3d

> volume #12 hide

> open Output8bin/Reconstructed/O_K_reconstruction_cropped.mrc

Summary of feedback from opening
Output8bin/Reconstructed/O_K_reconstruction_cropped.mrc  
---  
note | P:\IDPs\IDP L2071 CL17\Particle 3\Grid A3\20190502 - TitanX - Particle
3 Grid A3\0008 - EDS Tomo Lone
EA\Output8bin\Reconstructed\O_K_reconstruction_cropped.mrc: invalid cell
angles 0,0,0 must be between 0 and 180.  
  
Opened O_K_reconstruction_cropped.mrc, grid size 64,64,64, pixel 0.0156, shown
at level 3.74, step 1, values float32  

> volume #1 voxelSize 1

> view orient cofr false

> volume gaussian #1 sDev 1.0

> close #1

> volume #13 style surface color gray transparency 0.66 level 8.14

> volume #13 projectionMode 3d

> volume #13 hide

> open Output8bin/Reconstructed/Si_K_reconstruction_cropped.mrc

Summary of feedback from opening
Output8bin/Reconstructed/Si_K_reconstruction_cropped.mrc  
---  
note | P:\IDPs\IDP L2071 CL17\Particle 3\Grid A3\20190502 - TitanX - Particle
3 Grid A3\0008 - EDS Tomo Lone
EA\Output8bin\Reconstructed\Si_K_reconstruction_cropped.mrc: invalid cell
angles 0,0,0 must be between 0 and 180.  
  
Opened Si_K_reconstruction_cropped.mrc, grid size 64,64,64, pixel 0.0156,
shown at level 3.7, step 1, values float32  

> volume #1 voxelSize 1

> view orient cofr false

> volume median #1 binSize 3

> close #1

> volume #14 style surface color gray transparency 0.66 level 1.81

> volume #14 projectionMode 3d

> volume #14 show

> open Output8bin/Reconstructed/Na_K_reconstruction_cropped.mrc

Summary of feedback from opening
Output8bin/Reconstructed/Na_K_reconstruction_cropped.mrc  
---  
note | P:\IDPs\IDP L2071 CL17\Particle 3\Grid A3\20190502 - TitanX - Particle
3 Grid A3\0008 - EDS Tomo Lone
EA\Output8bin\Reconstructed\Na_K_reconstruction_cropped.mrc: invalid cell
angles 0,0,0 must be between 0 and 180.  
  
Opened Na_K_reconstruction_cropped.mrc, grid size 64,64,64, pixel 0.0156,
shown at level 0.288, step 1, values float32  

> volume voxelSize 1

> view orient cofr false

> volume median #1 binSize 3

> close #1

> volume #15 style surface color yellow level 0.317

> volume #15 projectionMode 3d

> volume #15 show

> open Output8bin/Reconstructed/K_Ka_reconstruction_cropped.mrc

Summary of feedback from opening
Output8bin/Reconstructed/K_Ka_reconstruction_cropped.mrc  
---  
note | P:\IDPs\IDP L2071 CL17\Particle 3\Grid A3\20190502 - TitanX - Particle
3 Grid A3\0008 - EDS Tomo Lone
EA\Output8bin\Reconstructed\K_Ka_reconstruction_cropped.mrc: invalid cell
angles 0,0,0 must be between 0 and 180.  
  
Opened K_Ka_reconstruction_cropped.mrc, grid size 64,64,64, pixel 0.0156,
shown at level 0.24, step 1, values float32  

> volume voxelSize 1

> view orient cofr false

> volume median #1 binSize 3

> close #1

> volume #16 style surface color gold level 0.207

> volume #16 projectionMode 3d

> volume #16 show

> view matrix camera
0.029396,-0.20687,0.97793,166.4,0.99035,-0.12655,-0.05654,24.783,0.13545,0.97015,0.20116,58.949

> lighting shadows true intensity 0.5

executed ManyElements8bin.cxc  

> toolshed show Registration

Please register the custom scheme 'cxreg' via
QWebEngineUrlScheme::registerScheme() before installing the custom scheme
handler.  

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.  
zackg@berkeley.edu is subscribed to the ChimeraX announcements list  

> help vr

> vr

started SteamVR rendering  
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 72, 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  
camera.combine_rendered_camera_views(r)  
File "C:\Program Files\ChimeraX\bin\lib\site-packages\chimerax\vive\vr.py",
line 611, in combine_rendered_camera_views  
draw_overlays([self._desktop_drawing(render.render_size())], render)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\drawing.py", line 1452, in draw_overlays  
r.set_projection_matrix(((1, 0, 0, 0), (0, 1, 0, 0), (0, 0, 1, 0),  
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 2556, 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 0x0000022151E071C8>,  
),  
cArgs = (  
3,  
1,  
False,  
<OpenGL.arrays.lists.c_float_Array_4_Array_4 object at 0x0000022151E071C8>,  
),  
cArguments = (  
3,  
1,  
False,  
<OpenGL.arrays.lists.c_float_Array_4_Array_4 object at 0x0000022151E071C8>,  
)  
)  
  




OpenGL version: 3.3.0 NVIDIA 430.86
OpenGL renderer: GeForce RTX 2060/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation

Change History (4)

comment:1 by pett, 6 years ago

Component: UnassignedVR
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionglUniformMatrix4fv error while in VR

Reported by Zack Gainsforth

comment:2 by Tom Goddard, 6 years ago

Haven't seen this error before. Are you able to reproduce it? It was trying to mirror the VR view to the desktop window and OpenGL raised an error. Is the display ChimeraX is shown on using plugged into the same graphics card as the VR headset? (Sometimes on machines with for example Intel graphics and Nvidia graphics you can end up with ChimeraX drawing on to the conventional display with a different GPU then then to the VR headset and this can cause severe performance problems.

By the way, I made a small change yesterday to improve the default VR button assignments for Oculus Touch controllers -- grip no longer recenters. But our Windows ChimeraX build failed last night, and may not work for a few days because our Microsoft signing certificate expired and we need to renew it.

Let me know if you figure out steps to reproduce this VR OpenGL error.

in reply to:  3 ; comment:3 by zackg@…, 6 years ago

Hi Goddard,

Sorry, I haven’t been able to reproduce it.  I’ve spent some more time using it with the tomograph that crashed but since then it has been happy.

I do notice that there is a VR projection on the desktop view in the box which is normally for displaying the tomograph.  That seems like normal behavior to me though — a lot of apps do that.

The monitor is on the same graphics card as the VR.  The display is a 4K monitor via DisplayPort to an NVIDIA RTX 2060, and the Oculus is plugged into an HDMI on the 2060.  I do have an integrated Intel display (i5-9600K) but nothing is plugged into it right now.  I didn’t really notice any performance issues, but since you mentioned it I tried waving my hands really fast and I could make the tip of the cone (hand) tear a little.  That’s probably not what you’re talking about though.  ;-)

I’m looking forward to the new controls!

In the meantime, I’ll just use it like normal and if I can reproduce it then I will take lots of notes and send them to you.

Zack


comment:4 by Tom Goddard, 6 years ago

Resolution: can't reproduce
Status: assignedclosed

I don't think the mirroring will make any significant performance difference in the VR unless two GPUs are involved. It is possible to turn off the mirror using the vr command option "display blank", but I don't recommend it.

I have noticed the cone tip tearing especially when using Oculus -- I don't understand it. Maybe it has something to do with the Oculus async time warp method they use to compensate for dropped frames. I am really mystified why it is just the tip of the cone that tears.

I just got an oculus rift s with the inside out tracking -- very nice compared to the older oculus rift, not dealing with 3 camera usb connections. Tracking has been solid, although I've only used it about an hour. I've had a lot of trouble with vive base-stations reflecting off windows and computers screens messing up tracking, and that is why I am trying the Rift S.

If you see the VR OpenGL error again, hit the report button. For now I'll close this as I have no lead.

Note: See TracTickets for help on using tickets.