Opened 7 years ago

Closed 7 years ago

#1246 closed enhancement (fixed)

'Update your driver' should be modal

Reported by: Greg Couch Owned by: Tom Goddard
Priority: normal Milestone: 0.7
Component: Graphics Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Linux-3.10.0-862.el7.x86_64-x86_64-with-centos-7.5.1804-Core
ChimeraX Version: 0.7 (2018-08-01)
Description
When the OpenGL version is too low, when the dialog goes away, you are still in ChimeraX, so if you continue to use ChimeraX, there are many tracebacks.  The update your graphics driver dialog should be modal, and then exit ChimeraX

Log:
Startup Messages  
---  
note | available bundle cache has not been initialized yet  
  
UCSF ChimeraX version: 0.7 (2018-08-01)  

ChimeraX requires OpenGL graphics version 3.3.  
Your computer graphics driver provided version 2.1  
Try updating your graphics driver.  

Traceback (most recent call last):  
  File "/home/gregc/chimerax-centos7-test2/lib/python3.6/site-
packages/chimerax/ui/gui.py", line 504, in customEvent  
    func(*args, **kw)  
  File "/home/gregc/chimerax-centos7-test2/lib/python3.6/site-
packages/chimerax/ui/widgets/htmlview.py", line 278, in defer  
    cxcmd(session, topic)  
  File "/home/gregc/chimerax-centos7-test2/lib/python3.6/site-
packages/chimerax/ui/widgets/htmlview.py", line 377, in cxcmd  
    ti.execute()  
  File "/home/gregc/chimerax-centos7-test2/lib/python3.6/site-
packages/chimerax/cmd_line/tool.py", line 195, in execute  
    logger.status("")  
  File "/home/gregc/chimerax-centos7-test2/lib/python3.6/site-
packages/chimerax/core/logger.py", line 430, in status  
    StatusLogger.status(self, msg, **kw)  
  File "/home/gregc/chimerax-centos7-test2/lib/python3.6/site-
packages/chimerax/core/logger.py", line 194, in status  
    if l.status(msg, color, secondary) and getattr(l, "excludes_other_logs",
True):  
  File "/home/gregc/chimerax-centos7-test2/lib/python3.6/site-
packages/chimerax/ui/gui.py", line 651, in status  
    self._status_bar.status(msg, color, secondary)  
  File "/home/gregc/chimerax-centos7-test2/lib/python3.6/site-
packages/chimerax/ui/statusbar.py", line 109, in status  
    self._create_opengl_context()  
  File "/home/gregc/chimerax-centos7-test2/lib/python3.6/site-
packages/chimerax/ui/statusbar.py", line 89, in _create_opengl_context  
    if not r.make_current():  
  File "/home/gregc/chimerax-centos7-test2/lib/python3.6/site-
packages/chimerax/core/graphics/opengl.py", line 377, in make_current  
    return self._opengl_context.make_current()  
  File "/home/gregc/chimerax-centos7-test2/lib/python3.6/site-
packages/chimerax/core/graphics/opengl.py", line 116, in make_current  
    qc = self._initialize_context()  
  File "/home/gregc/chimerax-centos7-test2/lib/python3.6/site-
packages/chimerax/core/graphics/opengl.py", line 159, in _initialize_context  
    self._check_context_version(qc.format())  
  File "/home/gregc/chimerax-centos7-test2/lib/python3.6/site-
packages/chimerax/core/graphics/opengl.py", line 196, in
_check_context_version  
    'Try updating your graphics driver.')  
chimerax.core.graphics.opengl.OpenGLVersionError: ChimeraX requires OpenGL
graphics version 3.3.  
Your computer graphics driver provided version 2.1  
Try updating your graphics driver.  
  

chimerax.core.graphics.opengl.OpenGLVersionError: ChimeraX requires OpenGL
graphics version 3.3.  
Your computer graphics driver provided version 2.1  
Try updating your graphics driver.  
  
File "/home/gregc/chimerax-centos7-test2/lib/python3.6/site-
packages/chimerax/core/graphics/opengl.py", line 196, in
_check_context_version  
'Try updating your graphics driver.')  
  
See log for complete Python traceback.  
  
If you wish to report this error, send mail to chimerax-bugs@cgl.ucsf.edu and
describe what you were doing and include a copy of the contents of the log.
Don't include any data you wish to remain private since a publicly viewable
bug report will be created.  




OpenGL version: unknown
Could not make opengl context current

Change History (2)

comment:1 by Eric Pettersen, 7 years ago

Component: UnassignedGraphics
Milestone: 0.7
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submission'Update your driver' should be modal
Type: defectenhancement

comment:2 by Tom Goddard, 7 years ago

Resolution: fixed
Status: assignedclosed

Fixed.

If opengl context has inadequate version the error is shown at startup. I've fixed the code so it does not raise opengl errors after that. User can still open models and can do not graphical operations on them, which may be useful in some cases.

Note: See TracTickets for help on using tickets.