Opened 6 years ago

Closed 6 years ago

#2731 closed defect (fixed)

Error in Basic Actions restoring session: invalid atom specifier

Reported by: daniel.palma.i@… Owned by: Conrad Huang
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:        Linux-5.4.6-2-MANJARO-x86_64-with-arch-Manjaro-Linux
ChimeraX Version: 0.91 (2019-12-23)
Description
Trying to open a ChimeraX Session. This session had multiple named selections, this apparently is related to the bug.

Log:
UCSF ChimeraX version: 0.91 (2019-12-23)  
© 2016-2019 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  
Thank you for registering your copy of ChimeraX. By providing the information
requested you will be helping us document the impact this software is having
in the scientific community. The information you supplied will only be used
for reporting summary usage statistics; no individual data will be released.  
daniel.palma.i@ug.uchile.cl is subscribed to the ChimeraX announcements list  

> open /home/danpal/Unidad/08_nudos_genomica_test/images/1oy5A_3ky7A_bak.cxs

Unable to restore session, resetting.  
  
Traceback (most recent call last):  
File "/home/danpal/programs/chimerax-0.91/lib/python3.7/site-
packages/chimerax/core/commands/atomspec.py", line 153, in _parse_unquoted  
ast = parser.parse(text, "atom_specifier", semantics=semantics)  
File "/home/danpal/programs/chimerax-0.91/lib/python3.7/site-
packages/grako/contexts.py", line 206, in parse  
result = rule()  
File "/home/danpal/programs/chimerax-0.91/lib/python3.7/site-
packages/grako/contexts.py", line 59, in wrapper  
return self._call(rule, name, params, kwparams)  
File "/home/danpal/programs/chimerax-0.91/lib/python3.7/site-
packages/grako/contexts.py", line 458, in _call  
node, newpos, newstate = self._invoke_rule(rule, name, params, kwparams)  
File "/home/danpal/programs/chimerax-0.91/lib/python3.7/site-
packages/grako/contexts.py", line 497, in _invoke_rule  
rule(self)  
File "/home/danpal/programs/chimerax-0.91/lib/python3.7/site-
packages/chimerax/core/commands/_atomspec.py", line 105, in _atom_specifier_  
self._error('no available options')  
File "/home/danpal/programs/chimerax-0.91/lib/python3.7/site-
packages/grako/contexts.py", line 433, in _error  
item  
grako.exceptions.FailedParse: (1:1) no available options :  
loop2a|loop2b  
^  
atom_specifier  
  
During handling of the above exception, another exception occurred:  
  
Traceback (most recent call last):  
File "/home/danpal/programs/chimerax-0.91/lib/python3.7/site-
packages/chimerax/basic_actions/cmd.py", line 24, in name  
ast, used, unused = AtomSpecArg.parse(text, session)  
File "/home/danpal/programs/chimerax-0.91/lib/python3.7/site-
packages/chimerax/core/commands/atomspec.py", line 97, in parse  
return cls._parse_unquoted(text, session)  
File "/home/danpal/programs/chimerax-0.91/lib/python3.7/site-
packages/chimerax/core/commands/atomspec.py", line 162, in _parse_unquoted  
raise AnnotationError(message, offset=e.pos)  
chimerax.core.commands.cli.AnnotationError: invalid atom specifier  
  
During handling of the above exception, another exception occurred:  
  
Traceback (most recent call last):  
File "/home/danpal/programs/chimerax-0.91/lib/python3.7/site-
packages/chimerax/core/session.py", line 653, in restore  
obj = sm.restore_snapshot(self, data)  
File "/home/danpal/programs/chimerax-0.91/lib/python3.7/site-
packages/chimerax/basic_actions/statemgr.py", line 63, in restore_snapshot  
cmd.name(session, name, value)  
File "/home/danpal/programs/chimerax-0.91/lib/python3.7/site-
packages/chimerax/basic_actions/cmd.py", line 28, in name  
raise UserError("\"%s\": %s" % (text, str(e)))  
chimerax.core.errors.UserError: "loop2a|loop2b": invalid atom specifier  
  
opened ChimeraX session  




OpenGL version: 4.5 (Core Profile) Mesa 19.3.1
OpenGL renderer: AMD RAVEN (DRM 3.35.0, 5.4.6-2-MANJARO, LLVM 9.0.0)
OpenGL vendor: X.Org

Attachments (1)

1oy5A_3ky7A_bak.cxs (189.3 KB ) - added by daniel.palma.i@… 6 years ago.
Added by email2trac

Download all attachments as: .zip

Change History (6)

comment:1 by Eric Pettersen, 6 years ago

Cc: Greg Couch added
Component: UnassignedSessions
Owner: set to Conrad Huang
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionError in Basic Actions restoring session: invalid atom specifier

Reported by Daniel Palma Igor

comment:2 by Conrad Huang, 6 years ago

Can you please send me the session that is causing the problem? Thanks.

in reply to:  3 ; comment:3 by daniel.palma.i@…, 6 years ago

Of course

On Sun, 12 Jan 2020 at 19:09, ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu>
wrote:

1oy5A_3ky7A_bak.cxs

by daniel.palma.i@…, 6 years ago

Attachment: 1oy5A_3ky7A_bak.cxs added

Added by email2trac

comment:4 by Conrad Huang, 6 years ago

Status: assignedaccepted

Just an update:

The problem is that basic_actions is restoring the aliases in random order, and was restoring "loop2" before "loop2a" and "loop2b". The right solution is to order the aliases, but the details still need to be worked out.

comment:5 by Conrad Huang, 6 years ago

Resolution: fixed
Status: acceptedclosed

Fixed in 8c604053a. Instead of ordering the name definitions when restoring sessions, just assume that they are valid (since they were successfully defined previously) and create the name without error checks.

Fix should be in the daily build tomorrow (1/14/2020)

Note: See TracTickets for help on using tickets.