How to fix "failed assertion in B:\matlab\​toolbox\st​ateflow\sf​_xform\ins​trument\Da​taRange.cp​p at line 187"?

조회 수: 3 (최근 30일)
When I compile a model with MATLAB 2020b, everything is fine.
When I compile the same with MATLAB 2021b, I get the error
failed assertion in B:\matlab\toolbox\stateflow\sf_xform\instrument\DataRange.cpp at line 187:
In checkValueInTypeDomain: Assertion failed: val != nullptr
How can I fix the issue?
I already tried cleaning the work folder, same issue.
I placed a breakpoint at the construct_module (line 104) (see Stack trace below), it fails at the first call.
Btw: Why is the string B:\matlab\toolbox.... hard coded?
Many thanks for your support!
#####
Diagnostic Viewer:
...
failed assertion in B:\matlab\toolbox\stateflow\sf_xform\instrument\DataRange.cpp at line 187: In checkValueInTypeDomain: Assertion failed: val != nullptr
[ 0] 0x00007ff92b449095 C:\Program Files\MATLAB\R2021b\bin\win64\sf_xform.dll+00626837 SF::xform::DataRange::insertDataRangeCheckFollowingEdge+00000325
[ 1] 0x00007ff92b449490 C:\Program Files\MATLAB\R2021b\bin\win64\sf_xform.dll+00627856 SF::xform::DataRange::insertDataRangeCheckForInitFcnCFG+00000624
[ 2] 0x00007ff92b44b2f4 C:\Program Files\MATLAB\R2021b\bin\win64\sf_xform.dll+00635636 SF::xform::DataRange::processFcn+00000164
...
[126] 0x00007ff9dfa81ec5 bin\win64\pgo\m_dispatcher.dll+00073413 AutoPushingExecutionFrame::~AutoPushingExecutionFrame+00001205
[127] 0x00007ff9dfa823e0 bin\win64\pgo\m_dispatcher.dll+00074720 Mfh_MATLAB_fn_impl::ensure_loading_of_load_module+00000672
MATLAB stack trace:
In SLStudio.StartPauseContinue
In SLStudio.ToolBars
...

답변 (0개)

카테고리

Help CenterFile Exchange에서 Configure and View Diagnostics에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by