Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#6968 closed defect (duplicate)

Session restore: invalid load key

Reported by: nicolas.coudray@… Owned by: Greg Couch
Priority: normal Milestone:
Component: Sessions Version:
Keywords: Cc: pett
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

The following bug report has been submitted:
Platform:        Darwin-19.6.0-x86_64-i386-64bit
ChimeraX Version: 1.0 (2020-06-04 23:15:07 UTC)
Description
Tried to re-open a "cxs" file

Log:
UCSF ChimeraX version: 1.0 (2020-06-04)  
© 2016-2020 Regents of the University of California. All rights reserved.  
How to cite UCSF ChimeraX  

> open "/Users/coudrn01/Dropbox (NYU Langone
> Health)/GiraDamianLab/Publications/2021_Review/Figure_4/Fig4_ExtraC_v6.cxs"

Failed opening file /Users/coudrn01/Dropbox (NYU Langone
Health)/GiraDamianLab/Publications/2021_Review/Figure_4/Fig4_ExtraC_v6.cxs:  
invalid load key, '\x04'.  

Some installed bundles are out of date. Please update the following bundles:

  * AddH to version 2.1.3 (currently 1.0)
  * HKCage to version 1.3 (currently 1.0)
  * HKCage to version 1.2 (currently 1.0)
  * HKCage to version 1.1 (currently 1.0)
  * UI to version 1.2.1 (currently 1.0)
  * UI to version 1.2 (currently 1.0)

  

> open "/Users/coudrn01/Dropbox (NYU Langone
> Health)/GiraDamianLab/Publications/2021_Review/Figure_4/Fig4_ExtraC_v6.cxs"

Traceback (most recent call last):  
File
"/Applications/ChimeraX-1.0.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/open_command/dialog.py", line 150, in _qt_safe  
if data_format is None else " format " +
StringArg.unparse(data_format.nicknames[0])))  
File
"/Applications/ChimeraX-1.0.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/commands/run.py", line 31, in run  
results = command.run(text, log=log)  
File
"/Applications/ChimeraX-1.0.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/commands/cli.py", line 2805, in run  
result = ci.function(session, **kw_args)  
File
"/Applications/ChimeraX-1.0.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/open_command/cmd.py", line 101, in cmd_open  
Command(session, registry=registry).run(provider_cmd_text, log=log)  
File
"/Applications/ChimeraX-1.0.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/commands/cli.py", line 2805, in run  
result = ci.function(session, **kw_args)  
File
"/Applications/ChimeraX-1.0.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/open_command/cmd.py", line 152, in provider_open  
name or model_name_from_path(fi.file_name)), provider_kw)  
File
"/Applications/ChimeraX-1.0.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/open_command/cmd.py", line 383, in collated_open  
return func(*func_args, **func_kw)  
File
"/Applications/ChimeraX-1.0.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core_formats/__init__.py", line 26, in open  
return cxs_open(session, data, **kw)  
File
"/Applications/ChimeraX-1.0.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/session.py", line 938, in open  
session.restore(stream, path=path, resize_window=resize_window)  
File
"/Applications/ChimeraX-1.0.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/session.py", line 615, in restore  
version = serialize.pickle_deserialize(stream)  
File
"/Applications/ChimeraX-1.0.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/serialize.py", line 57, in pickle_deserialize  
return unpickler.load()  
_pickle.UnpicklingError: invalid load key, '\x04'.  
  
_pickle.UnpicklingError: invalid load key, '\x04'.  
  
File
"/Applications/ChimeraX-1.0.app/Contents/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-
packages/chimerax/core/serialize.py", line 57, in pickle_deserialize  
return unpickler.load()  
  
See log for complete Python traceback.  
  




OpenGL version: 4.1 ATI-3.10.22
OpenGL renderer: AMD Radeon Pro 5500M OpenGL Engine
OpenGL vendor: ATI Technologies Inc.Hardware:

    Hardware Overview:

      Model Name: MacBook Pro
      Model Identifier: MacBookPro16,1
      Processor Name: 8-Core Intel Core i9
      Processor Speed: 2.3 GHz
      Number of Processors: 1
      Total Number of Cores: 8
      L2 Cache (per Core): 256 KB
      L3 Cache: 16 MB
      Hyper-Threading Technology: Enabled
      Memory: 16 GB
      Boot ROM Version: 1715.81.2.0.0 (iBridge: 19.16.10744.0.0,0)

Software:

    System Software Overview:

      System Version: macOS 10.15.7 (19H1323)
      Kernel Version: Darwin 19.6.0
      Time since boot: 3 days 5:31

