Opened 6 years ago

Closed 6 years ago

#2023 closed defect (duplicate)

Unexpected None in data given to BasicActions.restore_snapshot()

Reported by: nicholas.sofos@… Owned by: Greg Couch
Priority: normal Milestone:
Component: Sessions Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

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

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

> open
/Users/hqj603/Desktop/Postdoc_Montoya_lab/CmrB_ChimeraX_sessions/apo_Cmr7_overview_040619.cxs

Unable to restore session, resetting.  
  
Traceback (most recent call last):  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/session.py", line 628, in restore  
obj = sm.restore_snapshot(self, data)  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/basic_actions/statemgr.py", line 65, in restore_snapshot  
cmd.name_frozen(session, name, Objects(**value))  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/objects.py", line 53, in __init__  
{ m:m.triggers.add_handler("deleted", self._model_deleted_cb) for m in
self._models })  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/objects.py", line 53, in <dictcomp>  
{ m:m.triggers.add_handler("deleted", self._model_deleted_cb) for m in
self._models })  
AttributeError: 'NoneType' object has no attribute 'triggers'  
  
Error processing trigger "deleted": 'Objects' object has no attribute
'_handlers':  
AttributeError: 'Objects' object has no attribute '_handlers'  
  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/objects.py", line 73, in _model_deleted_cb  
del self._handlers[model]  
  
See log for complete Python traceback.  
  
Summary of feedback from opening
/Users/hqj603/Desktop/Postdoc_Montoya_lab/CmrB_ChimeraX_sessions/apo_Cmr7_overview_040619.cxs  
---  
note | Traceback (most recent call last):  
  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/session.py", line 628, in restore  
  
obj = sm.restore_snapshot(self, data)  
  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/basic_actions/statemgr.py", line 65, in restore_snapshot  
  
cmd.name_frozen(session, name, Objects(**value))  
  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/objects.py", line 53, in __init__  
  
{ m:m.triggers.add_handler("deleted", self._model_deleted_cb) for m in
self._models })  
  
File
"/Applications/ChimeraX_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/objects.py", line 53, in <dictcomp>  
  
{ m:m.triggers.add_handler("deleted", self._model_deleted_cb) for m in
self._models })  
  
AttributeError: 'NoneType' object has no attribute 'triggers'  
  
  
  
During handling of the above exception, another exception occurred:  
  
  
  
Traceback (most recent call last):  
  
File
"/Applications/ChimeraX_Daily.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_Daily.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/objects.py", line 73, in _model_deleted_cb  
  
del self._handlers[model]  
  
AttributeError: 'Objects' object has no attribute '_handlers'  
  
  
  
  
opened ChimeraX session  




OpenGL version: 4.1 INTEL-12.9.22
OpenGL renderer: Intel Iris Pro OpenGL Engine
OpenGL vendor: Intel Inc.

Change History (2)

comment:1 by pett, 6 years ago

Component: UnassignedSessions
Owner: set to Greg Couch
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionUnexpected None in data given to BasicActions.restore_snapshot()

comment:2 by pett, 6 years ago

Resolution: duplicate
Status: assignedclosed

Hi Nicholas,

Unfortunately there was an error when this session was saved, which was probably noted in the log at the time but didn't prevent the session file from being written. The file is unusable. This bad save behavior was remedied about a month ago and unrestorable session files will no longer be written by current releases. That doesn't help you though. Very sorry but there isn't a lot we can do about this particular session.

--Eric

Note: See TracTickets for help on using tickets.