Menu

#159 H1GISideChain/H1GIScPart3.ccpn does not load

3.0.0
closed
nobody
None
2
2016-10-18
2016-10-17
Fogh
No

Project H1GISideChain/H1GIScPart3.ccpn gives an exception on loading.

The problem does not manifest if you open the program with this project. It does manifest if you
1) Open the program with H1GISideChain/H1GIScPart2.ccpn
2) Drag H1GISideChain/H1GIScPart3.ccpn in and drop it into the rightmost display window.

Looks like problem with dock names:

"
Traceback (most recent call last):
File "/home/ccpn/miniconda3/envs/ccpnmr_dist/lib/python3.5/site-packages/pyqtgraph/dockarea/DockArea.py", line 256, in buildFromState
obj = docks[contents]
KeyError: 'SIDECHAIN ASSIGNMENT'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

[...]

File "/home/ccpn/miniconda3/envs/ccpnmr_dist/lib/python3.5/site-packages/pyqtgraph/dockarea/DockArea.py", line 259, in buildFromState
raise Exception('Cannot restore dock state; no dock with name "%s"' % contents)
Exception: Cannot restore dock state; no dock with name "SIDECHAIN ASSIGNMENT"

Discussion

  • Fogh

    Fogh - 2016-10-17
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,9 @@
     Project H1GISideChain/H1GIScPart3.ccpn gives an exception on loading.
    +
    +The problem does *not* manifest if you open the program with this project. It does manifest if you
    +1) Open the program with  H1GISideChain/H1GIScPart2.ccpn
    +2) Drag  H1GISideChain/H1GIScPart3.ccpn in and drop it into the rightmost display window.
    +
     Looks like problem with dock names:
    
     "
    
     
  • wb104

    wb104 - 2016-10-17

    The problem manifests itself in AnalysisAssign.showSidechainAssignmentModule() in the lines:

    if hasattr(self, 'sidechainAssignmentModule'):
      return
    

    The underlying cause is that the same Framework object is used in between projects, but some of the state is not being cleaned up although the modules are being closed. It's not just this function, the same thing happens in AnalysisAssign.showBackboneAssignmentModule() and possibly elsewhere.

     
  • wb104

    wb104 - 2016-10-18
    • status: open --> closed
     
  • wb104

    wb104 - 2016-10-18

    Override Framework._closeExtraWindows() in AnalysisAssign to remove links to modules when they are being closed.

     

Log in to post a comment.

MongoDB Logo MongoDB