Opened 6 years ago

Closed 6 years ago

#2106 closed defect (fixed)

core.geometry.PlaceState lacks reset_state method

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

Description

The following bug report has been submitted:
Platform:        Windows-10-10.0.17763
ChimeraX Version: 0.91 (2019-06-19)
Description
Restoring flu_antibody.cxs after flu_drugs.cxs generates this error.

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

> open "C:\\\Users\\\goddard\\\Desktop\\\flu_drugs.cxs"

opened ChimeraX session  

> open C:/Users/goddard/Desktop/flu_antibody.cxs

Unable to restore session, resetting.  
  
Traceback (most recent call last):  
File "C:\Program Files\ChimeraX-June-19-2019\bin\lib\site-
packages\chimerax\core\session.py", line 600, in restore  
self.reset()  
File "C:\Program Files\ChimeraX-June-19-2019\bin\lib\site-
packages\chimerax\core\session.py", line 442, in reset  
sm.reset_state(container, self)  
AttributeError: type object 'PlaceState' has no attribute 'reset_state'  
  
Traceback (most recent call last):  
File "C:\Program Files\ChimeraX-June-19-2019\bin\lib\site-
packages\chimerax\core\session.py", line 600, in restore  
self.reset()  
File "C:\Program Files\ChimeraX-June-19-2019\bin\lib\site-
packages\chimerax\core\session.py", line 442, in reset  
sm.reset_state(container, self)  
AttributeError: type object 'PlaceState' has no attribute 'reset_state'  
  
During handling of the above exception, another exception occurred:  
  
Traceback (most recent call last):  
File "C:\Program Files\ChimeraX-June-19-2019\bin\lib\site-
packages\chimerax\ui\gui.py", line 582, in _qt_safe  
run(session, "open " + " ".join([quote_if_necessary(p) for p in paths]))  
File "C:\Program Files\ChimeraX-June-19-2019\bin\lib\site-
packages\chimerax\core\commands\run.py", line 31, in run  
results = command.run(text, log=log)  
File "C:\Program Files\ChimeraX-June-19-2019\bin\lib\site-
packages\chimerax\core\commands\cli.py", line 2641, in run  
result = ci.function(session, **kw_args)  
File "C:\Program Files\ChimeraX-June-19-2019\bin\lib\site-
packages\chimerax\core\commands\open.py", line 64, in open  
path_models = session.models.open(paths, format=format, name=name, **kw)  
File "C:\Program Files\ChimeraX-June-19-2019\bin\lib\site-
packages\chimerax\core\models.py", line 611, in open  
session, filenames, format=format, name=name, **kw)  
File "C:\Program Files\ChimeraX-June-19-2019\bin\lib\site-
packages\chimerax\core\io.py", line 477, in open_multiple_data  
models, status = open_data(session, fspec, format=format, name=name, **kw)  
File "C:\Program Files\ChimeraX-June-19-2019\bin\lib\site-
packages\chimerax\core\io.py", line 433, in open_data  
models, status = open_func(*args, **kw)  
File "C:\Program Files\ChimeraX-June-19-2019\bin\lib\site-
packages\chimerax\core\session.py", line 854, in open  
session.restore(stream, path=path, resize_window=resize_window)  
File "C:\Program Files\ChimeraX-June-19-2019\bin\lib\site-
packages\chimerax\core\session.py", line 637, in restore  
self.reset()  
File "C:\Program Files\ChimeraX-June-19-2019\bin\lib\site-
packages\chimerax\core\session.py", line 442, in reset  
sm.reset_state(container, self)  
AttributeError: type object 'PlaceState' has no attribute 'reset_state'  
  
AttributeError: type object 'PlaceState' has no attribute 'reset_state'  
  
File "C:\Program Files\ChimeraX-June-19-2019\bin\lib\site-
packages\chimerax\core\session.py", line 442, in reset  
sm.reset_state(container, self)  
  
See log for complete Python traceback.  
  




OpenGL version: 3.3.0 NVIDIA 430.39
OpenGL renderer: Quadro P6000/PCIe/SSE2
OpenGL vendor: NVIDIA Corporation
File attachment: flu_antibody.cxs

flu_antibody.cxs

Attachments (2)

flu_antibody.cxs (435.3 KB ) - added by goddard@… 6 years ago.
Added by email2trac
flu_drugs.cxs (12.6 MB ) - added by Tom Goddard 6 years ago.

Change History (6)

by goddard@…, 6 years ago

Attachment: flu_antibody.cxs added

Added by email2trac

by Tom Goddard, 6 years ago

Attachment: flu_drugs.cxs added

comment:1 by pett, 6 years ago

Cc: Greg Couch added
Component: UnassignedSessions
Owner: set to Tom Goddard
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissioncore.geometry.PlaceState lacks reset_state method

comment:2 by Tom Goddard, 6 years ago

Cause of this bug is #2108 where 3d label code "label orient 45" remembers the last view direction as a Session attribute and that incorrectly is added as a state manager and saved in sessions.

Fixing #2108 will fix this error.

comment:3 by Greg Couch, 6 years ago

Blocked By: 2108

comment:4 by Tom Goddard, 6 years ago

Blocked By: 2108
Resolution: fixed
Status: assignedclosed

Fixed by partial solution of #2108.

Note: See TracTickets for help on using tickets.