Simulink/Matlab crashes while running an sfunction mex file

3 views (last 30 days)
Hello,
I am trying to run a Simulink simulation which has a mex file based s-function. Whenever I run it, Matlab crashes. I do not have access to the sfunction. Just the mex file. Here is the crash log. We are using Matlab 2015b 32 bit.
------------------------------------------------------------------------
Access violation detected at Sun Oct 27 11:21:57 2019
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Crash Mode : continue (default)
Current Graphics Driver: ATI Technologies Inc. AMD Radeon R7 M270 Version 4.4.13397 Compatibility Profile Context 0
Default Encoding : windows-1252
Graphics card 1 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics 5500 Version 20.19.15.4531
Graphics card 2 : Advanced Micro Devices, Inc. ( 0x1002 ) AMD Radeon R7 M270 Version 15.200.1045.0
Host Name : dell
MATLAB Architecture : win32
MATLAB Root : C:\Program Files (x86)\MATLAB\R2015b
MATLAB Version : 8.6.0.267246 (R2015b)
OpenGL : hardware
Operating System : Microsoft Windows 10 Home Single Language
Processor ID : x86 Family 6 Model 61 Stepping 4, GenuineIntel
Virtual Machine : Java 1.7.0_60-b19 with Oracle Corporation Java HotSpot(TM) Client VM mixed mode
Window System : Version 10.0 (Build 17134)
Fault Count: 1
Abnormal termination:
Access violation
Register State (from fault):
EAX = 00000001 EBX = 00000001
ECX = 00d00000 EDX = 00d00000
ESP = 00c2c724 EBP = 00c2c748
ESI = 678b6468 EDI = a654ed40
EIP = 00000000 EFL = 00010297
CS = 00000023 DS = 0000002b SS = 0000002b
ES = 0000002b FS = 00000053 GS = 0000002b
Stack Trace (from fault):
[ 0] 0x00000000 <unknown-module>+00000000
[ 1] 0x678b1d72 C:\updated\mp_replace_sim.mexw32+00007538
[ 2] 0x678b2175 C:\updated\mp_replace_sim.mexw32+00008565
[ 3] 0x481fddc7 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwsimulink.dll+11918791 slSetStateflowChartAccessesModelInfo+00114183
[ 4] 0x481ddde8 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwsimulink.dll+11787752 slRegisterPrmAssoc+00166040
[ 5] 0x48056c94 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwsimulink.dll+10185876 EnableBlockPortPositioningBlocker+00001300
[ 6] 0x47c3449b C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwsimulink.dll+05850267 BlockSetRequireVarDimsInputChecker+00004171
[ 7] 0x47b244d6 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwsimulink.dll+04736214 DomainSubgraphTgtInfo::setHasSignalGateways+00005110
[ 8] 0x47acfacb C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwsimulink.dll+04389579 DomainSubgraph::GetGrOwner+00052651
[ 9] 0x47bf8656 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwsimulink.dll+05604950 sl::MappingManager::getModelMappingsFor+00011814
[ 10] 0x4824640c C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwsimulink.dll+12215308 slmsg::ImplicitQueueIntrf::setDropPolicy+00026876
[ 11] 0x70b1a029 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\sl_solver.dll+00303145 sl_solver::SimStepFS::advanceStep+00000025
[ 12] 0x4821c03f C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwsimulink.dll+12042303 slmsg::QueueIntrfBase::getStorageReaderMessageMemoryPoolIndex+00103567
[ 13] 0x4821bd36 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwsimulink.dll+12041526 slmsg::QueueIntrfBase::getStorageReaderMessageMemoryPoolIndex+00102790
[ 14] 0x47bc1838 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwsimulink.dll+05380152 SetupToQueryCompiledInfo+00006408
[ 15] 0x476ba27a C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwsimulink.dll+00107130 SLGlue::SLGlueServicesRegistry::operator=+00009946
[ 16] 0x476ba1b9 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwsimulink.dll+00106937 SLGlue::SLGlueServicesRegistry::operator=+00009753
[ 17] 0x7b6cf8b9 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\uiw.dll+00129209 set_event_rec+00000649
[ 18] 0x7b6d9423 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\uiw.dll+00168995 UIW_ShowMenuItem+00005651
[ 19] 0x7b6d615e C:\Program Files (x86)\MATLAB\R2015b\bin\win32\uiw.dll+00155998 uiwRegisterPpeCondition+00000430
[ 20] 0x7ba89326 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwbridge.dll+00037670 ioReadLine+00003830
[ 21] 0x7ba885f8 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwbridge.dll+00034296 ioReadLine+00000456
[ 22] 0x7ba882e0 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwbridge.dll+00033504 ioCmdLineEditSave+00011472
[ 23] 0x7ba88415 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwbridge.dll+00033813 ioReadLine+00000117
[ 24] 0x7ba92258 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwbridge.dll+00074328 mnDebugPrompt+00001304
[ 25] 0x7ba91e52 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwbridge.dll+00073298 mnDebugPrompt+00000274
[ 26] 0x7ba924be C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwbridge.dll+00074942 mnParser+00000446
[ 27] 0x06c26373 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\mcr.dll+00353139 mcrInstance::mnParser_on_interpreter_thread+00000051
[ 28] 0x06bfb275 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\mcr.dll+00176757 mcr::runtime::setInterpreterThreadToCurrent+00017765
[ 29] 0x06bfb2e6 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\mcr.dll+00176870 mcr::runtime::setInterpreterThreadToCurrent+00017878
[ 30] 0x06bfcabf C:\Program Files (x86)\MATLAB\R2015b\bin\win32\mcr.dll+00182975 mcr::runtime::setInterpreterThreadToCurrent+00023983
[ 31] 0x06bfca12 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\mcr.dll+00182802 mcr::runtime::setInterpreterThreadToCurrent+00023810
[ 32] 0x06bfba66 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\mcr.dll+00178790 mcr::runtime::setInterpreterThreadToCurrent+00019798
[ 33] 0x7b72669b C:\Program Files (x86)\MATLAB\R2015b\bin\win32\uiw.dll+00485019 UIW_AttachThreadInput+00000843
[ 34] 0x7b7260d7 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\uiw.dll+00483543 wsd_to_MSW+00004023
[ 35] 0x7b72618b C:\Program Files (x86)\MATLAB\R2015b\bin\win32\uiw.dll+00483723 wsd_to_MSW+00004203
[ 36] 0x7703a5fe C:\WINDOWS\System32\USER32.dll+00173566 GetAsyncKeyState+00000670
[ 37] 0x7704a671 C:\WINDOWS\System32\USER32.dll+00239217 SystemParametersInfoW+00001089
[ 38] 0x7704a5fb C:\WINDOWS\System32\USER32.dll+00239099 SystemParametersInfoW+00000971
[ 39] 0x773fcd3d C:\WINDOWS\SYSTEM32\ntdll.dll+00445757 KiUserCallbackDispatcher+00000077
[ 40] 0x77035c1a C:\WINDOWS\System32\USER32.dll+00154650 PeekMessageA+00000346
[ 41] 0x7b6d918a C:\Program Files (x86)\MATLAB\R2015b\bin\win32\uiw.dll+00168330 UIW_ShowMenuItem+00004986
[ 42] 0x7b726ff4 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\uiw.dll+00487412 UIW_SuspendAttachThreadInput+00000708
[ 43] 0x00f62434 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwservices.dll+01451060 services::system_events::PpeDispatchHook::dispatchOne+00029092
[ 44] 0x00f6ed56 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwservices.dll+01502550 sysq::addProcessPendingEventsUnitTestHook+00007942
[ 45] 0x00f604be C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwservices.dll+01443006 services::system_events::PpeDispatchHook::dispatchOne+00021038
[ 46] 0x00f6ee01 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwservices.dll+01502721 sysq::addProcessPendingEventsUnitTestHook+00008113
[ 47] 0x00f707a9 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwservices.dll+01509289 sysq::getCondition+00003833
[ 48] 0x00f71f2b C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwservices.dll+01515307 svWS_ProcessPendingEvents+00000139
[ 49] 0x00f71e90 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\libmwservices.dll+01515152 svWS_ProcessPendingEvents+00000016
[ 50] 0x06bfc111 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\mcr.dll+00180497 mcr::runtime::setInterpreterThreadToCurrent+00021505
[ 51] 0x06bfcc8d C:\Program Files (x86)\MATLAB\R2015b\bin\win32\mcr.dll+00183437 mcr::runtime::setInterpreterThreadToCurrent+00024445
[ 52] 0x06bf516f C:\Program Files (x86)\MATLAB\R2015b\bin\win32\mcr.dll+00151919 mcr_process_events+00006879
[ 53] 0x06bf6b93 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\mcr.dll+00158611 mcr_process_events+00013571
[ 54] 0x06b72e3d C:\Program Files (x86)\MATLAB\R2015b\bin\win32\MVMLocal.dll+00208445 mvm_server::inproc::LocalFactory::terminate+00079565
[ 55] 0x7b421681 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\mvm.dll+01054337 mvm::detail::initLocalMvmHack+00000433
[ 56] 0x7b42084b C:\Program Files (x86)\MATLAB\R2015b\bin\win32\mvm.dll+01050699 mvm::detail::RequestMvmMessage::toString+00007787
[ 57] 0x7b421cad C:\Program Files (x86)\MATLAB\R2015b\bin\win32\mvm.dll+01055917 mvm::detail::SessionImpl::privateSession+00000285
[ 58] 0x7b421e60 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\mvm.dll+01056352 mvm::detail::SessionImpl::privateSession+00000720
[ 59] 0x00405e2a C:\Program Files (x86)\MATLAB\R2015b\bin\win32\MATLAB.exe+00024106
[ 60] 0x00407747 C:\Program Files (x86)\MATLAB\R2015b\bin\win32\MATLAB.exe+00030535
[ 61] 0x74f28494 C:\WINDOWS\System32\KERNEL32.DLL+00099476 BaseThreadInitThunk+00000036
[ 62] 0x773f41c8 C:\WINDOWS\SYSTEM32\ntdll.dll+00410056 RtlAreBitsSet+00000136
[ 63] 0x773f4198 C:\WINDOWS\SYSTEM32\ntdll.dll+00410008 RtlAreBitsSet+00000088
If this problem is reproducible, please submit a Service Request via:
http://www.mathworks.com/support/contact_us/
A technical support engineer might contact you with further information.
Thank you for your help.

Answers (0)

Tags

Products


Release

R2015b

Community Treasure Hunt

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

Start Hunting!