Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#445 closed Bug (fixed)

Scytale-Sample cannot be loaded with NB 4139

Reported by: Arno Wacker Owned by: matkovic
Priority: Important Milestone: CrypTool 2.0 BETA 7
Component: WorkspaceManager Keywords:


System.Exception: Could not deserialize model element "<IsDynamic&gtkBackingField" of type "System.Boolean" . ---> System.NullReferenceException: Object reference not set to an instance of an object.

at XMLSerialization.XMLSerialization.Deserialize(XmlDocument doc) --- End of inner exception stack trace --- at XMLSerialization.XMLSerialization.Deserialize(XmlDocument doc) at XMLSerialization.XMLSerialization.Deserialize(String filename, Boolean compress) at WorkspaceManager.Model.ModelPersistance.loadModel(String filename) at WorkspaceManager.WorkspaceManager.Open(String fileName)

Change History (3)

comment:1 Changed 10 years ago by Arno Wacker

Found the reason:

  • Scytale_Sample.cwm does not exist anymore and was obviously deleted with one of the recent updates
  • Scytale.cwm opens without problems

The remaining problem is, that in the list of the recently used files, there might be templates, which point to removed templates leading to strange errors (especially, since you cannot see any difference in the entry between the one which exists and the one which does not. There are different potential solutions to that:

  • Keep the last used files in sync with existing files, hence check if the file still exists, otherwise remove the entry - it would be enough to do this at CT2-startup
  • (minimal solution) Clearly state, that the file does not exist when trying to open instead of the general deserialisation error..

Note, this happens also if a file gets deleted which you had open in the WSM (as happend to me) - CT2 then starts up and tries to load the non-existend sample, and gives the serialisation error (which should simply be a file-not-found)

comment:2 Changed 10 years ago by Matthäus Wander

Resolution: fixed
Status: newclosed

(In [4141]) fixed #445

comment:3 Changed 10 years ago by Matthäus Wander

Milestone: CrypTool 2.0 RELEASECrypTool 2.0 BETA 7
Note: See TracTickets for help on using tickets.