- Design the flow chart within a subchart.
- Select the states involved in the transition.
- Right-click on the selected states and choose "Create Container" > "Create Subchart from Selection."
- Give a name to the newly created subchart.
failed assertion object[id] != nullptr
42 views (last 30 days)
Show older comments
Hi all
I get an error while launching a state machine which worked perfectly fine the last time I was working on it. The next instant I get the following error:
Any help is deeply appreciated!
----------------------------------- ERROR MSG -----------------------------------------------------------------------------------------------------
failed assertion in B:\matlab\toolbox\stateflow\src\stateflow\utils\object.cpp at line 2311:
object[id] != nullptr
[ 0] 0x000007fe74474c6b C:\Program Files\MATLAB\R2022a\bin\win64\stateflow.dll+10046571 SF::get_actual_parent_of+00000011
[ 1] 0x000007fe7435971a C:\Program Files\MATLAB\R2022a\bin\win64\stateflow.dll+08886042 SF::builtins::getMALintStatus+00085050
[ 2] 0x000007fe74358c4c C:\Program Files\MATLAB\R2022a\bin\win64\stateflow.dll+08883276 SF::builtins::getMALintStatus+00082284
[ 3] 0x000007fe7437a9cb C:\Program Files\MATLAB\R2022a\bin\win64\stateflow.dll+09021899 SF::builtins::getMALintStatus+00220907
[ 4] 0x000007fe7437a5dd C:\Program Files\MATLAB\R2022a\bin\win64\stateflow.dll+09020893 SF::builtins::getMALintStatus+00219901
[ 5] 0x000007fe7436efe8 C:\Program Files\MATLAB\R2022a\bin\win64\stateflow.dll+08974312 SF::builtins::getMALintStatus+00173320
[ 6] 0x000007fe7436eea1 C:\Program Files\MATLAB\R2022a\bin\win64\stateflow.dll+08973985 SF::builtins::getMALintStatus+00172993
[ 7] 0x000007feb78e2717 C:\Program Files\MATLAB\R2022a\bin\win64\dastudio.dll+05383959 GLEE_MI::UIGLRC_createDummyWinRec+00058839
[ 8] 0x000007feb762d043 C:\Program Files\MATLAB\R2022a\bin\win64\dastudio.dll+02543683 DAWidgetInterface::getMClass+00055715
[ 9] 0x000007feb7644e40 C:\Program Files\MATLAB\R2022a\bin\win64\dastudio.dll+02641472 DAWidgetInterface::getMClass+00153504
[ 10] 0x000007fee4821e0a C:\Program Files\MATLAB\R2022a\bin\win64\iqm.dll+00794122 iqm::PackagedTaskPlugin::execute+00000074
[ 11] 0x000007fee23e19ad C:\Program Files\MATLAB\R2022a\bin\win64\mcr.dll+00399789 services::lmgr::exception::LicensingStartupException::~LicensingStartupException+00006861
[ 12] 0x000007fee47f9882 C:\Program Files\MATLAB\R2022a\bin\win64\iqm.dll+00628866 iqm::Iqm::setupIqmFcnPtrs+00094722
[ 13] 0x000007fee47caa41 C:\Program Files\MATLAB\R2022a\bin\win64\iqm.dll+00436801 iqm::Iqm::create+00007777
[ 14] 0x000007fee2332de5 C:\Program Files\MATLAB\R2022a\bin\win64\libmwbridge.dll+00077285 ioReadLine+00000501
[ 15] 0x000007fee2332bb5 C:\Program Files\MATLAB\R2022a\bin\win64\libmwbridge.dll+00076725 ioReadLine+00000165
[ 16] 0x000007fee2342970 C:\Program Files\MATLAB\R2022a\bin\win64\libmwbridge.dll+00141680 mnGetCommandLineBuffer+00000288
[ 17] 0x000007fee2342e02 C:\Program Files\MATLAB\R2022a\bin\win64\libmwbridge.dll+00142850 mnParser+00000466
[ 18] 0x000007fee23e7226 C:\Program Files\MATLAB\R2022a\bin\win64\mcr.dll+00422438 mcr_set_enableReadingFromStdin+00013622
[ 19] 0x000007fee23989a3 C:\Program Files\MATLAB\R2022a\bin\win64\mcr.dll+00100771 mcrFunctionSignature::set_signature+00079731
[ 20] 0x000007fee23b6230 C:\Program Files\MATLAB\R2022a\bin\win64\mcr.dll+00221744 mwboost::archive::codecvt_null<wchar_t>::`default constructor closure'+00017584
[ 21] 0x000007fee4821e0a C:\Program Files\MATLAB\R2022a\bin\win64\iqm.dll+00794122 iqm::PackagedTaskPlugin::execute+00000074
[ 22] 0x000007fee23e19ad C:\Program Files\MATLAB\R2022a\bin\win64\mcr.dll+00399789 services::lmgr::exception::LicensingStartupException::~LicensingStartupException+00006861
[ 23] 0x000007fee47f9882 C:\Program Files\MATLAB\R2022a\bin\win64\iqm.dll+00628866 iqm::Iqm::setupIqmFcnPtrs+00094722
[ 24] 0x000007fee47cbd86 C:\Program Files\MATLAB\R2022a\bin\win64\iqm.dll+00441734 iqm::Iqm::create+00012710
[ 25] 0x000007fee47cb472 C:\Program Files\MATLAB\R2022a\bin\win64\iqm.dll+00439410 iqm::Iqm::create+00010386
[ 26] 0x000007fee23d072c C:\Program Files\MATLAB\R2022a\bin\win64\mcr.dll+00329516 mcrInstantiationError::operator=+00010380
[ 27] 0x000007fee23d1165 C:\Program Files\MATLAB\R2022a\bin\win64\mcr.dll+00332133 mcrInstantiationError::operator=+00012997
[ 28] 0x000007fee23ce930 C:\Program Files\MATLAB\R2022a\bin\win64\mcr.dll+00321840 mcrInstantiationError::operator=+00002704
[ 29] 0x000007fef6fe85da C:\Program Files\MATLAB\R2022a\bin\win64\mwboost_thread-vc142-mt-x64-1_75.dll+00034266 mwboost::thread::swap+00000074
[ 30] 0x000007fef721c1ae C:\Program Files\MATLAB\R2022a\bin\win64\ucrtbase.DLL+00115118 o_strcat_s+00000094
[ 31] 0x000000007776556d C:\Windows\system32\kernel32.dll+00087405 BaseThreadInitThunk+00000013
[ 32] 0x00000000779c372d C:\Windows\SYSTEM32\ntdll.dll+00341805 RtlUserThreadStart+00000029
MATLAB stack trace:
object[id] != nullptr
0 Comments
Answers (1)
Harshit
on 15 Sep 2023
Hi,
I understand that you're experiencing an error while launching a state machine.
The error message you encountered indicates an issue with the transition connection between two containers in your state machine. This problem can occur when the default transition is not properly connected.
To resolve this issue, you can follow these steps for the subchart(s) in your model:
By following these steps, you should have a properly connected model with subcharts that have correct transitions from the super states to the inner states.
Regards,
Harshit
0 Comments
See Also
Categories
Find more on Complex Logic in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!