Menu

#149 QM4.0.0 won't open QM3.3.0 model

QM3
closed
None
1
2018-05-04
2016-12-13
No

Just downloaded QM4.0.0 and tried to open a QM3.3.0 model and received attached erros.

3 Attachments

Discussion

  • Quantum Leaps

    Quantum Leaps - 2016-12-13
    • status: open --> pending
    • assigned_to: Quantum Leaps
     
  • Quantum Leaps

    Quantum Leaps - 2016-12-13

    First, please make sure that your QM 3.3.0 model is valid and opens correctly with QM 3.3.0. Note that you can have both QM 4.0.0 and QM 3.3.0 installed on a single machine. Obviously you need to install QM into different directories.

    If your model is valid in QM 3.3.0, perhaps you could share it privately with Quantum Leaps, so that we are able to determine exactly which model reference causes problems. Please send your model to info@state-machine.com, if you choose this option.

    --MMS

     
  • Anonymous

    Anonymous - 2016-12-13

    Uninstalled 3.3.0, then installed 4.0.0. Model was valid in 3.3.0. I was able to make a 4.0.0 model with a QPC framwork using no temple. I them edited the model file using an editor to copy XML from 3.3.0 model to 4.0.0. Then opened the model in QM. There were errors in building. Turns out I had some QFsm classes and for those classes, the initial state transition was connected to no state anymore. Reconnected and change QFsm to QHsm and it now works.

     
  • Quantum Leaps

    Quantum Leaps - 2016-12-13
    • status: pending --> closed
     
  • Quantum Leaps

    Quantum Leaps - 2016-12-13

    Editing the XML model file by hand might corrupt the internal model references. Such editing has never been supported in the past and is not going to be supported in the future. The only legitimate changing of the XML model file is though the QM modeler tool.

    This bug is closed with this comment.

     
  • Anonymous

    Anonymous - 2016-12-13

    Last comment, since you did not read/understand my added post before this was closed. QM3.3.0 model file did not open using QM4.0.0. There was no model file editing done, so the issue is with the newer QM. Perhaps it chokes when it see QFsm classes. Let other users be warned.

     
    • Quantum Leaps

      Quantum Leaps - 2016-12-14

      Good point. QM 4.0.0 is designed to work with QP 5.8.0 and newer (as clearly indicated in the "About" dialog box QM4.0.0 Model Error2.png) and contains the updated models of QP/C, QP/C++, and QP-nano 5.8.0. These frameworks no longer have the QFsm class and therefore the reference to this class cannot be resolved.

      The proper course of action is to replace the QFsm as the superclass with QHsm still with the QM 3.3.0 and only after this cleanup the model should be opened with QM 4.0.0. I hope this makes sense.

      --MMS

       

      Last edit: Quantum Leaps 2016-12-14
  • Quantum Leaps

    Quantum Leaps - 2016-12-14

    OK, the QM 4.0.0 Revision History has been updated to inform QM users that the old QFsm base class has been removed from the internal models of the QP frameworks, and consequently attempts to open older QM 3.x models still referencing the QFsm class will fail.

    --MMS

     
  • Anonymous

    Anonymous - 2016-12-14

    Thanks you Miro for updating the History to warn others!

     

Anonymous
Anonymous

Add attachments
Cancel