MATLAB 2021b Crashes when opening .mlapp files or trying to download 2021b Runtime Library SOLUTION...

6 次查看(过去 30 天)
Hello, an issue I had and solved that others may find useful. It was frustrating.
  1. I had been using MATLAB 2020b and the 2020b Runtime Libraries.
  2. I downloaded MATLAB 2021b and found that I couldn’t download the MATLAB 2021b Runtime Library because MATLAB crashed during the download process.
  3. It even crashed during the execution of the Menu Driven Compilation when the Libraries are downloaded.
  4. I couldn’t open up .mlapp files because MATLAB crashed. I could execute my application but when I tried to generate existing App Designer Panels (.mlapp ) in my application MATLAB 2021b crashed.
  5. I then read on line, that you needed to update 2021b to “Update 1”.
  6. I updated 2021b to “Update 1” and STILL could not open .mlapp files or execute my App Designer Panels in my application. It was very frustrating.
  7. BUT just for the fun of it, not knowing it would work, I tried to download the 2021b Runtime Libraries again, after having downloaded “Update 1”.
  8. This time, the 2021b Runtime Libraries download and installed properly.
  9. Also, after all this, everything worked as expected. I could open .mlapp files and my App Designer Panels in my application worked fine.
These “crashes” gave NO indication of what the error was or generated any logs or any error messages. Even thought my code is loaded with “try catch” blocks to catch errors.
This process was very frustrating because I could not find any documentation on this issue.
  2 个评论
Leon
Leon 2021-11-22
I had the same issues and had to uninstall R2021b and went back to R2021a. I'm on Mac OS Big Sur, R2021b is hands down the least stable version to me. I can barely do anything without having a crash.
Now, Mac OS Monterey is coming out, but I can not really upgrade my OS, because R2021a is not compatible with it.
Robert Garneau
Robert Garneau 2021-11-22
Sorry to hear that.
After downloading "Update 1" and then downloading the R2021b Runtime Libraries, (in that order). MATLAB 2021b hasn't crashed on me at all for the last three days. I've been doing a lot of testing of my application so this is a good sign. Hopefully it will last. So far so good.
Goot luck with your application. I wish you well.
Bob

请先登录,再进行评论。

回答(1 个)

Anshika Chourasia
Anshika Chourasia 2021-12-2
Hi Robert,
The possible workaround for this issue is the same as what you've suggested. Developemnt team is aware about the crash and it's logging related isssue, and they're working on it.

类别

Help CenterFile Exchange 中查找有关 Downloads 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by