Opened 6 years ago

Closed 6 years ago

#2856 closed defect (can't reproduce)

Surface cap update: 'NoneType' object has no attribute 'update_direction'

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

Description (last modified by pett)

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

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

> open
/Users/kako/Documents/_groEL/_talos_testP/modelling_stuff/FC_classification/2of2_chain_ABCJKL_removed_from_postP_108_cl001.cxs

Unable to restore session, resetting.  
  
Traceback (most recent call last):  
File
"/Applications/ChimeraX-0.9.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.  
  

[_many_ of these deleted]

Traceback (most recent call last):  
File
"/Applications/ChimeraX-0.9.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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.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: 4.1 INTEL-14.4.23
OpenGL renderer: Intel(R) Iris(TM) Plus Graphics 640
OpenGL vendor: Intel Inc.

Change History (2)

comment:1 by pett, 6 years ago

Component: UnassignedSurface
Description: modified (diff)
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionSurface cap update: 'NoneType' object has no attribute 'update_direction'

comment:2 by Tom Goddard, 6 years ago

Resolution: can't reproduce
Status: assignedclosed

Session restore appears to have put None in clip plane list in ChimeraX 0.9. Tested saving and restoring session with clip planes in current ChimeraX and it worked.

Note: See TracTickets for help on using tickets.