MATLAB crashes while running mex function
1 次查看(过去 30 天)
显示 更早的评论
When I try to run a mex function, MATLAB crashes. I first built the fucntion using mex function and then I used the function it gives the following crash report.
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 : Intel Corporation ( 0x8086 ) Intel(R) HD Graphics Family Version 20.19.15.5063 (2018-10-29)
Graphics card 2 : Advanced Micro Devices, Inc. ( 0x1002 ) AMD Radeon R5 M330 Version 15.201.1101.0 (2015-8-6)
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 : 5847230
MATLAB Root : C:\Program Files\MATLAB\R2019b
MATLAB Version : 9.7.0.1296695 (R2019b) Update 4
OpenGL : hardware
Operating System : Microsoft Windows 10 Home Single Language
Process ID : 30112
Processor ID : x86 Family 6 Model 69 Stepping 1, GenuineIntel
Session Key : b1fe821b-c7e0-4c65-aa1f-7a5dc93ef08e
Window System : Version 10.0 (Build 18363)
Fault Count: 1
Abnormal termination:
Access violation
Register State (from fault):
RAX = 0000000000000018 RBX = 0000000000000fa8
RCX = 00000000000000c0 RDX = 0000000000000f98
RSP = 000000011fe4f1d8 RBP = 0000000000000001
RSI = cdbdf8002c587840 RDI = 0000000146fdf700
R8 = 2e2a9c002c587cc0 R9 = 9d5e630000000060
R10 = 000000011fe4f220 R11 = d81b290000000120
R12 = 00000000000000c0 R13 = 00000000000000c0
R14 = 0000000000000000 R15 = 0000000000000f98
RIP = 00000002dd8921a0 EFL = 00010206
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00000002dd8921a0 C:\Program Files\MATLAB\R2019b\bin\win64\mkl.dll+25633184 mkl_serv_iface_deallocate+21872336
[ 1] 0x00000002dc419993 C:\Program Files\MATLAB\R2019b\bin\win64\mkl.dll+04168083 mkl_serv_iface_deallocate+00407235
[ 2] 0x00000002dc03bee9 C:\Program Files\MATLAB\R2019b\bin\win64\mkl.dll+00114409
[ 3] 0x00000002dc03addf C:\Program Files\MATLAB\R2019b\bin\win64\mkl.dll+00110047
[ 4] 0x00000002dc042fcc C:\Program Files\MATLAB\R2019b\bin\win64\mkl.dll+00143308
[ 5] 0x00007ffe80dfbf63 C:\Program Files\MATLAB\R2019b\bin\win64\libiomp5md.dll+01097571 _kmp_invoke_microtask+00000147
[ 6] 0x00007ffe80d700c3 C:\Program Files\MATLAB\R2019b\bin\win64\libiomp5md.dll+00524483 _kmp_acquire_nested_drdpa_lock+00033443
[ 7] 0x00007ffe80d6f36e C:\Program Files\MATLAB\R2019b\bin\win64\libiomp5md.dll+00521070 _kmp_acquire_nested_drdpa_lock+00030030
[ 8] 0x00007ffe80db204b C:\Program Files\MATLAB\R2019b\bin\win64\libiomp5md.dll+00794699 _kmp_launch_worker+00000331
[ 9] 0x00007ffeb6137bd4 C:\WINDOWS\System32\KERNEL32.DLL+00097236 BaseThreadInitThunk+00000020
[ 10] 0x00007ffeb628ced1 C:\WINDOWS\SYSTEM32\ntdll.dll+00446161 RtlUserThreadStart+00000033
Can someone please explain what is going on?
2 个评论
Geoff Hayes
2020-4-13
Dhruv - please post the code for your MEX function and how you are caling it from MATLAB.
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!