Menu

#1615 Crash on swapping running models

Marx
closed
nobody
None
2critical
2023-11-03
2023-05-24
No

Present in 3.2.0-alpha.8

To reproduce
1) open GoodwinLinear02.mky
2) start model running
3) open switchBlock.mky
4) open GoodwinLinear02.mky
5) => 💣

Discussion

  • High Performance Coder

    • summary: Crash on swpping running models --> Crash on swapping running models
     
  • High Performance Coder

    • status: open --> closed
     
  • High Performance Coder

    This one was a doozy! The initial cause of the issue was VariableValue objects referencing out of bounds in the flowVectors array. The problem was, these objects should not be existing at that point in time, as they were present after a call to clearAllMaps, which should have destroyed all of them.

    After much debugging, it turned out that the act of reading in a minsky file in Minsky::load reset the local minsky pointer to null, which caused the minsky() singleton accessor to return a reference to the wrong global object for the susbsequent call to Minsky::reset().

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB