Opened 6 years ago

Closed 6 years ago

#2195 closed defect (duplicate)

Attempt to make deleted context current

Reported by: rafael.molina@… 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:        Darwin-17.7.0-x86_64-i386-64bit
ChimeraX Version: 0.9 (2019-05-23)
Description
Just trying to recover the session previously saved it cannot open and crash giving this error message:

Error processing trigger "frame drawn": wrapped C/C++ object of type QOpenGLContext has been deleted:
RuntimeError: wrapped C/C++ object of type QOpenGLContext has been deleted

File "/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/chimerax/core/graphics/opengl.py", line 134, in make_current
if not qc.makeCurrent(w):

See log for complete Python traceback.



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

> open "/Users/rafaelmolina 1/Desktop/Csx1.cxs"

opened ChimeraX session  
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
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/updateloop.py", line 72, in draw_new_frame  
view.draw(check_for_changes = False)  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/graphics/view.py", line 137, in draw  
if not self._use_opengl():  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/graphics/view.py", line 102, in _use_opengl  
if not self._render.make_current():  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/graphics/opengl.py", line 417, in make_current  
return self._opengl_context.make_current()  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/graphics/opengl.py", line 134, in make_current  
if not qc.makeCurrent(w):  
RuntimeError: wrapped C/C++ object of type QOpenGLContext has been deleted  
  
Traceback (most recent call last):  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/triggerset.py", line 130, in invoke  
return self._func(self._name, data)  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/filehistory.py", line 69, in <lambda>  
t.add_handler('frame drawn', lambda *args, s=self: s.capture_thumbnails_cb())  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/filehistory.py", line 81, in capture_thumbnails_cb  
fs.capture_image(models, ses)  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/filehistory.py", line 152, in capture_image  
self.image = models_image(session, models, size)  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/filehistory.py", line 205, in models_image  
image = v.image(width, height)  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/graphics/view.py", line 396, in image  
if not self._use_opengl():  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/graphics/view.py", line 102, in _use_opengl  
if not self._render.make_current():  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/graphics/opengl.py", line 417, in make_current  
return self._opengl_context.make_current()  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/graphics/opengl.py", line 134, in make_current  
if not qc.makeCurrent(w):  
RuntimeError: wrapped C/C++ object of type QOpenGLContext has been deleted  
  
Error processing trigger "frame drawn": wrapped C/C++ object of type
QOpenGLContext has been deleted:  
RuntimeError: wrapped C/C++ object of type QOpenGLContext has been deleted  
  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/graphics/opengl.py", line 134, in make_current  
if not qc.makeCurrent(w):  
  
See log for complete Python traceback.  
  




OpenGL version: unknown
Could not make opengl context current

Change History (3)

comment:1 by pett, 6 years ago

Component: UnassignedGraphics
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionAttempt to make deleted context current

comment:2 by Tom Goddard, 6 years ago

Please try opening with a current ChimeraX daily build. Yours is from May 2019. Let us know if that fixes the problem.

It is not clear how the OpenGL context is being deleted that causes the error, but first we need to see if the bug was already fixed in newer ChimeraX.

comment:3 by Tom Goddard, 6 years ago

Resolution: duplicate
Status: assignedclosed

Duplicate of #2226. Cannot reproduce. Would need the session file that causes the error to make progress.

Note: See TracTickets for help on using tickets.