Error Message 'Singleton does not map to an enum constant and no cast present'
Mostra commenti meno recenti
I was running a model with a mix of stateflow, simulink, simscape and got an error as the title. The detail diagnostics message is as:
failed assertion in b:\matlab\src\cgir_xform\dom_core\optimization\shrinkcfgimpl.cpp at line 301:
Singleton does not map to an enum constant and no cast present
[ 0] 0x000000016e6322e7 bin\win64\cgir_xform.dll+03023591 CG::optimization::ShrinkCfgImpl::shrinkExpr+00000471
[ 1] 0x000000016e6322e7 bin\win64\cgir_xform.dll+03023591 CG::optimization::ShrinkCfgImpl::shrinkExpr+00000471
[ 2] 0x000000016e630efd bin\win64\cgir_xform.dll+03018493 CG::optimization::ShrinkCfgImpl::doit+00000317
[ 3] 0x000000016e7d4f65 bin\win64\cgir_xform.dll+04738917 CG::transform::ShrinkCfg::processFcn+00000053
[ 4] 0x000000016db13dd7 bin\win64\cgir_support.dll+02440663 CG::FcnTransform::apply+00000151
[ 5] 0x000000016e6e5108 bin\win64\cgir_xform.dll+03756296 CG::transform::shrinktype::ShrinkTypesImpl::doit+00000104
[ 6] 0x000000016e7d50c2 bin\win64\cgir_xform.dll+04739266 CG::transform::ShrinkTypes::processFcn+00000178
[ 7] 0x000000016db13dd7 bin\win64\cgir_support.dll+02440663 CG::FcnTransform::apply+00000151
[ 8] 0x000000016db13eda bin\win64\cgir_support.dll+02440922 CG::FcnTransform::processScopeWithService+00000138
[ 9] 0x000000016e7d517d bin\win64\cgir_xform.dll+04739453 CG::transform::ShrinkTypes::processScopeWithService+00000061
[ 10] 0x000000016db16812 bin\win64\cgir_support.dll+02451474 CG::ScopeTransform::apply+00000098
[ 11] 0x0000000032c2d2af bin\win64\stateflow.dll+10212015 CGXE::TransformCheckNodes::operator=+00195567
[ 12] 0x0000000032bed4d0 bin\win64\stateflow.dll+09950416 CGXE::InstrumentLicenseChecks::operator=+00044240
[ 13] 0x0000000032b43efd bin\win64\stateflow.dll+09256701 sl_hmi::InstrumentedSignals::getCount+00381821
[ 14] 0x0000000032b2e79a bin\win64\stateflow.dll+09168794 sl_hmi::InstrumentedSignals::getCount+00293914
[ 15] 0x00000000327b4f38 bin\win64\stateflow.dll+05525304 SF::StateflowJITEngine::setRtwChecksum+01098344
[ 16] 0x00000000327c19c5 bin\win64\stateflow.dll+05577157 SF::StateflowJITEngine::setRtwChecksum+01150197
[ 17] 0x000000003380b38e bin\win64\stateflow.dll+22655886 SF::mx2str_write_str+00035310
[ 18] 0x0000000033340da8 bin\win64\stateflow.dll+17632680 SF::sf_mexFunction+00002536
[ 19] 0x00000000333403d2 bin\win64\stateflow.dll+17630162 SF::sf_mexFunction+00000018
[ 20] 0x00000000fc60234a bin\win64\libmex.dll+00140106 mexRunMexFile+00000314
[ 21] 0x00000000fc600d22 bin\win64\libmex.dll+00134434 mexFeature_mexver+00002146
[ 22] 0x00000000fc5ffab7 bin\win64\libmex.dll+00129719 mexUnlock+00028455
[ 23] 0x0000000007e0ca93 bin\win64\pgo\m_dispatcher.dll+00117395 Mfh_file::dispatch_fh_impl+00000835
[ 24] 0x0000000007e0c73e bin\win64\pgo\m_dispatcher.dll+00116542 Mfh_file::dispatch_fh+00000062
[ 25] 0x0000000007dfa8d8 bin\win64\pgo\m_dispatcher.dll+00043224 Mfunction_handle::dispatch+00001032
[ 26] 0x00000000092a9899 bin\win64\pgo\m_lxe.dll+00235673
[ 27] 0x0000000009373d07 bin\win64\pgo\m_lxe.dll+01064199 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00607043
[ 28] 0x0000000009372a29 bin\win64\pgo\m_lxe.dll+01059369 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00602213
[ 29] 0x000000000937ad46 bin\win64\pgo\m_lxe.dll+01092934 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00635778
[ 30] 0x000000000937a570 bin\win64\pgo\m_lxe.dll+01090928 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00633772
[ 31] 0x000000000929fd9c bin\win64\pgo\m_lxe.dll+00195996
[ 32] 0x000000000929f8e5 bin\win64\pgo\m_lxe.dll+00194789
[ 33] 0x000000000929f944 bin\win64\pgo\m_lxe.dll+00194884
[ 34] 0x0000000007e0ca93 bin\win64\pgo\m_dispatcher.dll+00117395 Mfh_file::dispatch_fh_impl+00000835
[ 35] 0x0000000007e0c6fa bin\win64\pgo\m_dispatcher.dll+00116474 Mfh_file::dispatch_fh_with_reuse+00000062
[ 36] 0x000000000acdc846 bin\win64\pgo\m_lxe.dll+27707462 boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree>::save_object_ptr+00590178
[ 37] 0x000000000930a767 bin\win64\pgo\m_lxe.dll+00632679 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00175523
[ 38] 0x00000000093073a1 bin\win64\pgo\m_lxe.dll+00619425 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00162269
[ 39] 0x0000000008279f17 bin\win64\pgo\m_interpreter.dll+00040727 inCallFcn+00000119
[ 40] 0x00000000f71092c5 bin\win64\libmwsl_services.dll+01151685 slsvFEVAL+00001397
[ 41] 0x0000000033340720 bin\win64\stateflow.dll+17631008 SF::sf_mexFunction+00000864
[ 42] 0x000000003380b38e bin\win64\stateflow.dll+22655886 SF::mx2str_write_str+00035310
[ 43] 0x0000000033340da8 bin\win64\stateflow.dll+17632680 SF::sf_mexFunction+00002536
[ 44] 0x00000000333403d2 bin\win64\stateflow.dll+17630162 SF::sf_mexFunction+00000018
[ 45] 0x00000000fc60234a bin\win64\libmex.dll+00140106 mexRunMexFile+00000314
[ 46] 0x00000000fc600d22 bin\win64\libmex.dll+00134434 mexFeature_mexver+00002146
[ 47] 0x00000000fc5ffab7 bin\win64\libmex.dll+00129719 mexUnlock+00028455
[ 48] 0x0000000007e0ca93 bin\win64\pgo\m_dispatcher.dll+00117395 Mfh_file::dispatch_fh_impl+00000835
[ 49] 0x0000000007e0c6fa bin\win64\pgo\m_dispatcher.dll+00116474 Mfh_file::dispatch_fh_with_reuse+00000062
[ 50] 0x000000000937526f bin\win64\pgo\m_lxe.dll+01069679 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00612523
[ 51] 0x000000000930a767 bin\win64\pgo\m_lxe.dll+00632679 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00175523
[ 52] 0x00000000093073a1 bin\win64\pgo\m_lxe.dll+00619425 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00162269
[ 53] 0x0000000008279f17 bin\win64\pgo\m_interpreter.dll+00040727 inCallFcn+00000119
[ 54] 0x00000000f70f5faf bin\win64\libmwsl_services.dll+01073071 slsv::mxw::WarningHandler::operator=+00004559
[ 55] 0x00000000f70ff877 bin\win64\libmwsl_services.dll+01112183 CMatlabCommand::execute+00000199
[ 56] 0x00000000f7109458 bin\win64\libmwsl_services.dll+01152088 slsvFEVAL_NoThrow+00000280
[ 57] 0x00000000f71094c0 bin\win64\libmwsl_services.dll+01152192 slsvFEVAL_NoThrow+00000064
[ 58] 0x000000017482f823 bin\win64\sl_graphical_classes.dll+01832995 NotifyStateflowNamedEventRecursively+00000947
[ 59] 0x00000000f5206b19 bin\win64\libmwsimulink.dll+08219417 CGXE::CGXEContext::getNonFinitesSupport+00080281
[ 60] 0x00000000f5545d3e bin\win64\libmwsimulink.dll+11623742 slcgWriteFileSectionContent+00001118
[ 61] 0x00000000f53945c3 bin\win64\libmwsimulink.dll+09848259 sl::InterfaceDisplayJob::createUnitsUpdateJob+00310099
[ 62] 0x00000000f538aa92 bin\win64\libmwsimulink.dll+09808530 sl::InterfaceDisplayJob::createUnitsUpdateJob+00270370
[ 63] 0x00000000f53941fa bin\win64\libmwsimulink.dll+09847290 sl::InterfaceDisplayJob::createUnitsUpdateJob+00309130
[ 64] 0x00000000f53916b5 bin\win64\libmwsimulink.dll+09836213 sl::InterfaceDisplayJob::createUnitsUpdateJob+00298053
[ 65] 0x00000000f5c476b5 bin\win64\libmwsimulink.dll+18970293 slstSetOutputPortRateID+00085493
[ 66] 0x00000000f5c4c44d bin\win64\libmwsimulink.dll+18990157 SLGlue::PortSignalGenerator::isEmpty+00011405
[ 67] 0x00000000f5c51771 bin\win64\libmwsimulink.dll+19011441 SLGlue::PortSignalGenerator::isEmpty+00032689
[ 68] 0x00000000f5c88fd0 bin\win64\libmwsimulink.dll+19238864 SLGlue::PortSignalGenerator::isEmpty+00260112
[ 69] 0x00000000f4cbe59b bin\win64\libmwsimulink.dll+02680219 ExitPauseInDebuggerMenuSim+00002155
[ 70] 0x00000000f573ca88 bin\win64\libmwsimulink.dll+13683336 SLGlue::simulationStartPauseContinue+00000296
[ 71] 0x00000001deca6d26 bin\win64\sl_mi.dll+00290086 SLM3I::mi::initCosSFBlockOpenNotification+00037446
[ 72] 0x000000000da8705d bin\win64\pgo\mcos_impl.dll+00553053
[ 73] 0x000000000da86848 bin\win64\pgo\mcos_impl.dll+00550984
[ 74] 0x000000000da5524d bin\win64\pgo\mcos_impl.dll+00348749
[ 75] 0x000000000da54b80 bin\win64\pgo\mcos_impl.dll+00347008
[ 76] 0x000000000da55de5 bin\win64\pgo\mcos_impl.dll+00351717
[ 77] 0x000000000da56f4e bin\win64\pgo\mcos_impl.dll+00356174
[ 78] 0x0000000007df8f74 bin\win64\pgo\m_dispatcher.dll+00036724 Mfh_MATLAB_fn::dispatch_fh+00000660
[ 79] 0x000000000da53ab0 bin\win64\pgo\mcos_impl.dll+00342704
[ 80] 0x000000000937526f bin\win64\pgo\m_lxe.dll+01069679 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00612523
[ 81] 0x00000000092a1c14 bin\win64\pgo\m_lxe.dll+00203796
[ 82] 0x0000000004461f48 bin\win64\pgo\libmx.dll+00532296 matrix::detail::noninlined::mx_array_api::mxFevalFunctionHandle+00000036
[ 83] 0x00000000082aea9a bin\win64\pgo\m_interpreter.dll+00256666 inRegisterMFunctionFromOpaqueArray+00052422
[ 84] 0x0000000007e0d42e bin\win64\pgo\m_dispatcher.dll+00119854 mdPathNotification::function_rebind_notification+00000158
[ 85] 0x0000000007df8f74 bin\win64\pgo\m_dispatcher.dll+00036724 Mfh_MATLAB_fn::dispatch_fh+00000660
[ 86] 0x000000000937526f bin\win64\pgo\m_lxe.dll+01069679 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00612523
[ 87] 0x000000000930a767 bin\win64\pgo\m_lxe.dll+00632679 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00175523
[ 88] 0x00000000093073a1 bin\win64\pgo\m_lxe.dll+00619425 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00162269
[ 89] 0x0000000008279f17 bin\win64\pgo\m_interpreter.dll+00040727 inCallFcn+00000119
[ 90] 0x0000000009307292 bin\win64\pgo\m_lxe.dll+00619154 boost::serialization::singleton<boost::archive::detail::pointer_oserializer<boost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree> >::get_instance+00161998
[ 91] 0x00000000082828cf bin\win64\pgo\m_interpreter.dll+00075983 inCallFcnWithTrap+00000095
[ 92] 0x00000001757115ac bin\win64\dastudio.dll+03610028 SafeCallMatlab+00000204
[ 93] 0x0000000175702c06 bin\win64\dastudio.dll+03550214 ActionSchema::invokeCallback+00000134
[ 94] 0x000000017570b60e bin\win64\dastudio.dll+03585550 DigCallbackInvoker::invokeUDI+00000766
[ 95] 0x000000017570b2ea bin\win64\dastudio.dll+03584746 DigDefaultCallbackInvoker::invoke+00000058
[ 96] 0x0000000175795a00 bin\win64\dastudio.dll+04151808 DeferredManager::get_instance+00000080
[ 97] 0x00000001755046aa bin\win64\dastudio.dll+01459882 DAWidgetInterface::getMClass+00033882
[ 98] 0x00000001755157bc bin\win64\dastudio.dll+01529788 DAWidgetInterface::getMClass+00103788
[ 99] 0x00000001754fd8cf bin\win64\dastudio.dll+01431759 DAWidgetInterface::getMClass+00005759
[100] 0x0000000175504666 bin\win64\dastudio.dll+01459814 DAWidgetInterface::getMClass+00033814
[101] 0x00000001754fecf3 bin\win64\dastudio.dll+01436915 DAWidgetInterface::getMClass+00010915
[102] 0x0000000175518da6 bin\win64\dastudio.dll+01543590 DAWidgetInterface::getMClass+00117590
[103] 0x00000000fd0080f7 bin\win64\iqm.dll+00491767 iqm::PackagedTaskPlugin::PackagedTaskPlugin+00000759
[104] 0x00000000fd0088bf bin\win64\iqm.dll+00493759 iqm::PackagedTaskPlugin::execute+00000879
[105] 0x00000000fd00817d bin\win64\iqm.dll+00491901 iqm::PackagedTaskPlugin::PackagedTaskPlugin+00000893
[106] 0x00000000fd008708 bin\win64\iqm.dll+00493320 iqm::PackagedTaskPlugin::execute+00000440
[107] 0x0000000009065651 bin\win64\mcr.dll+00349777 OnlineLicenseManagementLauncher::~OnlineLicenseManagementLauncher+00010049
[108] 0x00000000fcfdbd3a bin\win64\iqm.dll+00310586 iqm::Iqm::setupIqmFcnPtrs+00079802
[109] 0x00000000fcfdbc06 bin\win64\iqm.dll+00310278 iqm::Iqm::setupIqmFcnPtrs+00079494
[110] 0x00000000fcfbeb65 bin\win64\iqm.dll+00191333 iqm::Iqm::deliver+00001397
[111] 0x00000000fb5fd3c3 bin\win64\libmwbridge.dll+00054211 ioReadLine+00000547
[112] 0x00000000fb5fd262 bin\win64\libmwbridge.dll+00053858 ioReadLine+00000194
[113] 0x00000000fb60d7de bin\win64\libmwbridge.dll+00120798 mnDebugPrompt+00001966
[114] 0x00000000fb60d170 bin\win64\libmwbridge.dll+00119152 mnDebugPrompt+00000320
[115] 0x00000000fb60db63 bin\win64\libmwbridge.dll+00121699 mnParser+00000547
[116] 0x000000000904bdb1 bin\win64\mcr.dll+00245169 mcr::runtime::setInterpreterThreadSingletonToCurrent+00029793
[117] 0x000000000904ace5 bin\win64\mcr.dll+00240869 mcr::runtime::setInterpreterThreadSingletonToCurrent+00025493
[118] 0x000000000904ad53 bin\win64\mcr.dll+00240979 mcr::runtime::setInterpreterThreadSingletonToCurrent+00025603
[119] 0x000000000904b6e1 bin\win64\mcr.dll+00243425 mcr::runtime::setInterpreterThreadSingletonToCurrent+00028049
[120] 0x00000000fd02cc77 bin\win64\iqm.dll+00642167 iqm::UserEvalPlugin::pre+00028951
[121] 0x00000000fd039cfc bin\win64\iqm.dll+00695548 iqm::UserEvalPlugin::pre+00082332
[122] 0x00000000fd02737f bin\win64\iqm.dll+00619391 iqm::UserEvalPlugin::pre+00006175
[123] 0x00000000fd02cc16 bin\win64\iqm.dll+00642070 iqm::UserEvalPlugin::pre+00028854
[124] 0x00000000fd027863 bin\win64\iqm.dll+00620643 iqm::UserEvalPlugin::pre+00007427
[125] 0x00000000fd03c8b6 bin\win64\iqm.dll+00706742 iqm::UserEvalPlugin::pre+00093526
[126] 0x00000000fd0080f7 bin\win64\iqm.dll+00491767 iqm::PackagedTaskPlugin::PackagedTaskPlugin+00000759
[127] 0x00000000fd0088bf bin\win64\iqm.dll+00493759 iqm::PackagedTaskPlugin::execute+00000879
MATLAB stack trace:
> In construct_module (line 99)
Singleton does not map to an enum constant and no cast present
Component:Stateflow | Category:Assertion error
Singleton does not map to an enum constant and no cast present
Component:Simulink | Category:Model error
I tried to narrow down the part of model which could be possibly wrong and i realised that the error will disappear if i comment out some commands using a enum as an input of a graphical function. But i am very sure that the assignment of the enum is ok otherwise it would raise other failure in the first place.
I did some searching online as well and didn't find out some similar topic. BTW, my toolbox and versions are as follows:
MATLAB Version 9.3 (R2017b)
Simulink Version 9.0 (R2017b)
Curve Fitting Toolbox Version 3.5.6 (R2017b)
MATLAB Report Generator Version 5.3 (R2017b)
Optimization Toolbox Version 8.0 (R2017b)
Signal Processing Toolbox Version 7.5 (R2017b)
Simscape Version 4.3 (R2017b)
Simscape Electronics Version 2.12 (R2017b)
Simulink Report Generator Version 5.3 (R2017b)
Stateflow Version 9.0 (R2017b)
dSPACE MATLAB Integration Base Version 1.1.5
dSPACE MATLAB Integration Main Version 2.0.6
dSPACE TargetLink Data Dictionary Version 4.2
dSPACE TargetLink Production Code Generator Version 4.2
Is there any suggestion on this error?
Regards,
Hao
Risposte (0)
Categorie
Scopri di più su General Applications in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!