﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	blockedby	blocking	notify_on_close	platform	project
2195	Attempt to make deleted context current	rafael.molina@…	Tom Goddard	"{{{
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

}}}
"	defect	closed	normal		Graphics		duplicate						all	ChimeraX
