why getting "failed assertion in CG::StructType::isa(t)?
2 views (last 30 days)
Show older comments
Getting Assertion error while simulating the model. Model using a Simulink Bus for structure.
Copying the full error message here,
failed assertion in b:\matlab\toolbox\stateflow\src\stateflow\cdr\cdr_transform_io_bus.cpp at line 459: CG::StructType::isa(t) [ 0] 0x00000001a2c27c74 C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+02784372 SF::cdr_test_prop_flag+01280596 [ 1] 0x00000001a2c27a5f C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+02783839 SF::cdr_test_prop_flag+01280063 [ 2] 0x00000001a2c27c74 C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+02784372 SF::cdr_test_prop_flag+01280596 [ 3] 0x00000001a2c27a5f C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+02783839 SF::cdr_test_prop_flag+01280063 [ 4] 0x00000001a2c27c74 C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+02784372 SF::cdr_test_prop_flag+01280596 [ 5] 0x00000001a2c27a5f C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+02783839 SF::cdr_test_prop_flag+01280063 [ 6] 0x00000001a2c27c74 C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+02784372 SF::cdr_test_prop_flag+01280596 [ 7] 0x00000001a2c27a5f C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+02783839 SF::cdr_test_prop_flag+01280063 [ 8] 0x00000001a2c27c74 C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+02784372 SF::cdr_test_prop_flag+01280596 [ 9] 0x00000001a2c24f61 C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+02772833 SF::cdr_test_prop_flag+01269057 [ 10] 0x00000001a2c24ce8 C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+02772200 SF::cdr_test_prop_flag+01268424 [ 11] 0x00000001a2c2474c C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+02770764 SF::cdr_test_prop_flag+01266988 [ 12] 0x00000001a2bd7f4b C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+02457419 SF::cdr_test_prop_flag+00953643 [ 13] 0x00000001a2a9002a C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+01114154 SF::StateflowTypeChecking::processFcn+00131514 [ 14] 0x00000001a2a95f4a C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+01138506 CGXE::JITMgr::JITMgr+00006522 [ 15] 0x00000001a2eb411e C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+05456158 SF::mx2str_write_str+00032974 [ 16] 0x00000001a2d5f395 C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+04060053 SF::sf_mexFunction+00001301 [ 17] 0x00000001a2d5ee92 C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+04058770 SF::sf_mexFunction+00000018 [ 18] 0x00000000fc5f7551 C:\Program Files\MATLAB\R2015b\bin\win64\libmex.dll+00095569 mexRunMexFile+00000129 [ 19] 0x00000000fc5f6872 C:\Program Files\MATLAB\R2015b\bin\win64\libmex.dll+00092274 inSwapMexfileReader+00000594 [ 20] 0x00000000fc5f6426 C:\Program Files\MATLAB\R2015b\bin\win64\libmex.dll+00091174 mexUnlock+00004998 [ 21] 0x0000000007a64cc3 C:\Program Files\MATLAB\R2015b\bin\win64\m_dispatcher.dll+00019651 Mfh_file::dispatch_fh_impl+00000531 [ 22] 0x0000000007a6488e C:\Program Files\MATLAB\R2015b\bin\win64\m_dispatcher.dll+00018574 Mfh_file::dispatch_fh+00000062 [ 23] 0x0000000007a651e8 C:\Program Files\MATLAB\R2015b\bin\win64\m_dispatcher.dll+00020968 Mfunction_handle::dispatch+00000968 [ 24] 0x0000000009127942 C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+00162114 [ 25] 0x000000000915ab5f C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+00371551 [ 26] 0x0000000009159810 C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+00366608 [ 27] 0x00000000091896e1 C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+00562913 [ 28] 0x0000000009189406 C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+00562182 [ 29] 0x0000000009141916 C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+00268566 [ 30] 0x000000000912a1ef C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+00172527 [ 31] 0x00000000092b8048 C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+01802312 boost::archive::detail::oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptor>::oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptor>+00218984 [ 32] 0x0000000007a64cc3 C:\Program Files\MATLAB\R2015b\bin\win64\m_dispatcher.dll+00019651 Mfh_file::dispatch_fh_impl+00000531 [ 33] 0x0000000007a6483e C:\Program Files\MATLAB\R2015b\bin\win64\m_dispatcher.dll+00018494 Mfh_file::dispatch_fh_with_reuse+00000062 [ 34] 0x00000000098695f7 C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+07771639 boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree>::save_object_ptr+01171895 [ 35] 0x000000000912a67b C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+00173691 [ 36] 0x000000000912a5c5 C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+00173509 [ 37] 0x0000000007b4432c C:\Program Files\MATLAB\R2015b\bin\win64\m_interpreter.dll+00017196 inCallFcn+00000060 [ 38] 0x00000001a2d5f20b C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+04059659 SF::sf_mexFunction+00000907 [ 39] 0x00000001a2eb411e C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+05456158 SF::mx2str_write_str+00032974 [ 40] 0x00000001a2d5f395 C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+04060053 SF::sf_mexFunction+00001301 [ 41] 0x00000001a2d5ee92 C:\Program Files\MATLAB\R2015b\bin\win64\stateflow.dll+04058770 SF::sf_mexFunction+00000018 [ 42] 0x00000000fc5f7551 C:\Program Files\MATLAB\R2015b\bin\win64\libmex.dll+00095569 mexRunMexFile+00000129 [ 43] 0x00000000fc5f6872 C:\Program Files\MATLAB\R2015b\bin\win64\libmex.dll+00092274 inSwapMexfileReader+00000594 [ 44] 0x00000000fc5f6426 C:\Program Files\MATLAB\R2015b\bin\win64\libmex.dll+00091174 mexUnlock+00004998 [ 45] 0x0000000007a64cc3 C:\Program Files\MATLAB\R2015b\bin\win64\m_dispatcher.dll+00019651 Mfh_file::dispatch_fh_impl+00000531 [ 46] 0x0000000007a6483e C:\Program Files\MATLAB\R2015b\bin\win64\m_dispatcher.dll+00018494 Mfh_file::dispatch_fh_with_reuse+00000062 [ 47] 0x0000000009247aed C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+01342189 MathWorks::lxe::ReleaseCurrentMcrContext+00448317 [ 48] 0x0000000009247a5d C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+01342045 MathWorks::lxe::ReleaseCurrentMcrContext+00448173 [ 49] 0x000000000912a67b C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+00173691 [ 50] 0x000000000912a5c5 C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+00173509 [ 51] 0x0000000007b4432c C:\Program Files\MATLAB\R2015b\bin\win64\m_interpreter.dll+00017196 inCallFcn+00000060 [ 52] 0x00000000747361cb C:\Program Files\MATLAB\R2015b\bin\win64\sl_services.dll+00418251 SlFeature::operator=+00001131 [ 53] 0x0000000074737ade C:\Program Files\MATLAB\R2015b\bin\win64\sl_services.dll+00424670 CMatlabCommand::execute+00000206 [ 54] 0x000000007473b4d4 C:\Program Files\MATLAB\R2015b\bin\win64\sl_services.dll+00439508 slsvFEVAL_NoThrow+00000100 [ 55] 0x000000013ec3d4cf C:\Program Files\MATLAB\R2015b\bin\win64\libmwsimulink.dll+13423823 StateflowRegisterOutputPortICParam+00000575 [ 56] 0x000000013e522252 C:\Program Files\MATLAB\R2015b\bin\win64\libmwsimulink.dll+05972562 sl::GlobalDataTransfer::setDefaultSyncTaskTransType+00272386 [ 57] 0x000000013e5f90a4 C:\Program Files\MATLAB\R2015b\bin\win64\libmwsimulink.dll+06852772 sl::MappingManager::getModelMappingsFor+00090836 [ 58] 0x000000013e5fc654 C:\Program Files\MATLAB\R2015b\bin\win64\libmwsimulink.dll+06866516 sl::MappingManager::getModelMappingsFor+00104580 [ 59] 0x000000013e5fe2fd C:\Program Files\MATLAB\R2015b\bin\win64\libmwsimulink.dll+06873853 sl::MappingManager::getModelMappingsFor+00111917 [ 60] 0x000000013ed3888a C:\Program Files\MATLAB\R2015b\bin\win64\libmwsimulink.dll+14452874 slmsg::QueueIntrfBase::getStorageReaderMessageMemoryPoolIndex+00101770 [ 61] 0x000000013ed3b888 C:\Program Files\MATLAB\R2015b\bin\win64\libmwsimulink.dll+14465160 slmsg::QueueIntrfBase::getStorageReaderMessageMemoryPoolIndex+00114056 [ 62] 0x000000013ed3ded0 C:\Program Files\MATLAB\R2015b\bin\win64\libmwsimulink.dll+14474960 slmsg::QueueIntrfBase::getStorageReaderMessageMemoryPoolIndex+00123856 [ 63] 0x000000013dfa2887 C:\Program Files\MATLAB\R2015b\bin\win64\libmwsimulink.dll+00206983 ExitPauseInDebuggerMenuSim+00002551 [ 64] 0x000000013e8da87e C:\Program Files\MATLAB\R2015b\bin\win64\libmwsimulink.dll+09873534 SLGlue::simulationStartPauseContinue+00000222 [ 65] 0x00000001a6a24849 C:\Program Files\MATLAB\R2015b\bin\win64\sl_mi.dll+00084041 SLM3I::mi::initCosSFBlockOpenNotification+00028681 [ 66] 0x000000000f86fbf6 C:\Program Files\MATLAB\R2015b\bin\win64\mcos_impl.dll+00130038 [ 67] 0x000000000f8716b6 C:\Program Files\MATLAB\R2015b\bin\win64\mcos_impl.dll+00136886 [ 68] 0x000000000f870495 C:\Program Files\MATLAB\R2015b\bin\win64\mcos_impl.dll+00132245 [ 69] 0x000000000f8979f6 C:\Program Files\MATLAB\R2015b\bin\win64\mcos_impl.dll+00293366 [ 70] 0x000000000f897811 C:\Program Files\MATLAB\R2015b\bin\win64\mcos_impl.dll+00292881 [ 71] 0x000000000f8976c0 C:\Program Files\MATLAB\R2015b\bin\win64\mcos_impl.dll+00292544 [ 72] 0x0000000007a65498 C:\Program Files\MATLAB\R2015b\bin\win64\m_dispatcher.dll+00021656 Mfh_MATLAB_fn::dispatch_fh+00000600 [ 73] 0x000000000f898ccd C:\Program Files\MATLAB\R2015b\bin\win64\mcos_impl.dll+00298189 [ 74] 0x0000000009247aed C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+01342189 MathWorks::lxe::ReleaseCurrentMcrContext+00448317 [ 75] 0x0000000009247a5d C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+01342045 MathWorks::lxe::ReleaseCurrentMcrContext+00448173 [ 76] 0x000000000915109f C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+00331935 [ 77] 0x0000000180073821 C:\Program Files\MATLAB\R2015b\bin\win64\libmx.dll+00473121 matrix::detail::noninlined::mx_array_api::mxFevalFunctionHandle+00000033 [ 78] 0x00000000080cdcb2 C:\Program Files\MATLAB\R2015b\bin\win64\m_interpreter.dll+05823666 inFunctionHandleInterface::getWorkspaceObj+00576738 [ 79] 0x0000000007a656fe C:\Program Files\MATLAB\R2015b\bin\win64\m_dispatcher.dll+00022270 Mdispatcher::GetPushableExecutionStack+00000142 [ 80] 0x0000000007a65498 C:\Program Files\MATLAB\R2015b\bin\win64\m_dispatcher.dll+00021656 Mfh_MATLAB_fn::dispatch_fh+00000600 [ 81] 0x0000000009247aed C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+01342189 MathWorks::lxe::ReleaseCurrentMcrContext+00448317 [ 82] 0x0000000009247a5d C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+01342045 MathWorks::lxe::ReleaseCurrentMcrContext+00448173 [ 83] 0x000000000912a67b C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+00173691 [ 84] 0x000000000912a5c5 C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+00173509 [ 85] 0x0000000007b4432c C:\Program Files\MATLAB\R2015b\bin\win64\m_interpreter.dll+00017196 inCallFcn+00000060 [ 86] 0x0000000009177b4e C:\Program Files\MATLAB\R2015b\bin\win64\m_lxe.dll+00490318 [ 87] 0x0000000007b6d4d1 C:\Program Files\MATLAB\R2015b\bin\win64\m_interpreter.dll+00185553 inCallFcnWithTrap+00000081 [ 88] 0x00000000fc893cab C:\Program Files\MATLAB\R2015b\bin\win64\dastudio.dll+02571435 SafeCallMatlab+00000187 [ 89] 0x00000000fc8883f5 C:\Program Files\MATLAB\R2015b\bin\win64\dastudio.dll+02524149 ActionSchema::invokeCallback+00000117 [ 90] 0x00000000fc88f6cb C:\Program Files\MATLAB\R2015b\bin\win64\dastudio.dll+02553547 DigCallbackInvoker::invokeUDI+00000187 [ 91] 0x00000000fc88f5ea C:\Program Files\MATLAB\R2015b\bin\win64\dastudio.dll+02553322 DigDefaultCallbackInvoker::invoke+00000058 [ 92] 0x00000000fc905b7d C:\Program Files\MATLAB\R2015b\bin\win64\dastudio.dll+03038077 DeferredManager::get_instance+00000141 [ 93] 0x00000000fab62aa6 C:\Program Files\MATLAB\R2015b\bin\win64\uiw.dll+00535206 UIW_AttachThreadInput+00001270 [ 94] 0x00000000fab62335 C:\Program Files\MATLAB\R2015b\bin\win64\uiw.dll+00533301 wsd_to_MSW+00004181 [ 95] 0x00000000fab623b9 C:\Program Files\MATLAB\R2015b\bin\win64\uiw.dll+00533433 wsd_to_MSW+00004313 [ 96] 0x0000000076ca87fe C:\WINDOWS\system32\USER32.dll+00165886 GetMenuBarInfo+00000638 [ 97] 0x0000000076c8f5fb C:\WINDOWS\system32\USER32.dll+00062971 SystemParametersInfoW+00000235 [ 98] 0x0000000076c94895 C:\WINDOWS\system32\USER32.dll+00084117 IsProcessDPIAware+00000465 [ 99] 0x0000000076dcd8f5 C:\WINDOWS\SYSTEM32\ntdll.dll+00317685 KiUserCallbackDispatcher+00000031 [100] 0x0000000076c99e6a C:\WINDOWS\system32\USER32.dll+00106090 SfmDxSetSwapChainStats+00000026 [101] 0x0000000076c9615e C:\WINDOWS\system32\USER32.dll+00090462 GetMessageA+00000078 [102] 0x00000000fab0e5b8 C:\Program Files\MATLAB\R2015b\bin\win64\uiw.dll+00189880 UIW_ShowMenuItem+00006552 [103] 0x00000000090b94ac C:\Program Files\MATLAB\R2015b\bin\win64\libmwbridge.dll+00038060 ioReadLine+00004060 [104] 0x00000000090b86b4 C:\Program Files\MATLAB\R2015b\bin\win64\libmwbridge.dll+00034484 ioReadLine+00000484 [105] 0x00000000090b83f2 C:\Program Files\MATLAB\R2015b\bin\win64\libmwbridge.dll+00033778 ioCmdLineEditSave+00011986 [106] 0x00000000090b84bb C:\Program Files\MATLAB\R2015b\bin\win64\libmwbridge.dll+00033979 ioReadLine+00000107 [107] 0x00000000090c3095 C:\Program Files\MATLAB\R2015b\bin\win64\libmwbridge.dll+00077973 mnDebugPrompt+00001509 [108] 0x00000000090c2bca C:\Program Files\MATLAB\R2015b\bin\win64\libmwbridge.dll+00076746 mnDebugPrompt+00000282 [109] 0x00000000090c32eb C:\Program Files\MATLAB\R2015b\bin\win64\libmwbridge.dll+00078571 mnParser+00000395 [110] 0x00000000090187a4 C:\Program Files\MATLAB\R2015b\bin\win64\mcr.dll+00362404 mcrInstance::mnParser_on_interpreter_thread+00000036 [111] 0x0000000008fec477 C:\Program Files\MATLAB\R2015b\bin\win64\mcr.dll+00181367 mcr::runtime::setInterpreterThreadToCurrent+00019751 [112] 0x0000000008fec4b3 C:\Program Files\MATLAB\R2015b\bin\win64\mcr.dll+00181427 mcr::runtime::setInterpreterThreadToCurrent+00019811 [113] 0x0000000008feccb1 C:\Program Files\MATLAB\R2015b\bin\win64\mcr.dll+00183473 mcr::runtime::setInterpreterThreadToCurrent+00021857 [114] 0x00000000fab62aa6 C:\Program Files\MATLAB\R2015b\bin\win64\uiw.dll+00535206 UIW_AttachThreadInput+00001270 [115] 0x00000000fab62335 C:\Program Files\MATLAB\R2015b\bin\win64\uiw.dll+00533301 wsd_to_MSW+00004181 [116] 0x00000000fab623b9 C:\Program Files\MATLAB\R2015b\bin\win64\uiw.dll+00533433 wsd_to_MSW+00004313 [117] 0x0000000076ca87fe C:\WINDOWS\system32\USER32.dll+00165886 GetMenuBarInfo+00000638 [118] 0x0000000076c8f5fb C:\WINDOWS\system32\USER32.dll+00062971 SystemParametersInfoW+00000235 [119] 0x0000000076c94895 C:\WINDOWS\system32\USER32.dll+00084117 IsProcessDPIAware+00000465 [120] 0x0000000076dcd8f5 C:\WINDOWS\SYSTEM32\ntdll.dll+00317685 KiUserCallbackDispatcher+00000031 [121] 0x0000000076c9908a C:\WINDOWS\system32\USER32.dll+00102538 PeekMessageW+00000186 [122] 0x0000000076c950fe C:\WINDOWS\system32\USER32.dll+00086270 GetKeyState+00000238 [123] 0x0000000076c93a6f C:\WINDOWS\system32\USER32.dll+00080495 PeekMessageA+00000087 [124] 0x00000000fab0e1cb C:\Program Files\MATLAB\R2015b\bin\win64\uiw.dll+00188875 UIW_ShowMenuItem+00005547 [125] 0x00000000fab634c2 C:\Program Files\MATLAB\R2015b\bin\win64\uiw.dll+00537794 UIW_SuspendAttachThreadInput+00000690 [126] 0x0000000004520ad3 C:\Program Files\MATLAB\R2015b\bin\win64\libmwservices.dll+01510099 services::system_events::PpeDispatchHook::dispatchOne+00032291 [127] 0x000000000452c785 C:\Program Files\MATLAB\R2015b\bin\win64\libmwservices.dll+01558405 sysq::addProcessPendingEventsUnitTestHook+00006101 MATLAB stack trace: > In construct_module (line 99) In generate_code_for_charts_and_machine (line 145) In sfc (line 166) In targetman>code_method (line 371) In targetman>method_nag_wrapper (line 154) In targetman (line 83) In autobuild_kernel>autobuild_local (line 195) In autobuild_kernel (line 57) In autobuild_driver (line 116) In slsf (line 116) CG::StructType::isa(t) Component: Stateflow | Category: Assertion error CG::StructType::isa(t) Component: Simulink | Category: Model error
0 Comments
Answers (0)
See Also
Categories
Find more on Simulation, Tuning, and Visualization 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!