Opened 6 years ago

Last modified 6 years ago

#2108 closed defect

ChimeraX bug report submission — at Initial Version

Reported by: goddard@… Owned by:
Priority: normal Milestone:
Component: Sessions Version:
Keywords: Cc: chimera-programmers
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-24)
Description
The following traceback was created by my adding code that raised an exception.  It is not an error.  But it reveals that Session.__setattr__() is adding ses._last_label_view which is a Place instance to the list of state managers.  "Place" is not a StateManager and also this attribute is private (leading underscore) so it should not be saved in sessions.

This is the cause of bug #2106 where Place.reset_state() is called on an immutable Place instance.

Probably Session.__setattr__() should only recognize StateManager values that are not private.


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

> open 3cl0 format mmCIF fromDatabase pdb

3cl0 title:  
N1 Neuraminidase H274Y + oseltamivir [more info...]  
  
Chain information for 3cl0 #1  
---  
Chain | Description  
A | Neuraminidase  
  
Non-standard residues in 3cl0 #1  
---  
CA — calcium ion  
G39 —
(3R,4R,5S)-4-(acetylamino)-5-amino-3-(pentan-3-yloxy)cyclohex-1-ene-1-carboxylic
acid (Oseltamivir carboxylate)  
  
3cl0 mmCIF Assemblies  
---  
1| author_and_software_defined_assembly  
  
  

> select /A:391

6 atoms, 5 bonds, 1 model selected  

Expected a keyword  

> usage label

label [objects] [objectType] [text text] [offset offset] [color color]
[background background] [size size] [height height] [font a text string]
[onTop true or false]  
— Create atom labels  
objects: an objects specifier or nothing  
objectType: one of atoms, bonds, pseudobonds, or residues  
text: default or a text string  
offset: default or some numbers  
color: default or a color  
background: none or a color  
size: default or an integer  
height: fixed or a number

label delete [objects] [objectType]  
— Delete atom labels  
objects: an objects specifier or nothing  
objectType: one of atoms, bonds, pseudobonds, or residues

label listfonts  
— List available fonts

label orient [orient]  
— Set label orientation updating  
orient: a number  

> label sel text boom

> label orient 45

Traceback (most recent call last):  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.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
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/label/label3d.py", line 395, in _update_graphics_if_needed  
ses._last_label_view = cpos  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/session.py", line 453, in __setattr__  
self.add_state_manager(name, value)  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/session.py", line 466, in add_state_manager  
raise RuntimeError('Got last_label_view')  
RuntimeError: Got last_label_view  
  
Error processing trigger "graphics update": Got last_label_view:  
RuntimeError: Got last_label_view  
  
File
"/Users/goddard/ucsf/chimerax/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/session.py", line 466, in add_state_manager  
raise RuntimeError('Got last_label_view')  
  
See log for complete Python traceback.  
  




OpenGL version: 4.1 ATI-2.9.26
OpenGL renderer: AMD Radeon Pro 580 OpenGL Engine
OpenGL vendor: ATI Technologies Inc.

Change History (0)

Note: See TracTickets for help on using tickets.