Protected model excution error

4 views (last 30 days)
YoungJoon Kim
YoungJoon Kim on 26 Sep 2019
Edited: YoungJoon Kim on 30 Sep 2019
Protected model was created for algorithm release for hinding IP.
Right after creating protected model, it simulated very well.
However, when I move slxp and msp.mexw64 files to release test, it does not work.
Even when restarting MATLAB 2019a or 2019b with originally created folder and files, it does not work.
Sympton is same with 2019a and 2019b,
at "Compiling : Evaluation block parameters: Completed" with Progress 23%, there are pop up and no more work.
On the otherhand, same protected model by matlab 2018b works fine at 2018b, 2019a, 2019b.
Here are summary for my project work..
made reference model with mulitple data dictionary files.
simulation ok.
made protected model
simulation ok
Restart matlab or move core files to other folders
simulink model with protected moel
simulation fail.
simulink model with reference model
simulation fail
Currently when i copy all contents in reference model and re-create new referencemodel, it works again.
but others are same with above in repeat.
Mex : MinGW Complier ©
MATLAB has encountered an internal problem and needs to close.
MATLAB crash file:C:\Users\YOUNGJ~1.K\AppData\Local\Temp\matlab_crash_dump.11216-1:
--------------------------------------------------------------------------------
Access violation detected at THU 9 26 04:46:25 2019 +0900
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : KSC_5601
Deployed : false
Graphics Driver : Unknown hardware
Graphics card 1 : NVIDIA ( 0x10de ) NVIDIA Quadro M2000M Version 24.21.14.1163 (2018-9-18)
Graphics card 2 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics P530 Version 24.20.100.6286 (2018-8-15)
Java Version : Java 1.8.0_181-b13 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : win64
MATLAB Entitlement ID : 1465699
MATLAB Root : C:\Program Files\MATLAB\R2019a
MATLAB Version : 9.6.0.1174912 (R2019a) Update 5
OpenGL : hardware
Operating System : Microsoft Windows 10 Enterprise
Process ID : 11216
Processor ID : x86 Family 6 Model 94 Stepping 3, GenuineIntel
Session Key : 87f08c10-cf58-4b88-b9f3-5cef3f71f17b
Window System : Version 10.0 (Build 17134)
Fault Count: 1
Abnormal termination:
Access violation
Register State (from fault):
RAX = 0000000000000000 RBX = 00000000043f2d90
RCX = 00000000043f2d90 RDX = 0000000000000008
RSP = 00000000043f2d10 RBP = 00000000043f2f20
RSI = 0000000000000000 RDI = 0000000000000008
R8 = 00000000043f65e0 R9 = 00000000043f31a0
R10 = 000000031b5a6930 R11 = 00000000043f2db8
R12 = 00000000043f3180 R13 = 00000000043f31a0
R14 = 000000025f88fc00 R15 = 00000000043f65e0
RIP = 00000000fb8b07cf EFL = 00010246
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00000000fb8b07cf bin\win64\sldd.dll+00067535
[ 1] 0x00000000fbad48ef bin\win64\sldd.dll+02312431 sldd::DefinitionReference::dataSource+00000063
[ 2] 0x00000001662be466 bin\win64\libmwsimulink.dll+15590502 SlBdDomainEventHandler::registerListener+00025110
[ 3] 0x000000016e65bf96 bin\win64\sl_prm_engine.dll+02408342 SlBaseObjEvalClient::getCallingVariableSourceName+00000022
[ 4] 0x000000016e6bacb3 bin\win64\sl_prm_engine.dll+02796723 SlGlobalWS::checkWhereToResolve+00000195
[ 5] 0x000000016e6c9370 bin\win64\sl_prm_engine.dll+02855792 SlGlobalWS::lookupVariable+00000912
[ 6] 0x000000016e68de15 bin\win64\sl_prm_engine.dll+02612757 SlWorkspace::resolveVariable+00000277
[ 7] 0x000000016e6bf3c8 bin\win64\sl_prm_engine.dll+02814920 SlGlobalWS::fullFindVariable+00000232
[ 8] 0x000000016e689b26 bin\win64\sl_prm_engine.dll+02595622 SlWorkspace::findVariableWithHierRes+00000070
[ 9] 0x0000000166685a9f bin\win64\libmwsimulink.dll+19552927 slEvalBlockParamsInMatlab+00009727
[ 10] 0x0000000015a8d13d bin\win64\pgo\m_parser.dll+00053565
[ 11] 0x0000000015a88196 bin\win64\pgo\m_parser.dll+00033174
[ 12] 0x0000000015a87bba bin\win64\pgo\m_parser.dll+00031674
[ 13] 0x0000000015a89868 bin\win64\pgo\m_parser.dll+00039016
[ 14] 0x0000000015a87cf5 bin\win64\pgo\m_parser.dll+00031989
[ 15] 0x0000000015a89868 bin\win64\pgo\m_parser.dll+00039016
[ 16] 0x0000000015a9385c bin\win64\pgo\m_parser.dll+00079964 mps_count_formal_outputs<char>+00004524
[ 17] 0x0000000015a823e4 bin\win64\pgo\m_parser.dll+00009188
[ 18] 0x0000000015a89868 bin\win64\pgo\m_parser.dll+00039016
[ 19] 0x0000000015ab337a bin\win64\pgo\m_parser.dll+00209786 in_parse_M_function_for_lxe+00003818
[ 20] 0x0000000015ab2a58 bin\win64\pgo\m_parser.dll+00207448 in_parse_M_function_for_lxe+00001480
[ 21] 0x0000000015ab4839 bin\win64\pgo\m_parser.dll+00215097 mps_expression_to_IR_with_visible_names<char>+00000237
[ 22] 0x0000000015ab492f bin\win64\pgo\m_parser.dll+00215343 in_parse_eval_for_lxe+00000199
[ 23] 0x000000001a81d150 bin\win64\pgo\m_lxe.dll+00708944
[ 24] 0x000000001c383110 bin\win64\pgo\m_lxe.dll+29438224 mwboost::archive::detail::pointer_oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::MatlabIrTree>::save_object_ptr+00066408
[ 25] 0x000000001c2cf451 bin\win64\pgo\m_lxe.dll+28701777 mwboost::archive::detail::pointer_oserializer<mwboost::archive::xml_oarchive,MathWorks::lxe::PreLineExecutionEvent>::save_object_ptr+00076249
[ 26] 0x000000001c2ce3e6 bin\win64\pgo\m_lxe.dll+28697574 mwboost::archive::detail::pointer_oserializer<mwboost::archive::xml_oarchive,MathWorks::lxe::PreLineExecutionEvent>::save_object_ptr+00072046
[ 27] 0x000000001c2ce331 bin\win64\pgo\m_lxe.dll+28697393 mwboost::archive::detail::pointer_oserializer<mwboost::archive::xml_oarchive,MathWorks::lxe::PreLineExecutionEvent>::save_object_ptr+00071865
[ 28] 0x000000001c332efb bin\win64\pgo\m_lxe.dll+29110011 mwboost::archive::detail::pointer_oserializer<mwboost::archive::xml_oarchive,MathWorks::lxe::PreLineExecutionEvent>::save_object_ptr+00484483
[ 29] 0x000000001c330fa3 bin\win64\pgo\m_lxe.dll+29101987 mwboost::archive::detail::pointer_oserializer<mwboost::archive::xml_oarchive,MathWorks::lxe::PreLineExecutionEvent>::save_object_ptr+00476459
[ 30] 0x000000001c331039 bin\win64\pgo\m_lxe.dll+29102137 mwboost::archive::detail::pointer_oserializer<mwboost::archive::xml_oarchive,MathWorks::lxe::PreLineExecutionEvent>::save_object_ptr+00476609
[ 31] 0x000000001c332fd7 bin\win64\pgo\m_lxe.dll+29110231 mwboost::archive::detail::pointer_oserializer<mwboost::archive::xml_oarchive,MathWorks::lxe::PreLineExecutionEvent>::save_object_ptr+00484703
[ 32] 0x000000001c332b76 bin\win64\pgo\m_lxe.dll+29109110 mwboost::archive::detail::pointer_oserializer<mwboost::archive::xml_oarchive,MathWorks::lxe::PreLineExecutionEvent>::save_object_ptr+00483582
[ 33] 0x000000001597dc01 bin\win64\pgo\m_interpreter.dll+00384001 inEvalExpInDesiredWSWithIsVarFcn+00000093
[ 34] 0x00000001666780b0 bin\win64\libmwsimulink.dll+19497136 sl_wm_SetFGColorPtr+00035360
[ 35] 0x00000001409cf80e bin\win64\libmwsl_services.dll+02160654 CMatlabCommand::execute+00000270
[ 36] 0x000000016667aed8 bin\win64\libmwsimulink.dll+19508952 sl_wm_SetFGColorPtr+00047176
[ 37] 0x00000001662a7a43 bin\win64\libmwsimulink.dll+15497795 SlBdDomainListener::~SlBdDomainListener+00013091
[ 38] 0x000000016e63b8c0 bin\win64\sl_prm_engine.dll+02275520 slEvalFromWorkspaceWithHS+00000192
[ 39] 0x0000000166685657 bin\win64\libmwsimulink.dll+19551831 slEvalBlockParamsInMatlab+00008631
[ 40] 0x0000000174cfc70b bin\win64\sl_compile.dll+13354763 ExpressionValidator::matVariableHandler+00002027
[ 41] 0x00000001662ade70 bin\win64\libmwsimulink.dll+15523440 SlBdDomainListener::~SlBdDomainListener+00038736
[ 42] 0x000000016e552877 bin\win64\sl_prm_engine.dll+01321079 SlVariant::validateCondition+00000135
[ 43] 0x000000016e551920 bin\win64\sl_prm_engine.dll+01317152 SlVariant::doLateBinding+00000768
[ 44] 0x000000016e4bb1d0 bin\win64\sl_prm_engine.dll+00700880 SlBaseObject::lateBinding+00000208
[ 45] 0x000000016e6bdba4 bin\win64\sl_prm_engine.dll+02808740 doLateBindingForMatrixInWorkspace+00001092
[ 46] 0x0000000166324e82 bin\win64\libmwsimulink.dll+16010882 sl_hmi::SignalSpecification::getOutputPortIndex+00120194
[ 47] 0x000000016e66a50a bin\win64\sl_prm_engine.dll+02467082 SlVariable::doLateBindingForSimulinkVar+00000458
[ 48] 0x000000016e68e97e bin\win64\sl_prm_engine.dll+02615678 SlWorkspace::resolveVariable+00003198
[ 49] 0x000000016e6bf3c8 bin\win64\sl_prm_engine.dll+02814920 SlGlobalWS::fullFindVariable+00000232
[ 50] 0x000000016e689a68 bin\win64\sl_prm_engine.dll+02595432 SlWorkspace::findVariable+00000040
[ 51] 0x000000016c524e07 bin\win64\sl_lang_blocks.dll+05131783 mdlref::ModelRefFillSysRan+00000727
[ 52] 0x000000016c524ecb bin\win64\sl_lang_blocks.dll+05131979 mdlref::ModelRefFindGlobalVariable+00000107
[ 53] 0x0000000165b0b73f bin\win64\libmwsimulink.dll+07518015 IntrinsicDictValidator::~IntrinsicDictValidator+00103375
[ 54] 0x000000016c3a4c9d bin\win64\sl_lang_blocks.dll+03558557 ModelRefBlock::InitOrCheckPreCompileData+00004669
[ 55] 0x0000000166337634 bin\win64\libmwsimulink.dll+16086580 closeMaskEditor+00051012
[ 56] 0x0000000166337849 bin\win64\libmwsimulink.dll+16087113 closeMaskEditor+00051545
[ 57] 0x0000000166346071 bin\win64\libmwsimulink.dll+16146545 BlockSetLocation+00006337
[ 58] 0x0000000166342137 bin\win64\libmwsimulink.dll+16130359 closeMaskEditor+00094791
[ 59] 0x000000016c7ca18e bin\win64\sl_lang_blocks.dll+07905678 SubsystemBlock::CheckSetRTWFileName+00004302
[ 60] 0x000000016c7c97c1 bin\win64\sl_lang_blocks.dll+07903169 SubsystemBlock::CheckSetRTWFileName+00001793
[ 61] 0x000000016c812233 bin\win64\sl_lang_blocks.dll+08200755 SubsystemCopyContext::srcBdIsHighlighting+00007523
[ 62] 0x000000016c7c8d4e bin\win64\sl_lang_blocks.dll+07900494 SubsystemBlock::CheckPrmsAndCreateDlgPrmCache+00001118
[ 63] 0x0000000166337580 bin\win64\libmwsimulink.dll+16086400 closeMaskEditor+00050832
[ 64] 0x0000000166337849 bin\win64\libmwsimulink.dll+16087113 closeMaskEditor+00051545
[ 65] 0x0000000166346071 bin\win64\libmwsimulink.dll+16146545 BlockSetLocation+00006337
[ 66] 0x0000000166342137 bin\win64\libmwsimulink.dll+16130359 closeMaskEditor+00094791
[ 67] 0x0000000174535cfa bin\win64\sl_compile.dll+05201146 ReplacedModelBlock::syntSSEvalParams+00000042
[ 68] 0x000000017452d9d0 bin\win64\sl_compile.dll+05167568 SlCondExecModelBlockMgr::createCondExecModelBlockMgr+00000512
[ 69] 0x000000017436c55f bin\win64\sl_compile.dll+03327327 SLCompPrePropagationSetup+00004159
[ 70] 0x0000000174384f1b bin\win64\sl_compile.dll+03428123 SLCompVCEPropStageTwoAndRemoveInactiveChoices+00010571
[ 71] 0x000000017438511f bin\win64\sl_compile.dll+03428639 sleCompileBlockDiagram+00000399
[ 72] 0x0000000165eafe99 bin\win64\libmwsimulink.dll+11337369 sl_pir::copyContentBetweenModels+00196393
[ 73] 0x0000000165ea6981 bin\win64\libmwsimulink.dll+11299201 sl_pir::copyContentBetweenModels+00158225
[ 74] 0x0000000165ea6ec0 bin\win64\libmwsimulink.dll+11300544 sl_pir::copyContentBetweenModels+00159568
[ 75] 0x000000016655ae4d bin\win64\libmwsimulink.dll+18329165 slstSetOutputPortRateID+00134653
[ 76] 0x0000000166560115 bin\win64\libmwsimulink.dll+18350357 slstSetOutputPortRateID+00155845
[ 77] 0x0000000166566e71 bin\win64\libmwsimulink.dll+18378353 slstSetOutputPortRateID+00183841
[ 78] 0x000000016659a13d bin\win64\libmwsimulink.dll+18587965 slstSetOutputPortRateID+00393453
[ 79] 0x000000016589abea bin\win64\libmwsimulink.dll+04959210 ExitPauseInDebuggerMenuSim+00002298
[ 80] 0x000000016615b8bc bin\win64\libmwsimulink.dll+14137532 SLGlue::simulationStartPauseContinue+00000300
[ 81] 0x0000000273534526 bin\win64\sl_mi.dll+00279846 SLM3I::mi::initCosSFBlockOpenNotification+00070790
[ 82] 0x0000000026e470d0 bin\win64\pgo\mcos_impl.dll+00356560
[ 83] 0x0000000026e46872 bin\win64\pgo\mcos_impl.dll+00354418
[ 84] 0x0000000026e4596b bin\win64\pgo\mcos_impl.dll+00350571
[ 85] 0x0000000026e40c0a bin\win64\pgo\mcos_impl.dll+00330762
[ 86] 0x0000000026e406ea bin\win64\pgo\mcos_impl.dll+00329450
[ 87] 0x0000000026e403ec bin\win64\pgo\mcos_impl.dll+00328684
[ 88] 0x0000000026e44ffa bin\win64\pgo\mcos_impl.dll+00348154
[ 89] 0x000000001570736c bin\win64\pgo\m_dispatcher.dll+00029548 mdFindFunctionFromUserSpecifiedName+00018236
[ 90] 0x00000000157080f1 bin\win64\pgo\m_dispatcher.dll+00033009 Mfh_MATLAB_fn_impl::dispatch_with_reuse+00000045
[ 91] 0x000000001a7b0214 bin\win64\pgo\m_lxe.dll+00262676
[ 92] 0x000000001a7ad1cc bin\win64\pgo\m_lxe.dll+00250316
[ 93] 0x00000000107bf9cc bin\win64\pgo\libmx.dll+00653772 matrix::detail::noninlined::mx_array_api::mxFevalFunctionHandle+00000036
[ 94] 0x0000000015942c65 bin\win64\pgo\m_interpreter.dll+00142437 MathWorks::MException::ExecutionStackFrame::ExecutionStackFrame+00039297
[ 95] 0x0000000015706e0a bin\win64\pgo\m_dispatcher.dll+00028170 mdFindFunctionFromUserSpecifiedName+00016858
[ 96] 0x000000001570736c bin\win64\pgo\m_dispatcher.dll+00029548 mdFindFunctionFromUserSpecifiedName+00018236
[ 97] 0x00000000157080f1 bin\win64\pgo\m_dispatcher.dll+00033009 Mfh_MATLAB_fn_impl::dispatch_with_reuse+00000045
[ 98] 0x000000001a7b0214 bin\win64\pgo\m_lxe.dll+00262676
[ 99] 0x000000001a7abc47 bin\win64\pgo\m_lxe.dll+00244807
[100] 0x000000001a7f8f99 bin\win64\pgo\m_lxe.dll+00561049
[101] 0x000000001592ff80 bin\win64\pgo\m_interpreter.dll+00065408 inCallFcn+00000176
[102] 0x000000001a7f9050 bin\win64\pgo\m_lxe.dll+00561232
[103] 0x0000000015931a67 bin\win64\pgo\m_interpreter.dll+00072295 inCallFcnWithTrap+00000095
[104] 0x0000000137b364e2 bin\win64\dastudio.dll+04351202 SafeCallMatlab+00000210
[105] 0x0000000137b24ab6 bin\win64\dastudio.dll+04278966 ActionSchema::invokeCallback+00000134
[106] 0x0000000137b304ae bin\win64\dastudio.dll+04326574 DigCallbackInvoker::invokeUDI+00001134
[107] 0x0000000137b3001a bin\win64\dastudio.dll+04325402 DigDefaultCallbackInvoker::invoke+00000058
[108] 0x0000000137bd1ac0 bin\win64\dastudio.dll+04987584 DeferredManager::get_instance+00000080
[109] 0x00000001378acfca bin\win64\dastudio.dll+01691594 DAWidgetInterface::getMClass+00043034
[110] 0x00000001378c5754 bin\win64\dastudio.dll+01791828 DAWidgetInterface::getMClass+00143268
[111] 0x00000000fd0264de bin\win64\iqm.dll+00615646 iqm::PackagedTaskPlugin::execute+00000894
[112] 0x00000000fd026353 bin\win64\iqm.dll+00615251 iqm::PackagedTaskPlugin::execute+00000499
[113] 0x0000000015530d2b bin\win64\mcr.dll+00527659 mcr::runtime::setInterpreterThreadSingletonToCurrent+00185515
[114] 0x00000000fd004c27 bin\win64\iqm.dll+00478247 iqm::Iqm::setupIqmFcnPtrs+00088327
[115] 0x00000000fd004c79 bin\win64\iqm.dll+00478329 iqm::Iqm::setupIqmFcnPtrs+00088409
[116] 0x00000000fd004a27 bin\win64\iqm.dll+00477735 iqm::Iqm::setupIqmFcnPtrs+00087815
[117] 0x00000000fcfdd61e bin\win64\iqm.dll+00316958 iqm::Iqm::create+00005198
[118] 0x00000000fb5fe917 bin\win64\libmwbridge.dll+00059671 ioReadLine+00000887
[119] 0x00000000fb5fe6ca bin\win64\libmwbridge.dll+00059082 ioReadLine+00000298
[120] 0x00000000fb60f61b bin\win64\libmwbridge.dll+00128539 mnDebugPrompt+00002155
[121] 0x00000000fb60eee5 bin\win64\libmwbridge.dll+00126693 mnDebugPrompt+00000309
[122] 0x00000000fb60f990 bin\win64\libmwbridge.dll+00129424 mnParser+00000592
[123] 0x0000000015589518 bin\win64\mcr.dll+00890136 mcrInstance::releaseThread+00002552
[124] 0x00000000154cc28a bin\win64\mcr.dll+00115338 mcrOptions::set_use_license_manager+00080058
[125] 0x00000000154ea274 bin\win64\mcr.dll+00238196 mcrOptions::set_use_license_manager+00202916
[126] 0x00000000fd0264de bin\win64\iqm.dll+00615646 iqm::PackagedTaskPlugin::execute+00000894
[127] 0x00000000fd026353 bin\win64\iqm.dll+00615251 iqm::PackagedTaskPlugin::execute+00000499

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!