MATLAB crashes whenever running simulation in a .slx file

11 views (last 30 days)
whenever I run the simulation in any simulink file (.slx) matlab crashes:
the crash log:
MATLAB Log File: C:\Users\engmh\AppData\Local\Temp\matlab_crash_dump.12920-1
------------------------------------------------
MATLAB Log File
------------------------------------------------
--------------------------------------------------------------------------------
Access violation detected at 2022-04-07 06:39:14 +0200
--------------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled - No sandbox or build area path
Crash Mode : continue (default)
Default Encoding : windows-1252
Deployed : false
Graphics Driver : Unknown hardware
Graphics card 1 : NVIDIA ( 0x10de ) NVIDIA GeForce RTX 2060 Version 30.0.15.1215 (2022-3-17)
Java Version : Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode
MATLAB Architecture : win64
MATLAB Entitlement ID : 6257193
MATLAB Root : C:\Program Files\Polyspace\R2021a
MATLAB Version : 9.10.0.1602886 (R2021a)
OpenGL : hardware
Operating System : Microsoft Windows 11 Home
Process ID : 12920
Processor ID : x86 Family 6 Model 158 Stepping 10, GenuineIntel
Window System : Version 10.0 (Build 22000)
Fault Count: 1
Abnormal termination:
Access violation
Current Thread: 'MCR 0 interpreter thread' id 15084
Register State (from fault):
RAX = 00007ffd8c1f1ad0 RBX = 0000001d48cf9760
RCX = 0000020ee0bd5480 RDX = 0000020e276d0000
RSP = 0000001d48cf8c38 RBP = 0000001d48cf8d70
RSI = 0000001d48cf9120 RDI = 0000001d48cf9760
R8 = 0000020e27645280 R9 = 0000000000000001
R10 = 0000020e27640000 R11 = 0000001d48cf8ba0
R12 = 0000000000000000 R13 = 0000000000000001
R14 = 0000020ee1632d70 R15 = 0000020ee3413e60
RIP = 00007ffd88c856c6 EFL = 00010206
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00007ffd88c856c6 C:\Program Files\Polyspace\R2021a\bin\win64\sl_graphical_classes.dll+06510278 BDConfigSetInfo::getRTWComponent+00000086
[ 1] 0x0000020ee163323c <unknown-module>+00000000
[ 2] 0x00007ffd88344873 C:\Program Files\Polyspace\R2021a\bin\win64\sl_engine_classes.dll+05130355 XFormScope::apply+00011443
[ 3] 0x00007ffd87f3cb84 C:\Program Files\Polyspace\R2021a\bin\win64\sl_engine_classes.dll+00904068 getSlEngineEventPair+00002692
[ 4] 0x00007ffd87f269b0 C:\Program Files\Polyspace\R2021a\bin\win64\sl_engine_classes.dll+00813488 ssSetGrBlkMaxFreqHz+00004336
[ 5] 0x00007ffd87f360c9 C:\Program Files\Polyspace\R2021a\bin\win64\sl_engine_classes.dll+00876745 slplugin::MasterCompEvent::~MasterCompEvent+00004329
[ 6] 0x00007ffd87f2ad6d C:\Program Files\Polyspace\R2021a\bin\win64\sl_engine_classes.dll+00830829 ssSetGrBlkMaxFreqHz+00021677
[ 7] 0x00007ffd87f37760 C:\Program Files\Polyspace\R2021a\bin\win64\sl_engine_classes.dll+00882528 slplugin::ProcessEngineEvent+00000336
[ 8] 0x00007ffd87f3a041 C:\Program Files\Polyspace\R2021a\bin\win64\sl_engine_classes.dll+00892993 bdPostEngineEvent+00000209
[ 9] 0x00007ffd7dc9f280 C:\Program Files\Polyspace\R2021a\bin\win64\sl_compile.dll+03469952 SLOutportWithFcnCallInitPassThru::throwErrorOnInvalidICSrc+00002720
[ 10] 0x00007ffd7dce3dcb C:\Program Files\Polyspace\R2021a\bin\win64\sl_compile.dll+03751371 VarHiddenConnectionInfo::setNIForRemoval+00010315
[ 11] 0x00007ffd7dce3f88 C:\Program Files\Polyspace\R2021a\bin\win64\sl_compile.dll+03751816 VarHiddenConnectionInfo::setNIForRemoval+00010760
[ 12] 0x00007ffd7dc8722a C:\Program Files\Polyspace\R2021a\bin\win64\sl_compile.dll+03371562 SLCompDiagramImpl+00040618
[ 13] 0x00007ffd7dc7d68a C:\Program Files\Polyspace\R2021a\bin\win64\sl_compile.dll+03331722 SLCompDiagramImpl+00000778
[ 14] 0x00007ffd895fd146 C:\Program Files\Polyspace\R2021a\bin\win64\sl_link_bd.dll+01102150 slink::CreateSlModelForLink+00000758
[ 15] 0x00007ffd895fce73 C:\Program Files\Polyspace\R2021a\bin\win64\sl_link_bd.dll+01101427 slink::CreateSlModelForLink+00000035
[ 16] 0x00007ffd8bbf3ee4 C:\Program Files\Polyspace\R2021a\bin\win64\libmwsimulink.dll+15810276 slstSetOutputPortRateID+00130612
[ 17] 0x00007ffd8bbf9d26 C:\Program Files\Polyspace\R2021a\bin\win64\libmwsimulink.dll+15834406 slstSetOutputPortRateID+00154742
[ 18] 0x00007ffd8bc004a7 C:\Program Files\Polyspace\R2021a\bin\win64\libmwsimulink.dll+15860903 slstSetOutputPortRateID+00181239
[ 19] 0x00007ffd8bc3bcf2 C:\Program Files\Polyspace\R2021a\bin\win64\libmwsimulink.dll+16104690 slstSetOutputPortRateID+00425026
[ 20] 0x00007ffd8b031022 C:\Program Files\Polyspace\R2021a\bin\win64\libmwsimulink.dll+03477538 ExitPauseInDebuggerMenuSim+00001346
[ 21] 0x00007ffd8b803706 C:\Program Files\Polyspace\R2021a\bin\win64\libmwsimulink.dll+11679494 SLGlue::simulationStartPauseContinueNARMode+00000182
[ 22] 0x00007ffd60cf5509 C:\Program Files\Polyspace\R2021a\bin\win64\sl_mi.dll+00349449 SLM3I::mi::initCosSFBlockOpenNotification+00074009
[ 23] 0x00007ffdb156d42e bin\win64\pgo\mcos_impl.dll+00381998
[ 24] 0x00007ffdb156c9d5 bin\win64\pgo\mcos_impl.dll+00379349
[ 25] 0x00007ffdb156c670 bin\win64\pgo\mcos_impl.dll+00378480
[ 26] 0x00007ffdb15ad543 bin\win64\pgo\mcos_impl.dll+00644419 mdMethodListAllFcn+00084595
[ 27] 0x00007ffdb15ad458 bin\win64\pgo\mcos_impl.dll+00644184 mdMethodListAllFcn+00084360
[ 28] 0x00007ffdb15ad33e bin\win64\pgo\mcos_impl.dll+00643902 mdMethodListAllFcn+00084078
[ 29] 0x00007ffdb157083d bin\win64\pgo\mcos_impl.dll+00395325 mdIsA+00002017
[ 30] 0x00007ffdcb434630 bin\win64\pgo\m_dispatcher.dll+00083504 Mfh_MATLAB_fn_impl::ensure_loading_of_load_module+00001856
[ 31] 0x00007ffdcb4347b9 bin\win64\pgo\m_dispatcher.dll+00083897 Mfh_MATLAB_fn_impl::dispatch_with_reuse+00000045
[ 32] 0x00007ffdc853a62e bin\win64\pgo\m_lxe.dll+00370222
[ 33] 0x00007ffdc85ba093 bin\win64\pgo\m_lxe.dll+00893075 MathWorks::lxe::initializeFcn+00521059
[ 34] 0x00007ffe8170f68c bin\win64\pgo\libmx.dll+00652940 matrix::detail::noninlined::mx_array_api::mxFevalFunctionHandle+00000036
[ 35] 0x00007ffdcb225a75 bin\win64\pgo\m_interpreter.dll+00154229 mwboost::serialization::singleton<mwboost::serialization::extended_type_info_typeid<MathWorks::ExecutionEvents::UncaughtErrorEvent> >::singleton<mwboost::serialization::extended_type_info_typeid<MathWorks::ExecutionEvents::UncaughtErrorEvent> >+00027445
[ 36] 0x00007ffdc8258bea C:\Program Files\Polyspace\R2021a\bin\win64\builtin.dll+00101354 MathWorks::builtin::BuiltinFcn::invoke+00001130
[ 37] 0x00007ffdcb444b1c bin\win64\pgo\m_dispatcher.dll+00150300 Mfh_MATLAB_fn_impl::dispatch_mf_with_reuse+00000136
[ 38] 0x00007ffdcb434630 bin\win64\pgo\m_dispatcher.dll+00083504 Mfh_MATLAB_fn_impl::ensure_loading_of_load_module+00001856
[ 39] 0x00007ffdcb4347b9 bin\win64\pgo\m_dispatcher.dll+00083897 Mfh_MATLAB_fn_impl::dispatch_with_reuse+00000045
[ 40] 0x00007ffdc853a62e bin\win64\pgo\m_lxe.dll+00370222
[ 41] 0x00007ffdc8536436 bin\win64\pgo\m_lxe.dll+00353334
[ 42] 0x00007ffdc853638f bin\win64\pgo\m_lxe.dll+00353167
[ 43] 0x00007ffdcb20d550 bin\win64\pgo\m_interpreter.dll+00054608 inCallFcn+00000084
[ 44] 0x00007ffdc869f126 bin\win64\pgo\m_lxe.dll+01831206 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>+00022786
[ 45] 0x00007ffdcb2126e2 bin\win64\pgo\m_interpreter.dll+00075490 inCallFcnWithTrap+00000098
[ 46] 0x00007ffd677f4bc9 C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+03623881 dig::FunctionInfoToArray+00000649
[ 47] 0x00007ffd677c121a C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+03412506 dig::ActionCallback::operator()+00000826
[ 48] 0x00007ffd677c0efd C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+03411709 dig::ActionCallback::operator()+00000029
[ 49] 0x00007ffd676b27d4 C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+02303956 dig::ActionService::executeActionImpl+00001732
[ 50] 0x00007ffd676b185f C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+02299999 dig::ActionService::executeAction+00000287
[ 51] 0x00007ffd676b1e64 C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+02301540 dig::ActionService::executeAction+00000388
[ 52] 0x00007ffd67846164 C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+03957092 dig::View::handleEvent+00001252
[ 53] 0x00007ffd6783dc38 C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+03923000 dig::ToolStrip::handleEvent+00001704
[ 54] 0x00007ffd6771a182 C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+02728322 dig::UDDPropertyAdapter::setPropertyValue+00011682
[ 55] 0x00007ffd6765b3ab C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+01946539 dig::config::Widget::Impl::printHierarchy+00101019
[ 56] 0x00007ffd6764b9f3 C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+01882611 dig::config::Widget::Impl::printHierarchy+00037091
[ 57] 0x00007ffd6765f2f0 C:\Program Files\Polyspace\R2021a\bin\win64\dig.dll+01962736 dig::config::Widget::Impl::printHierarchy+00117216
[ 58] 0x00007ffdcb7a392a C:\Program Files\Polyspace\R2021a\bin\win64\iqm.dll+00801066 iqm::PackagedTaskPlugin::execute+00000074
[ 59] 0x00007ffdcb5ae1ed C:\Program Files\Polyspace\R2021a\bin\win64\mcr.dll+00516589 services::lmgr::exception::LicensingStartupException::~LicensingStartupException+00009613
[ 60] 0x00007ffdcb7765ec C:\Program Files\Polyspace\R2021a\bin\win64\iqm.dll+00615916 iqm::Iqm::setupIqmFcnPtrs+00106204
[ 61] 0x00007ffdcb7471f0 C:\Program Files\Polyspace\R2021a\bin\win64\iqm.dll+00422384 iqm::Iqm::create+00007024
[ 62] 0x00007ffdcafb8eaf C:\Program Files\Polyspace\R2021a\bin\win64\libmwbridge.dll+00102063 ioReadLine+00000463
[ 63] 0x00007ffdcafb8ca5 C:\Program Files\Polyspace\R2021a\bin\win64\libmwbridge.dll+00101541 ioReadLine+00000165
[ 64] 0x00007ffdcafca761 C:\Program Files\Polyspace\R2021a\bin\win64\libmwbridge.dll+00173921 mnGetCommandLineBuffer+00000289
[ 65] 0x00007ffdcafcabb7 C:\Program Files\Polyspace\R2021a\bin\win64\libmwbridge.dll+00175031 mnParser+00000487
[ 66] 0x00007ffdcb5b3d86 C:\Program Files\Polyspace\R2021a\bin\win64\mcr.dll+00540038 mcr_set_enableReadingFromStdin+00013894
[ 67] 0x00007ffdcb54f5d3 C:\Program Files\Polyspace\R2021a\bin\win64\mcr.dll+00128467 mcrFunctionSignature::set_signature+00107555
[ 68] 0x00007ffdcb56b550 C:\Program Files\Polyspace\R2021a\bin\win64\mcr.dll+00243024 mcrFunctionSignature::set_signature+00222112
[ 69] 0x00007ffdcb7a392a C:\Program Files\Polyspace\R2021a\bin\win64\iqm.dll+00801066 iqm::PackagedTaskPlugin::execute+00000074
[ 70] 0x00007ffdcb5ae1ed C:\Program Files\Polyspace\R2021a\bin\win64\mcr.dll+00516589 services::lmgr::exception::LicensingStartupException::~LicensingStartupException+00009613
[ 71] 0x00007ffdcb7765ec C:\Program Files\Polyspace\R2021a\bin\win64\iqm.dll+00615916 iqm::Iqm::setupIqmFcnPtrs+00106204
[ 72] 0x00007ffdcb7484bc C:\Program Files\Polyspace\R2021a\bin\win64\iqm.dll+00427196 iqm::Iqm::create+00011836
[ 73] 0x00007ffdcb747c32 C:\Program Files\Polyspace\R2021a\bin\win64\iqm.dll+00425010 iqm::Iqm::create+00009650
[ 74] 0x00007ffdcb5858fc C:\Program Files\Polyspace\R2021a\bin\win64\mcr.dll+00350460 mcrInstantiationError::operator=+00010428
[ 75] 0x00007ffdcb5864ac C:\Program Files\Polyspace\R2021a\bin\win64\mcr.dll+00353452 mcrInstantiationError::operator=+00013420
[ 76] 0x00007ffdcb583ac0 C:\Program Files\Polyspace\R2021a\bin\win64\mcr.dll+00342720 mcrInstantiationError::operator=+00002688
[ 77] 0x00007ffe84b79b9a C:\Program Files\Polyspace\R2021a\bin\win64\mwboost_thread-vc142-mt-x64-1_72.dll+00039834 mwboost::thread::swap+00000074
[ 78] 0x00007ffe8e6b6c0c C:\WINDOWS\System32\ucrtbase.dll+00158732 recalloc+00000092
[ 79] 0x00007ffe8f2354e0 C:\WINDOWS\System32\KERNEL32.DLL+00087264 BaseThreadInitThunk+00000016
[ 80] 0x00007ffe90be485b C:\WINDOWS\SYSTEM32\ntdll.dll+00018523 RtlUserThreadStart+00000043
Program State:
Most Recent Simulink Activity:
playSimulationAction : OK in editor 1 at Thu Apr 7 06:39:12 2022
logEventsAction : OK in editor 1 at Thu Apr 7 06:39:06 2022

Answers (1)

Rajanya
Rajanya on 14 Mar 2025
This crash might be specific to Windows 11 because MATLAB R2021a did not have full Windows 11 support - https://www.mathworks.com/matlabcentral/answers/1466556-are-mathworks-products-compatible-with-windows-11.
Upgrading to MATLAB R2021b or later versions will solve the issue.
You can also give a try reinstalling MATLAB and removing the following which might help get around with the crash -
1. All relevant files in ProgramFiles and AppData
2. Windows registry : HKEY_LOCAL_MACHINE\Software
3. Users\<username>\AppData\Local\Temp folder
Thanks.

Categories

Find more on Startup and Shutdown 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!