Page 1 of 1

Vensim DSS Crashing on Save When Viewing As Sketch

Posted: Mon Oct 30, 2023 6:59 pm
by RobbieOrvis
I am not sure how/why the .mdl got corrupted, but the uploaded file reliably crashes every time I attempt to save it on Vensim DSS 8.2.4. It was working fine until a recent round of edits. It opens as text, which is strange. But I can view it as a sketch.

I attempted to copy and paste the text into a different .mdl file, and I get errors regarding the last two lines of code. If I remove those, it visualizes fine but still crashes on save.

Re: Vensim DSS Crashing on Save When Viewing As Sketch

Posted: Mon Oct 30, 2023 8:56 pm
by tomfid
This has a lot of undefined variables that appear as A FUNCTION OF() in the text listing. Was the last operation before the crash a huge paste/replicate or something?

There's some other strange stuff, like the string STX{...} in one equation.

Do you have a previous edition of the model for comparison? That might shed some light on what happened.

Re: Vensim DSS Crashing on Save When Viewing As Sketch

Posted: Mon Oct 30, 2023 9:24 pm
by RobbieOrvis
Sadly, I don't. The backup version is what I sent. The prior editing was nothing complicated... Just a few formula tweaks.

Re: Vensim DSS Crashing on Save When Viewing As Sketch

Posted: Thu Nov 02, 2023 3:07 pm
by Administrator
It's crashing when parsing
FoPITY Fraction of Policy Implemented This Year

Are the CSV files that this variable needs available? They should be in InputData/plcy-schd/FoPITY/.

Re: Vensim DSS Crashing on Save When Viewing As Sketch

Posted: Thu Nov 02, 2023 3:13 pm
by RobbieOrvis
Yes, I haven't changed anything for those files.

Given the issues I was having I just went back and replicated my work off an earlier model and have moved forward with that. At this point, I'm fine to close this issue, given I've moved on.

Re: Vensim DSS Crashing on Save When Viewing As Sketch

Posted: Thu Nov 02, 2023 4:40 pm
by Administrator
RobbieOrvis wrote: Thu Nov 02, 2023 3:13 pmI'm fine to close this issue, given I've moved on.
No problem. We are not fine though, Vensim should not have crashed. We think we've identified the problematic part of the code so hopefully it will not happen in future.