Opened 6 years ago

Closed 6 years ago

#1947 closed defect (duplicate)

Unexpected None data given to NamedView.restore_snapshot()

Reported by: shiwei.zhu@… 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:        Linux-4.4.0-112-generic-x86_64-with-debian-stretch-sid
ChimeraX Version: 0.8 (2018-12-17)
Description
(Describe the actions that caused this problem to occur here)

Log:
Startup Messages  
---  
note | Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax/lib/python3.6/site-  
packages/chimerax/core/toolshed/__init__.py", line 338, in __init__  
self.init_available_from_cache(logger)  
File "/usr/lib/ucsf-chimerax/lib/python3.6/site-  
packages/chimerax/core/toolshed/__init__.py", line 445, in  
init_available_from_cache  
abc.load_from_cache()  
File "/usr/lib/ucsf-chimerax/lib/python3.6/site-  
packages/chimerax/core/toolshed/available.py", line 61, in load_from_cache  
b = _build_bundle(d)  
File "/usr/lib/ucsf-chimerax/lib/python3.6/site-  
packages/chimerax/core/toolshed/available.py", line 242, in _build_bundle  
keywords = _extract_extra_keywords(keywords)  
File "/usr/lib/ucsf-chimerax/lib/python3.6/site-  
packages/chimerax/core/toolshed/installed.py", line 270, in  
_extract_extra_keywords  
all_kwds = [k.strip() for k in kwds.split(',')]  
AttributeError: 'list' object has no attribute 'split'  
  
UCSF ChimeraX version: 0.8 (2018-12-17)  
How to cite UCSF ChimeraX  

> open Shiwei_0515_FOMC_final2_allcommands.cxs

Unable to restore session, resetting.  
  
Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax/lib/python3.6/site-
packages/chimerax/core/session.py", line 593, in restore  
obj = sm.restore_snapshot(self, data)  
File "/usr/lib/ucsf-chimerax/lib/python3.6/site-
packages/chimerax/std_commands/view.py", line 214, in restore_snapshot  
for k,v in data['view attrs'].items():  
TypeError: 'NoneType' object is not subscriptable  
  
opened ChimeraX session  
Traceback (most recent call last):  
File "/usr/lib/ucsf-chimerax/lib/python3.6/site-
packages/chimerax/core/triggerset.py", line 130, in invoke  
return self._func(self._name, data)  
File "/usr/lib/ucsf-chimerax/lib/python3.6/site-
packages/chimerax/map/volume.py", line 3370, in _update_drawings  
if v.display:  
File "/usr/lib/ucsf-chimerax/lib/python3.6/site-
packages/chimerax/core/graphics/drawing.py", line 311, in get_display  
return self._any_displayed_positions and len(self._positions) > 0  
TypeError: object of type 'NoneType' has no len()  
  
Error processing trigger "graphics update": object of type 'NoneType' has no
len():  
TypeError: object of type 'NoneType' has no len()  
  
File "/usr/lib/ucsf-chimerax/lib/python3.6/site-
packages/chimerax/core/graphics/drawing.py", line 311, in get_display  
return self._any_displayed_positions and len(self._positions) > 0  
  
See log for complete Python traceback.  
  




OpenGL version: 3.3.0 NVIDIA 390.87
OpenGL renderer: Quadro K2200/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation

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 data given to NamedView.restore_snapshot()

Hi Shiwei,

Unfortunately there was an error when the session was _saved_, which prevents it from restoring correctly. There isn't a lot you can do. We have changed the code to now report the error as an error (rather than a warning) when you attempt to save the session. This helps in two ways: 1) you can report the error as is happens, so we have some chance to actually fix the cause, and 2) you know you will have to do something else to save your work (maybe save images or files or the log contents; also you might be able to close error-producing tools and actually save a session).
We intend to improve the code further to allow for trying to save a working session that saves "as much as possible" despite errors, but that hasn't happened yet.

--Eric

Eric Pettersen
UCSF Computer Graphics Lab

comment:2 by pett, 6 years ago

Resolution: duplicate
Status: assignedclosed

Duplicate of #1660

Note: See TracTickets for help on using tickets.