Opened 7 years ago
Closed 7 years ago
#1271 closed defect (fixed)
regression in daily build - can't open molecule in nogui mode
Reported by: | Greg Couch | Owned by: | Tom Goddard |
---|---|---|---|
Priority: | blocker | Milestone: | |
Component: | Graphics | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
UCSF ChimeraX version: 0.8 (2018-08-25) cmd> open 1gcn Executing: open 1gcn Opening mmCIF 1gcn _1gcn_ title: **X-ray analysis of glucagon and its relationship to receptor binding** [[more info...;]](cxcmd:log metadata #1) Chain information for 1gcn #1 --- Chain | Description [A](cxcmd:sequence chain #1/A "Show sequence") | glucagon Unexpected exception, save your work and exit: Traceback (most recent call last): File "/home/chimera/chimerax_daily/lib/python3.6/site-packages/chimerax/core/nogui.py", line 211, in execute self._cmd.run(text) File "/home/chimera/chimerax_daily/lib/python3.6/site-packages/chimerax/core/commands/cli.py", line 2561, in run result = ci.function(session, **kw_args) File "/home/chimera/chimerax_daily/lib/python3.6/site-packages/chimerax/core/commands/open.py", line 41, in open from_database=from_database, ignore_cache=ignore_cache, **kw)) File "/home/chimera/chimerax_daily/lib/python3.6/site-packages/chimerax/core/commands/open.py", line 85, in open session.models.add(models) File "/home/chimera/chimerax_daily/lib/python3.6/site-packages/chimerax/core/models.py", line 431, in add v.initial_camera_view() File "/home/chimera/chimerax_daily/lib/python3.6/site-packages/chimerax/core/graphics/view.py", line 549, in initial_camera_view b = self.drawing_bounds() File "/home/chimera/chimerax_daily/lib/python3.6/site-packages/chimerax/core/graphics/view.py", line 518, in drawing_bounds self.check_for_drawing_change() File "/home/chimera/chimerax_daily/lib/python3.6/site-packages/chimerax/core/graphics/view.py", line 226, in check_for_drawing_change if trig and self._use_opengl(): File "/home/chimera/chimerax_daily/lib/python3.6/site-packages/chimerax/core/graphics/view.py", line 99, in _use_opengl raise RuntimeError("running without graphics") RuntimeError: running without graphics
Note:
See TracTickets
for help on using tickets.
Fixed.
I added code a few days ago to make the opengl context current during the "graphics update" trigger so 3d labels could delete their textures. Previously it was assumed opengl context was not current during this trigger. Trying to make it current broke in nogui mode causing this error. Seemed better to revert to previous behavior since no other code needed the context to be current.