I recently updated my MATLAB 2021a to update_6 and it is crashing when running a simulink model. I've the Simulink Support Package for Arduino Hardware installed.Why is this happening? Is there a workaround? The crash log is below.
--------------------------------------------------------------------------------
Access violation detected at 2022-03-15 14:38:20 -0400
--------------------------------------------------------------------------------
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 GTX 950 Version 27.21.14.5671 (2020-9-30)
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 : 10016759
MATLAB Root : C:\Program Files\MATLAB\R2021a
MATLAB Version : 9.10.0.1851785 (R2021a) Update 6
OpenGL : hardware
Operating System : Microsoft Windows 10 Home
Process ID : 6572
Processor ID : x86 Family 6 Model 167 Stepping 1, GenuineIntel
Session Key : 55e2c876-ccff-477b-9a82-4f2351624325
Window System : Version 10.0 (Build 19044)
Fault Count: 1
Abnormal termination:
Access violation
Current Thread: 'MCR 0 interpreter thread' id 10576
Register State (from fault):
RAX = 00007ffef07b2c60 RBX = 0000007076ef9660
RCX = 000001b5534cc4d0 RDX = 000001b4cc7c0000
RSP = 0000007076ef8b38 RBP = 0000007076ef8c70
RSI = 0000007076ef9020 RDI = 0000007076ef9660
R8 = 000001b4cc6e4380 R9 = 0000000000000001
R10 = 0000000000008000 R11 = 0000007076ef8aa0
R12 = 0000000000000000 R13 = 0000000000000001
R14 = 000001b49a88b7a0 R15 = 000001b5579bfc50
RIP = 00007fff13947466 EFL = 00010206
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00007fff13947466 C:\Program Files\MATLAB\R2021a\bin\win64\sl_graphical_classes.dll+06517862 BDConfigSetInfo::getRTWComponent+00000086
[ 1] 0x00007fff133fcc0f C:\Program Files\MATLAB\R2021a\bin\win64\sl_graphical_classes.dll+00969743 SLRootBDAPI::getRTWSystemTargetFile+00000063
[ 2] 0x00007ffed3fde5b5 C:\ProgramData\MATLAB\SupportPackages\R2021a\bin\win64\simulink_plugins\hardwaresupportpkgs\targets\targetHiddenBlkInsert\libmwtargetHiddenBlkInsert.dll+00124341 sl_hmi::DashboardBlock::useLatestValueForValueParam+00032757
[ 3] 0x00007ffeed711026 C:\Program Files\MATLAB\R2021a\bin\win64\sl_engine_classes.dll+04198438 slplugin::addCompBdSignal+00019302
[ 4] 0x00007ffeed3ea7f7 C:\Program Files\MATLAB\R2021a\bin\win64\sl_engine_classes.dll+00894967 bdPostEngineEvent_nothrow+00001847
[ 5] 0x00007ffeed3d69b0 C:\Program Files\MATLAB\R2021a\bin\win64\sl_engine_classes.dll+00813488 ssSetGrBlkMaxFreqHz+00004336
[ 6] 0x00007ffeed3e60c9 C:\Program Files\MATLAB\R2021a\bin\win64\sl_engine_classes.dll+00876745 slplugin::MasterCompEvent::~MasterCompEvent+00004329
[ 7] 0x00007ffeed3dad6d C:\Program Files\MATLAB\R2021a\bin\win64\sl_engine_classes.dll+00830829 ssSetGrBlkMaxFreqHz+00021677
[ 8] 0x00007ffeed3e7760 C:\Program Files\MATLAB\R2021a\bin\win64\sl_engine_classes.dll+00882528 slplugin::ProcessEngineEvent+00000336
[ 9] 0x00007ffeed3ea041 C:\Program Files\MATLAB\R2021a\bin\win64\sl_engine_classes.dll+00892993 bdPostEngineEvent+00000209
[ 10] 0x00007ffee957e600 C:\Program Files\MATLAB\R2021a\bin\win64\sl_compile.dll+03466752 SLOutportWithFcnCallInitPassThru::throwErrorOnInvalidICSrc+00002720
[ 11] 0x00007ffee95c315b C:\Program Files\MATLAB\R2021a\bin\win64\sl_compile.dll+03748187 VarHiddenConnectionInfo::setNIForRemoval+00010315
[ 12] 0x00007ffee95c3318 C:\Program Files\MATLAB\R2021a\bin\win64\sl_compile.dll+03748632 VarHiddenConnectionInfo::setNIForRemoval+00010760
[ 13] 0x00007ffee95665aa C:\Program Files\MATLAB\R2021a\bin\win64\sl_compile.dll+03368362 SLCompDiagramImpl+00040618
[ 14] 0x00007ffee955ca0a C:\Program Files\MATLAB\R2021a\bin\win64\sl_compile.dll+03328522 SLCompDiagramImpl+00000778
[ 15] 0x00007ffeeddbd806 C:\Program Files\MATLAB\R2021a\bin\win64\sl_link_bd.dll+01103878 slink::CreateSlModelForLink+00000758
[ 16] 0x00007ffeeddbd533 C:\Program Files\MATLAB\R2021a\bin\win64\sl_link_bd.dll+01103155 slink::CreateSlModelForLink+00000035
[ 17] 0x00007ffef01b4334 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+15811380 slstSetOutputPortRateID+00130612
[ 18] 0x00007ffef01ba556 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+15836502 slstSetOutputPortRateID+00155734
[ 19] 0x00007ffef01c0cd7 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+15862999 slstSetOutputPortRateID+00182231
[ 20] 0x00007ffef01fc522 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+16106786 slstSetOutputPortRateID+00426018
[ 21] 0x00007ffeef5f10b2 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+03477682 ExitPauseInDebuggerMenuSim+00001346
[ 22] 0x00007ffeefdc3276 C:\Program Files\MATLAB\R2021a\bin\win64\libmwsimulink.dll+11678326 SLGlue::simulationStartPauseContinueNARMode+00000182
[ 23] 0x00007ffedac65509 C:\Program Files\MATLAB\R2021a\bin\win64\sl_mi.dll+00349449 SLM3I::mi::initCosSFBlockOpenNotification+00074009
[ 24] 0x00007fff28553b5e bin\win64\pgo\mcos_impl.dll+00342878
[ 25] 0x00007fff28553105 bin\win64\pgo\mcos_impl.dll+00340229
[ 26] 0x00007fff28552da0 bin\win64\pgo\mcos_impl.dll+00339360
[ 27] 0x00007fff2859c9bb bin\win64\pgo\mcos_impl.dll+00641467 mdMethodListAllFcn+00085739
[ 28] 0x00007fff2859c8d0 bin\win64\pgo\mcos_impl.dll+00641232 mdMethodListAllFcn+00085504
[ 29] 0x00007fff2859c7b6 bin\win64\pgo\mcos_impl.dll+00640950 mdMethodListAllFcn+00085222
[ 30] 0x00007fff28556f7d bin\win64\pgo\mcos_impl.dll+00356221 mdIsA+00002017
[ 31] 0x00007fff35044630 bin\win64\pgo\m_dispatcher.dll+00083504 Mfh_MATLAB_fn_impl::ensure_loading_of_load_module+00001856
[ 32] 0x00007fff350447b9 bin\win64\pgo\m_dispatcher.dll+00083897 Mfh_MATLAB_fn_impl::dispatch_with_reuse+00000045
[ 33] 0x00007fff32107e2e bin\win64\pgo\m_lxe.dll+00359982
[ 34] 0x00007fff32141993 bin\win64\pgo\m_lxe.dll+00596371 MathWorks::lxe::initializeFcn+00234595
[ 35] 0x00007fff386cf300 bin\win64\pgo\libmx.dll+00652032 matrix::detail::noninlined::mx_array_api::mxFevalFunctionHandle+00000036
[ 36] 0x00007fff34e35a85 bin\win64\pgo\m_interpreter.dll+00154245 mwboost::serialization::singleton<mwboost::serialization::extended_type_info_typeid<MathWorks::ExecutionEvents::UncaughtErrorEvent> >::singleton<mwboost::serialization::extended_type_info_typeid<MathWorks::ExecutionEvents::UncaughtErrorEvent> >+00027445
[ 37] 0x00007fff31c98bea C:\Program Files\MATLAB\R2021a\bin\win64\builtin.dll+00101354 MathWorks::builtin::BuiltinFcn::invoke+00001130
[ 38] 0x00007fff35054b9c bin\win64\pgo\m_dispatcher.dll+00150428 Mfh_MATLAB_fn_impl::dispatch_mf_with_reuse+00000136
[ 39] 0x00007fff35044630 bin\win64\pgo\m_dispatcher.dll+00083504 Mfh_MATLAB_fn_impl::ensure_loading_of_load_module+00001856
[ 40] 0x00007fff350447b9 bin\win64\pgo\m_dispatcher.dll+00083897 Mfh_MATLAB_fn_impl::dispatch_with_reuse+00000045
[ 41] 0x00007fff32107e2e bin\win64\pgo\m_lxe.dll+00359982
[ 42] 0x00007fff32103c2e bin\win64\pgo\m_lxe.dll+00343086
[ 43] 0x00007fff32103b87 bin\win64\pgo\m_lxe.dll+00342919
[ 44] 0x00007fff34e1d550 bin\win64\pgo\m_interpreter.dll+00054608 inCallFcn+00000084
[ 45] 0x00007fff3226c76a bin\win64\pgo\m_lxe.dll+01820522 mwboost::archive::detail::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>::oserializer<mwboost::archive::binaryTerm_oarchive,MathWorks::lxe::ClosedAbstractionFunctionDescriptorOwningIrTree>+00024646
[ 46] 0x00007fff34e226e2 bin\win64\pgo\m_interpreter.dll+00075490 inCallFcnWithTrap+00000098
[ 47] 0x00007ffee0e24bc9 C:\Program Files\MATLAB\R2021a\bin\win64\dig.dll+03623881 dig::FunctionInfoToArray+00000649
[ 48] 0x00007ffee0df121a C:\Program Files\MATLAB\R2021a\bin\win64\dig.dll+03412506 dig::ActionCallback::operator()+00000826
[ 49] 0x00007ffee0df0efd C:\Program Files\MATLAB\R2021a\bin\win64\dig.dll+03411709 dig::ActionCallback::operator()+00000029
[ 50] 0x00007ffee0ce27d4 C:\Program Files\MATLAB\R2021a\bin\win64\dig.dll+02303956 dig::ActionService::executeActionImpl+00001732
[ 51] 0x00007ffee0ce185f C:\Program Files\MATLAB\R2021a\bin\win64\dig.dll+02299999 dig::ActionService::executeAction+00000287
[ 52] 0x00007ffee0ce1e64 C:\Program Files\MATLAB\R2021a\bin\win64\dig.dll+02301540 dig::ActionService::executeAction+00000388
[ 53] 0x00007ffee0e76164 C:\Program Files\MATLAB\R2021a\bin\win64\dig.dll+03957092 dig::View::handleEvent+00001252
[ 54] 0x00007ffee0e6dc38 C:\Program Files\MATLAB\R2021a\bin\win64\dig.dll+03923000 dig::ToolStrip::handleEvent+00001704
[ 55] 0x00007ffee0d4a182 C:\Program Files\MATLAB\R2021a\bin\win64\dig.dll+02728322 dig::UDDPropertyAdapter::setPropertyValue+00011682
[ 56] 0x00007ffee0c8b3ab C:\Program Files\MATLAB\R2021a\bin\win64\dig.dll+01946539 dig::config::Widget::Impl::printHierarchy+00101019
[ 57] 0x00007ffee0c7b9f3 C:\Program Files\MATLAB\R2021a\bin\win64\dig.dll+01882611 dig::config::Widget::Impl::printHierarchy+00037091
[ 58] 0x00007ffee0c8f2f0 C:\Program Files\MATLAB\R2021a\bin\win64\dig.dll+01962736 dig::config::Widget::Impl::printHierarchy+00117216
[ 59] 0x00007fff353d39ea C:\Program Files\MATLAB\R2021a\bin\win64\iqm.dll+00801258 iqm::PackagedTaskPlugin::execute+00000074
[ 60] 0x00007fff351de1ed C:\Program Files\MATLAB\R2021a\bin\win64\mcr.dll+00516589 services::lmgr::exception::LicensingStartupException::~LicensingStartupException+00009613
[ 61] 0x00007fff353a66ac C:\Program Files\MATLAB\R2021a\bin\win64\iqm.dll+00616108 iqm::Iqm::setupIqmFcnPtrs+00106204
[ 62] 0x00007fff353771f0 C:\Program Files\MATLAB\R2021a\bin\win64\iqm.dll+00422384 iqm::Iqm::create+00007024
[ 63] 0x00007fff34bc8eaf C:\Program Files\MATLAB\R2021a\bin\win64\libmwbridge.dll+00102063 ioReadLine+00000463
[ 64] 0x00007fff34bc8ca5 C:\Program Files\MATLAB\R2021a\bin\win64\libmwbridge.dll+00101541 ioReadLine+00000165
[ 65] 0x00007fff34bda761 C:\Program Files\MATLAB\R2021a\bin\win64\libmwbridge.dll+00173921 mnGetCommandLineBuffer+00000289
[ 66] 0x00007fff34bdabb7 C:\Program Files\MATLAB\R2021a\bin\win64\libmwbridge.dll+00175031 mnParser+00000487
[ 67] 0x00007fff351e3d86 C:\Program Files\MATLAB\R2021a\bin\win64\mcr.dll+00540038 mcr_set_enableReadingFromStdin+00013894
[ 68] 0x00007fff3517f5d3 C:\Program Files\MATLAB\R2021a\bin\win64\mcr.dll+00128467 mcrFunctionSignature::set_signature+00107555
[ 69] 0x00007fff3519b550 C:\Program Files\MATLAB\R2021a\bin\win64\mcr.dll+00243024 mcrFunctionSignature::set_signature+00222112
[ 70] 0x00007fff353d39ea C:\Program Files\MATLAB\R2021a\bin\win64\iqm.dll+00801258 iqm::PackagedTaskPlugin::execute+00000074
[ 71] 0x00007fff351de1ed C:\Program Files\MATLAB\R2021a\bin\win64\mcr.dll+00516589 services::lmgr::exception::LicensingStartupException::~LicensingStartupException+00009613
[ 72] 0x00007fff353a66ac C:\Program Files\MATLAB\R2021a\bin\win64\iqm.dll+00616108 iqm::Iqm::setupIqmFcnPtrs+00106204
[ 73] 0x00007fff353784bc C:\Program Files\MATLAB\R2021a\bin\win64\iqm.dll+00427196 iqm::Iqm::create+00011836
[ 74] 0x00007fff35377c32 C:\Program Files\MATLAB\R2021a\bin\win64\iqm.dll+00425010 iqm::Iqm::create+00009650
[ 75] 0x00007fff351b58fc C:\Program Files\MATLAB\R2021a\bin\win64\mcr.dll+00350460 mcrInstantiationError::operator=+00010428
[ 76] 0x00007fff351b64ac C:\Program Files\MATLAB\R2021a\bin\win64\mcr.dll+00353452 mcrInstantiationError::operator=+00013420
[ 77] 0x00007fff351b3ac0 C:\Program Files\MATLAB\R2021a\bin\win64\mcr.dll+00342720 mcrInstantiationError::operator=+00002688
[ 78] 0x00007fff71109b9a C:\Program Files\MATLAB\R2021a\bin\win64\mwboost_thread-vc142-mt-x64-1_72.dll+00039834 mwboost::thread::swap+00000074
[ 79] 0x00007fff7d521bb2 C:\Windows\System32\ucrtbase.dll+00138162 configthreadlocale+00000146
[ 80] 0x00007fff7f807034 C:\Windows\System32\KERNEL32.DLL+00094260 BaseThreadInitThunk+00000020
[ 81] 0x00007fff7fd82651 C:\Windows\SYSTEM32\ntdll.dll+00337489 RtlUserThreadStart+00000033
Program State:
Most Recent Simulink Activity:
playSimulationAction : OK in editor 1 at Tue Mar 15 14:38:20 2022
Create Segment : OK in editor 1 at Tue Mar 15 14:38:19 2022
Move : OK in editor 1 at Tue Mar 15 14:38:18 2022
Add Block : OK in editor 1 at Tue Mar 15 14:38:17 2022
S : OK in editor 1 at Tue Mar 15 14:38:09 2022
I : OK in editor 1 at Tue Mar 15 14:38:08 2022
D : OK in editor 1 at Tue Mar 15 14:38:08 2022
Add Block : OK in editor 1 at Tue Mar 15 14:38:08 2022
Most Recent Tool Interaction:
Editor 1: tools idle, class Simulink::SLSelectionTool is most recently active tool since Tue Mar 15 14:38:19 2022