Graphics/Displays:

    Intel UHD Graphics 630:

      Chipset Model: Intel UHD Graphics 630
      Type: GPU
      Bus: Built-In
      VRAM (Dynamic, Max): 1536 MB
      Vendor: Intel
      Device ID: 0x3e9b
      Revision ID: 0x0002
      Automatic Graphics Switching: Supported
      gMux Version: 5.0.0
      Metal: Supported, feature set macOS GPUFamily2 v1

    AMD Radeon Pro 5500M:

      Chipset Model: AMD Radeon Pro 5500M
      Type: GPU
      Bus: PCIe
      PCIe Lane Width: x8
      VRAM (Total): 4 GB
      Vendor: AMD (0x1002)
      Device ID: 0x7340
      Revision ID: 0x0040
      ROM Revision: 113-D3220E-190
      VBIOS Version: 113-D32206U1-019
      Option ROM Version: 113-D32206U1-019
      EFI Driver Version: 01.A1.190
      Automatic Graphics Switching: Supported
      gMux Version: 5.0.0
      Metal: Supported, feature set macOS GPUFamily2 v1
      Displays:
        Color LCD:
          Display Type: Built-In Retina LCD
          Resolution: 3072 x 1920 Retina
          Framebuffer Depth: 30-Bit Color (ARGB2101010)
          Main Display: Yes
          Mirror: Off
          Online: Yes
          Automatically Adjust Brightness: No
          Connection Type: Internal

PyQt version: 5.12.3
Compiled Qt version: 5.12.4
Runtime Qt version: 5.12.8

Change History (4)

comment:1 by pett, 3 years ago

Cc: pett added
Component: UnassignedSessions
Owner: set to Greg Couch
Platform: all
Project: ChimeraX
Status: newassigned
Summary: ChimeraX bug report submissionSession restore: invalid load key

comment:2 by pett, 3 years ago

Resolution: duplicate
Status: assignedclosed

Hi Nicholas,

Thanks for reporting this problem. The problem is that the session file was written by a newer version of ChimeraX than the one you're using. You need to upgrade your ChimeraX in order to open this session. Also, a newer version of ChimeraX would have given a more understandable error message. :-)

--Eric

Eric Pettersen
UCSF Computer Graphics Lab

in reply to:  3 ; comment:3 by Nicolas.Coudray@…, 3 years ago

Hi -Thanks a lot for the quick feedback and solution. Indeed, after updated the file can now be loaded properly


Best regards,

Nicolas


________________________________
From: ChimeraX <ChimeraX-bugs-admin@cgl.ucsf.edu>
Sent: Thursday, May 26, 2022 6:13 PM
Cc: gregc@cgl.ucsf.edu; Coudray, Nicolas; pett@cgl.ucsf.edu
Subject: Re: [ChimeraX] #6968: Session restore: invalid load key

[EXTERNAL]

#6968: Session restore: invalid load key
----------------------------------------+------------------------
          Reporter:  nicolas.coudray@…  |      Owner:  Greg Couch
              Type:  defect             |     Status:  closed
          Priority:  normal             |  Milestone:
         Component:  Sessions           |    Version:
        Resolution:  duplicate          |   Keywords:
        Blocked By:                     |   Blocking:
Notify when closed:                     |   Platform:  all
           Project:  ChimeraX           |
----------------------------------------+------------------------
Changes (by pett):

 * status:  assigned => closed
 * resolution:   => duplicate


Comment:

 Hi Nicholas,
         Thanks for reporting this problem.  The problem is that the
 session file was written by a newer version of ChimeraX than the one
 you're using.  You need to upgrade your ChimeraX in order to open this
 session.  Also, a newer version of ChimeraX would have given a more
 understandable error message. :-)

 --Eric

         Eric Pettersen
         UCSF Computer Graphics Lab

--
Ticket URL: <https://urldefense.com/v3/__https://www.rbvi.ucsf.edu/trac/ChimeraX/ticket/6968*comment:2__;Iw!!MXfaZl3l!eS-0W9ID84WavmjAujDAXOzEmcOAGgm4cGrZVV_ThhQXEWaiJcXBkeIhbm2XoO_KP-641DKNt3xwCCBiAVmg4W4_ANP2UWq-VtfrppQC$ >
ChimeraX <https://urldefense.com/v3/__https://www.rbvi.ucsf.edu/chimerax/__;!!MXfaZl3l!eS-0W9ID84WavmjAujDAXOzEmcOAGgm4cGrZVV_ThhQXEWaiJcXBkeIhbm2XoO_KP-641DKNt3xwCCBiAVmg4W4_ANP2UWq-Vtq_Yey_$ >
ChimeraX Issue Tracker

------------------------------------------------------------
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.
=================================

comment:4 by pett, 3 years ago

Glad it's working now!

--Eric

Note: See TracTickets for help on using tickets.