How to fix failed assertion in b:\matlab\​toolbox\st​ateflow\sr​c\stateflo​w\utils\ob​ject.cpp at line 2861: object[id]!=NULL

20 次查看(过去 30 天)
Hi,
I created a stateflow model which was working fine previously. but Nw if i make any changes in model(even if i delete a commented line) i'm getting this error.
Parsing failed for machine: "modelname"(#21)
failed assertion in b:\matlab\toolbox\stateflow\src\stateflow\utils\object.cpp at line 2861:
object[id]!=NULL
[ 0] 0x000000006f96dba4 C:\Program Files\Matlab\R2013b\bin\win64\libmwfl.dll+00056228 fl::diag::stacktrace_base::rend+00000612
[ 1] 0x000000006f96e0ce C:\Program Files\Matlab\R2013b\bin\win64\libmwfl.dll+00057550 fl::diag::stacktrace_base::stacktrace_base+00000030
[ 2] 0x000000000444ad87 C:\Program Files\Matlab\R2013b\bin\win64\libut.dll+00109959 utDumpStackTrace+00000487
...
...
...
MATLAB stack trace:
> In slsfnagctlr>render_l at 1003
In slsfnagctlr>view_naglog_l at 262
In slsfnagctlr>broadcast_in_collection_mode at 1192
In slsfnagctlr>broadcast_cmd_event_l at 129
In slsfnagctlr at 75
Error calling slsfnagctlr('ViewSimulation',...)
object[id]!=NULL
Any help would be really appreciated.
Thanks!

回答(1 个)

Meet
Meet 2024-9-25
Hi Cicily,
This issue would occur when you open a model in your version of MATLAB that was originally created in a different MATLAB version.
As a workaround, you can try one of the following options:
  1. Copy and paste the model containing the chart into a new Simulink model and then simulate it.
  2. Open your model in the MATLAB version in which it was created, export it to MATLAB R2013b, and then simulate the model in MATLAB R2013b. The model should then simulate without any errors."
Hope this helps!!

类别

Help CenterFile Exchange 中查找有关 Simulink Environment Customization 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by