Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#1724 closed defect (duplicate)

camera stereo: access violation in draw_elements

Reported by: hubert.santuz@… Owned by: Tom Goddard
Priority: normal Milestone:
Component: Graphics Version: 0.8
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Windows-7-6.1.7601-SP1
ChimeraX Version: 0.8 (2018-12-17)
Description
Hi,
This is the error i get when I try the stereoscopic mode on my computer ("camera stereo").
Any idea of the bug ?
Thanks.

Log:
Startup Messages  
---  
warning | 'clip' is a prefix of an existing command 'clipper'  
note | Traceback (most recent call last):  
File "C:\Program Files\ChimeraX\bin\lib\site-  
packages\chimerax\core\toolshed\\\\__init__.py", line 338, in __init__  
self.init_available_from_cache(logger)  
File "C:\Program Files\ChimeraX\bin\lib\site-  
packages\chimerax\core\toolshed\\\\__init__.py", line 445, in  
init_available_from_cache  
abc.load_from_cache()  
File "C:\Program Files\ChimeraX\bin\lib\site-  
packages\chimerax\core\toolshed\available.py", line 61, in load_from_cache  
b = _build_bundle(d)  
File "C:\Program Files\ChimeraX\bin\lib\site-  
packages\chimerax\core\toolshed\available.py", line 242, in _build_bundle  
keywords = _extract_extra_keywords(keywords)  
File "C:\Program Files\ChimeraX\bin\lib\site-  
packages\chimerax\core\toolshed\installed.py", line 270, in  
_extract_extra_keywords  
all_kwds = [k.strip() for k in kwds.split(',')]  
AttributeError: 'list' object has no attribute 'split'  
  
UCSF ChimeraX version: 0.8 (2018-12-17)  
How to cite UCSF ChimeraX  

> open D:\4hfi.pdb

4hfi.pdb title:  
The glic pentameric ligand-gated ion channel At 2.4 A resolution [more
info...]  
  
Chain information for 4hfi.pdb #1  
---  
Chain | Description  
A B C D E | proton-gated ion channel  
  

> camera stereo

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 159, in draw  
self._draw_scene(camera, drawings)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\view.py", line 188, in _draw_scene  
shadow, multishadow = self._compute_shadowmaps(opaque_drawings +
transparent_drawings, camera)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\view.py", line 515, in _compute_shadowmaps  
shadow_enabled = r.shadow.use_shadow_map(camera, drawings,
self._shadow_bounds)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\opengl.py", line 1202, in use_shadow_map  
draw_depth(r, sdrawings, opaque_only = not
r.material.transparent_cast_shadows)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\drawing.py", line 1379, in draw_depth  
draw_opaque(r, drawings)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\drawing.py", line 1360, in draw_opaque  
_draw_multiple(drawings, renderer, Drawing.OPAQUE_DRAW_PASS)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\drawing.py", line 1371, in _draw_multiple  
d.draw(renderer, draw_pass)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\drawing.py", line 688, in draw  
self.draw_self(renderer, draw_pass)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\drawing.py", line 695, in draw_self  
self._draw_geometry(renderer, opaque_only = any_transp)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\drawing.py", line 753, in _draw_geometry  
ds.draw(self.display_style)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\drawing.py", line 1541, in draw  
eb.draw_elements(etype, ni)  
File "C:\Program Files\ChimeraX\bin\lib\site-
packages\chimerax\core\graphics\opengl.py", line 2249, in draw_elements  
GL.glDrawElementsInstanced(element_type, ne, GL.GL_UNSIGNED_INT, eo, ninst)  
File "zr\accelerate\src\latebind.pyx", line 32, in
OpenGL_accelerate.latebind.LateBind.__call__ (src\latebind.c:1015)  
File "zr\accelerate\src\wrapper.pyx", line 311, in
OpenGL_accelerate.wrapper.Wrapper.__call__ (src\wrapper.c:6777)  
OSError: exception: access violation reading 0x0000000000000000  
  




OpenGL version: 3.3.0 NVIDIA 376.84
OpenGL renderer: Quadro M4000/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation

Change History (4)

comment:1 by Eric Pettersen, 7 years ago

Component: UnassignedGraphics
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissioncamera stereo: access violation in draw_elements
Version: 0.8

comment:2 by Tom Goddard, 7 years ago

Resolution: duplicate
Status: assignedclosed

The stereo camera mode was not working about a month ago and I put in fixes for it that are in the ChimeraX daily build. You can try the daily build. We don't support Windows 7, only Windows 10, so that is another possible issue.

in reply to:  3 ; comment:3 by hubert.santuz@…, 7 years ago

Hi,

Thanks for the report, I'll look into the daily build.
In the meantime, I realized it's a bit more complicated. The stereo is 
working only if I activate it before any structure (just after the 
startup basically).
Any camera command (camera mono/stereo) after a structure is loaded is 
failing.

Hubert

Le 22/02/2019 à 19:24, ChimeraX a écrit :

in reply to:  4 ; comment:4 by goddard@…, 7 years ago

Use the daily build.  The errors you describe were fixed more than a month ago.
Note: See TracTickets for help on using tickets.