Can't open Simulink Model: "state not recoverable" error

35 views (last 30 days)
Hey everyone,
after restarting Matlab I am getting the following error when trying to open a Simulink model:
Caught "std::exception" Exception message is:
Loading C:\Program Files\MATLAB\R2021b\bin\win64\simulink_plugins\record_playback\libmwstreamout_blocks_reg.dllfailed with error: Die angegebene Prozedur wurde nicht gefunden.
: state not recoverable: state not recoverable
Caught "std::exception" Exception message is:
Loading C:\Program Files\MATLAB\R2021b\bin\win64\builtins\shared_sdi\mwshared_sdi_mcos_builtinimpl.dllfailed with error: Die angegebene Prozedur wurde nicht gefunden.
: state not recoverable: state not recoverable
The text after "failed with error" translates to: "The specified procedure was not found."
As the error seems to be a corrupted Matlab install, is there a way around a complete re-install?
How can I prevent this happening in the future?
A bit more information on what lead to the error:
  • Deleted a manually defined data type for monitoring activity of a Stateflow State Chart from data dictionary of Simulink Model
  • Model unexpectedly still works fine, no compilation errors
  • Closed the Simulink model
  • Closed Matlab
  • Opened Matlab
  • Opened Matlab Project
  • Opening the Simulink model fails
Thanks in advance!

Answers (1)

Anjaneyulu Bairi
Anjaneyulu Bairi on 8 Nov 2023
I understand that you are trying to find a way to completely re-install MATLAB as you are assuming the errors are related to corrupted installation of MATLAB. Please try the below troubleshooting steps.
Now check with the same model whether you are getting any errors.
Hope it helps to resolve your query.

Categories

Find more on Programming in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!