Opened 6 years ago

Closed 6 years ago

#2911 closed defect (fixed)

Problem restoring clip planes from session

Reported by: chimerax-bug-report@… Owned by: Tom Goddard
Priority: normal Milestone:
Component: Sessions Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description (last modified by Eric Pettersen)

The following bug report has been submitted:
Platform:        Darwin-15.6.0-x86_64-i386-64bit
ChimeraX Version: 0.9 (2019-05-23)
Description
(Describe the actions that caused this problem to occur here)

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/lp212/Desktop/Dropbox (Cambridge University)/CMG-ssDNA-ATPgS
paper/FIGURES/Fig1/CMG_overall_views.cxs"

Unable to restore session, resetting.  
  
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/session.py", line 596, in restore  
obj = sm.restore_snapshot(self, 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/graphics/gsession.py", line 48, in restore_snapshot  
ViewState.set_state_from_snapshot(v, session, 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/graphics/gsession.py", line 65, in
set_state_from_snapshot  
v.clip_planes.replace_planes(data['clip_planes'])  
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 953, in replace_planes  
self.changed = True  
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 964, in _set_changed  
p._changed = changed  
AttributeError: 'NoneType' object has no attribute '_changed'  
  
opened ChimeraX session  
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 128, in _redraw_timer_callback  
if not self.draw_new_frame():  
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 61, in draw_new_frame  
surface.update_clip_caps(view)  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/surface/cap.py", line 20, in update_clip_caps  
p.update_direction(cpos)  
AttributeError: 'NoneType' object has no attribute 'update_direction'  
  
AttributeError: 'NoneType' object has no attribute 'update_direction'  
  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/surface/cap.py", line 20, in update_clip_caps  
p.update_direction(cpos)  
  
See log for complete Python traceback.  
  
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 128, in _redraw_timer_callback  
if not self.draw_new_frame():  
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 61, in draw_new_frame  
surface.update_clip_caps(view)  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/surface/cap.py", line 20, in update_clip_caps  
p.update_direction(cpos)  
AttributeError: 'NoneType' object has no attribute 'update_direction'  
  
AttributeError: 'NoneType' object has no attribute 'update_direction'  
  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/surface/cap.py", line 20, in update_clip_caps  
p.update_direction(cpos)  
  
See log for complete Python traceback.  
  

[deleted a _lot_ of these]

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 128, in _redraw_timer_callback  
if not self.draw_new_frame():  
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 61, in draw_new_frame  
surface.update_clip_caps(view)  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/surface/cap.py", line 20, in update_clip_caps  
p.update_direction(cpos)  
AttributeError: 'NoneType' object has no attribute 'update_direction'  
  
AttributeError: 'NoneType' object has no attribute 'update_direction'  
  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/surface/cap.py", line 20, in update_clip_caps  
p.update_direction(cpos)  
  
See log for complete Python traceback.  
  
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 128, in _redraw_timer_callback  
if not self.draw_new_frame():  
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 61, in draw_new_frame  
surface.update_clip_caps(view)  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/surface/cap.py", line 20, in update_clip_caps  
p.update_direction(cpos)  
AttributeError: 'NoneType' object has no attribute 'update_direction'  
  
AttributeError: 'NoneType' object has no attribute 'update_direction'  
  
File
"/Applications/ChimeraX-0.9-rc-2019.05.23.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/surface/cap.py", line 20, in update_clip_caps  
p.update_direction(cpos)  
  
See log for complete Python traceback.  
  




OpenGL version: 3.3 ATI-10.0.52
OpenGL renderer: ATI Radeon HD 4870 OpenGL Engine
OpenGL vendor: ATI Technologies Inc.

Change History (2)

comment:1 by Eric Pettersen, 6 years ago

Component: UnassignedSessions
Description: modified (diff)
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionProblem restoring clip planes from session

comment:2 by Tom Goddard, 6 years ago

Resolution: fixed
Status: assignedclosed

Fixed.

Very old ChimeraX (May 2019) could apparently restore sessions with None values in clip plane list.

Note: See TracTickets for help on using tickets.