Model Analyzer in 2022b is not saving

Hello Community,
My Model Analyzer for my a Simbiology 2022b file is not saving. When I create a new simulation, and exit from the analyzer while still keeping my Model Builder program open, the simulation file under the documents tab does not reappear. If I save the Model Analyzer, it will try to save the project as a sbio project file which I am unable to open later. I have only recently had this issue, as I was able to genearte a number of simulations and model fit programs under analyzer before, but something happen to prevent me from making additional changes.
Any suggestions would be greatly appreciated
Thanks,

4 commentaires

Priya Moorthy
Priya Moorthy le 19 Mai 2023
Brett,
I’m very sorry to hear that you are having trouble saving and loading your projects. In order to help resolve this issue, could I first ask you some clarifying questions to ensure I understand the issue correctly?
1. When you say that you “… exit from the analyzer while still keeping my Model Builder program open”, are you closing the entire Model Analyzer app window or pressing the close button on the toolstrip? If you mean that you have closed the entire Model Analyzer app, then could you clarify what you mean by: “the simulation file under the documents tab does not reappear”? Could you share the exact sequence of closing/opening projects and apps?
2. Are you starting with a new, empty project or opening a previously saved project? If opening a saved project, did you have any warnings when loading it? Could you share which release of MATLAB you last saved it in and what were the original contents of the project before you added the simulation program?
3. “I am unable to open later”- can you share whether loading the project gives you an error, results in a project with no contents or an the app that hangs?
4. Does this behavior happen consistently or sporadically?
5. After you save or load and get unexpected behavior, can you share the output when you type “[msgstr,errID] = lasterr” at the MATLAB command line?
6. What is the output when you type “ver” at the MATLAB command line?
7. If you are able to share the erroring project with us, that might help us figure out the issue more quickly.
Again, I'm very sorry that you are encountering this frustrating problem. Thanks for taking the to reply with more information so we can try to resolve the issue.
Best,
Priya
Brett Fleisher
Brett Fleisher le 22 Mai 2023
Modifié(e) : Brett Fleisher le 22 Mai 2023
Hi Priya,
Thank you for returning the message.
1. When you say that you “… exit from the analyzer while still keeping my Model Builder program open”, are you closing the entire Model Analyzer app window or pressing the close button on the toolstrip? If you mean that you have closed the entire Model Analyzer app, then could you clarify what you mean by: “the simulation file under the documents tab does not reappear”?
If I start a new program (such as simulating) I am unable to save it under my workplace or documents. Once I close the matlab analyzer app window, the program does not reappear.
Could you share the exact sequence of closing/opening projects and apps?
  1. open simbio file (Model builder appears)
  2. open analyzer
  3. a list of previously run programs appears under documents but not under workspace
  4. click on program --> simulate model. The previously run program as well as my data apperas under workspace in addition to the new program
  5. I run my simulation
  6. I close the analyzer window
  7. I reopen the analyzer window and the simulation I ran is no longer there
2. Are you starting with a new, empty project or opening a previously saved project? If opening a saved project, did you have any warnings when loading it? Could you share which release of MATLAB you last saved it in and what were the original contents of the project before you added the simulation program?
I am opening a previously saved project, and I don't have any warnings
MATLAB 2022b
3. “I am unable to open later”- can you share whether loading the project gives you an error, results in a project with no contents or an the app that hangs?
No errors are displayed
4. Does this behavior happen consistently or sporadically?
I am no longer able to save new project files with my current model, so it's constant
5. After you save or load and get unexpected behavior, can you share the output when you type “[msgstr,errID] = lasterr” at the MATLAB command line?
msgstr =
'Invalid or deleted object.'
errID =
'MATLAB:class:InvalidHandle'
6. What is the output when you type “ver” at the MATLAB command line?
MATLAB Version: 9.13.0.2049777 (R2022b)
MATLAB License Number: ----
Operating System: Microsoft Windows 10 Enterprise Version 10.0 (Build 19044)
Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
-----------------------------------------------------------------------------------------------------
MATLAB Version 9.13 (R2022b)
Fuzzy Logic Toolbox Version 3.0 (R2022b)
GUI Layout Toolbox Version 2.3.5 (R2020b)
Global Optimization Toolbox Version 4.8 (R2022b)
Optimization Toolbox Version 9.4 (R2022b)
SimBiology Version 6.4 (R2022b)
Statistics and Machine Learning Toolbox Version 12.4 (R2022b)
7. If you are able to share the erroring project with us, that might help us figure out the issue more quickly.
Unfortunately I'm unable to share the model because it contains proprietary information
Again, I'm very sorry that you are encountering this frustrating problem. Thanks for taking the to reply with more information so we can try to resolve the issue.
Thank you for the help. Please let me know if there is anything else I can help to clarify
Best,
Priya Moorthy
Priya Moorthy le 23 Mai 2023
Hi, Brett,
Thanks for the detailed information. It sounds like you are running into a bug with loading certain projects with fit programs. This bug was introduced in R2022b General Release and has been fixed in R2022b Update 1. https://www.mathworks.com/support/bugreports/2827329.
You can confirm that this is the root cause by trying to open the project from the Model Analyzer instead of first opening the Model Builder. In this case, you should see an error message: "Unable to load project, the client encountered an exception : TypeError: Cannot set properties of undefined (setting 'ID')".
We recommend that you update your R2022b MATLAB installation to Update 1 or later to access the latest bug fixes. In R2022b Update 1 and later, you should be able to open your project in 22b.
Unfortunately, if you cannot update your installation, you will not be able to open this project in R2022b GR. I can offer one possible workaround to avoid encountering this bug with other projects. The bug is encountered when loading fit programs that have unchecked responses in the DataMap section. Before saving your project, modify your fit programs by deleting unused responses from the DataMap section instead of unchecking them:
Once again, I am very sorry for the difficulties you have encountered with saving and loading your project. If you are still blocked after updating or trying the workaround, please reach out and we will be happy to help further.
Priya
Brett Fleisher
Brett Fleisher le 30 Mai 2023
Hi Priya,
Thank you for your help. I'm happy to report that updating Matlab fixed this issue.
Best,
Brett

Connectez-vous pour commenter.

Réponses (0)

Communautés

Plus de réponses dans  SimBiology Community

Catégories

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by