Opened 7 years ago

Closed 6 years ago

#1844 closed defect (fixed)

Toolshed cache KeyError crashes startup from app icon

Reported by: nmforino@… Owned by: Conrad Huang
Priority: normal Milestone:
Component: Tool Shed Version:
Keywords: Cc: Tristan Croll
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

Hello,

The program has been working without a hitch for some time, but now crashes
immediately after startup. To my knowledge I haven't changed made any
changes to the program itself that would cause a problem. A
uninstall/reinstall of the stable 0.8 build hasn't fixed the issue, and I'm
currently running MacOS 10.13.6 on my system. Any help would be appreciated.

Best,
Nick
-- 
Nicholas Forino
Graduate Student
Stone Research Group
Molecular, Cellular, and Developmental Biology
University of California Santa Cruz

Change History (6)

comment:1 by Eric Pettersen, 7 years ago

Cc: Tom Goddard Greg Couch added
Component: UnassignedPlatform
Owner: set to Eric Pettersen
Platform: all
Project: ChimeraX
Status: newaccepted

Hi Nick,

Can you try running ChimeraX from the Unix command line and see if that provides any more info? In case you are unfamiliar with it, here are the steps:

1) Open Terminal.app in /Applications/Utilities
2) Type "cd " (note the space) and then drag and drop the ChimeraX app from a Finder window onto the terminal window, then hit Return
3) Type "Contents/MacOS/ChimeraX" and hit Return; ChimeraX will (try to) start

Let me know of any output you get in the Terminal window after launching ChimeraX

--Eric

comment:2 by Eric Pettersen, 7 years ago

Status: acceptedfeedback

in reply to:  3 ; comment:3 by nmforino@…, 7 years ago

Hi everyone,

Thanks for the speedy and helpful reply. The aforementioned code
successfully launched the program, albeit a few errors got thrown in the
terminal, here they are:


Nicholass-MacBook-Pro-7:ChimeraX.app Nick$ Contents/MacOS/ChimeraX

NOTE: Traceback (most recent call last):

  File

"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-

packages/chimerax/core/toolshed/__init__.py", line 338, in __init__

    self.init_available_from_cache(logger)

  File

"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-

packages/chimerax/core/toolshed/__init__.py", line 445, in

init_available_from_cache

    abc.load_from_cache()

  File

"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-

packages/chimerax/core/toolshed/available.py", line 61, in load_from_cache

    b = _build_bundle(d)

  File

"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-

packages/chimerax/core/toolshed/available.py", line 98, in _build_bundle

    bundle_d = d["bundle"][bundle_name]

KeyError: 'ChimeraX_Clipper'




BUG: Error preloading available bundles:

KeyError: 'ChimeraX_Clipper'



File

"/Applications/ChimeraX.app/Contents/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-

packages/chimerax/core/toolshed/available.py", line 98, in _build_bundle

bundle_d = d["bundle"][bundle_name]


 _See log for complete Python traceback._


Thanks again for the help, I'll get in touch if I notice any more problems
now that the program is working through this method.
Nick

On Fri, Apr 12, 2019 at 11:42 AM ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu>
wrote:


comment:4 by Eric Pettersen, 7 years ago

Cc: Tristan Croll Conrad Huang added; Tom Goddard Greg Couch removed
Component: PlatformTool Shed
Status: feedbackaccepted
Summary: Chimera X crashes on startupToolshed cache KeyError crashes startup from app icon

comment:5 by Eric Pettersen, 7 years ago

Cc: Conrad Huang removed
Owner: changed from Eric Pettersen to Conrad Huang
Status: acceptedassigned

comment:6 by Conrad Huang, 6 years ago

Resolution: fixed
Status: assignedclosed

Toolshed now catches KeyErrors when loading available bundles from cache and just ignores those entries.

Note: See TracTickets for help on using tickets.