Why does MATLAB crash with "MATLAB has encountered an internal error and needs to close"?

221 views (last 30 days)
When working in MATLAB, the program crashes and reports:
ERROR: "MATLAB has encountered an internal error and needs to close".
How can I troubleshoot this issue?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 1 Feb 2021
Edited: MathWorks Support Team on 6 Feb 2021
This is a generic error message indicating that there was an exception or problem within MATLAB that caused it to crash. This is a generic error message, and there are many possible reasons for MATLAB to crash.
Here are common troubleshooting steps you can attempt before contacting Mathworks support.
Why will MATLAB not start up properly on my windows based system?
https://www.mathworks.com/matlabcentral/answers/97167 
Locate the MATLAB crash log or crash dump file
, which may shed light on what caused the crash. The crash log/dump files can be read with a text editor such as Notepad, vi, or nano. Details on how to locate the crash log/dump file are available here:
How do I locate the crash dump files generated by MATLAB? 
http://www.mathworks.com/matlabcentral/answers/100816
If you are unable to determine the cause of the crash based on the information in the crash log, please contact MathWorks support for assistance. You may be asked to provide the crash dump files along with details of what operation you were performing in MATLAB at the time of the crash.
When contacting support, you can call our support team for your region, or submit a support request through your MathWorks account at MathWorks.com. When submitting through MathWorks.com, please attach the crash dump file when submitting the support case.
MathWorks Support information is available here:

More Answers (2)

mahdi shaddoust
mahdi shaddoust on 2 Jan 2021
Hello,
Unfortunately, I have this problem in my trial version Matlab R2016b. I have reached the crash dump file but do not know what is the problem.
The matlab crash dump file is attached. I hope you help me.
Thanks in advance, mahdi
  1 Comment
Rik
Rik on 2 Jan 2021
As mentioned in the answer: contact support. What you did is posting an answer (without attaching the crash dump file).

Sign in to comment.


Indu Mahato
Indu Mahato on 25 Jan 2022 at 16:09
I am getting error while taking help documents
MATLAB Log File: C:\Users\FMCD\AppData\Local\Temp\matlab_crash_dump.1548-1
------------------------------------------------
MATLAB Log File
------------------------------------------------
--------------------------------------------------------------------------------
Access violation detected at 2022-01-25 13:29:16 +0530
--------------------------------------------------------------------------------
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 630 Version 23.20.16.4849 (2017-10-27)
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 10 Pro
Process ID : 1548
Processor ID : x86 Family 6 Model 158 Stepping 9, GenuineIntel
Session Key : 3fc4ae97-9884-4f47-a51e-a31855726bc7
Window System : Version 10.0 (Build 16299)
Fault Count: 1
Abnormal termination:
Access violation
Current Thread: 'CrBrowserMain' id 12428
Register State (from fault):
RAX = 0000000000000000 RBX = 0000000000000001
RCX = 000002725c16ec20 RDX = 0000027258d69a20
RSP = 00000092423fe920 RBP = 0000000000000000
RSI = 0000027258d69a20 RDI = 0000027258d69a20
R8 = 0000000000000001 R9 = 000000000000003f
R10 = 0000000000000000 R11 = 00000092423fe990
R12 = 00000092423fed70 R13 = 0000027258d69a20
R14 = 00000092423febc8 R15 = 00000092423fed90
RIP = 00007ffe541fa2a7 EFL = 00010202
CS = 0033 FS = 0053 GS = 002b
Stack Trace (from fault):
[ 0] 0x00007ffe541fa2a7 C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+16622247 cef_string_map_size+15524711
[ 1] 0x00007ffe556d29f7 C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+38480375 cef_string_utf16_to_upper+04106930
[ 2] 0x00007ffe567ac53c C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+56149308 VR_GetStringForHmdError+05223931
[ 3] 0x00007ffe567ac2f1 C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+56148721 VR_GetStringForHmdError+05223344
[ 4] 0x00007ffe567abeaa C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+56147626 VR_GetStringForHmdError+05222249
[ 5] 0x00007ffe5780852e C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+73303342 VR_GetStringForHmdError+22377965
[ 6] 0x00007ffe532d4b95 C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+00740245 cef_zip_reader_create+00437869
[ 7] 0x00007ffe553d3262 C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+35336802 cef_string_utf16_to_upper+00963357
[ 8] 0x00007ffe55bf6aa5 C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+43870885 GetHandleVerifier+00248181
[ 9] 0x00007ffe553d7463 C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+35353699 cef_string_utf16_to_upper+00980254
[ 10] 0x00007ffe553d706b C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+35352683 cef_string_utf16_to_upper+00979238
[ 11] 0x00007ffe553d1ca6 C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+35331238 cef_string_utf16_to_upper+00957793
[ 12] 0x00007ffe553d2547 C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+35333447 cef_string_utf16_to_upper+00960002
[ 13] 0x00007ffe553e1b68 C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+35396456 cef_string_utf16_to_upper+01023011
[ 14] 0x00007ffe55345a71 C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+34757233 cef_string_utf16_to_upper+00383788
[ 15] 0x00007ffe55bafdd9 C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+43580889 cef_time_delta+00266853
[ 16] 0x00007ffe55bafb61 C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+43580257 cef_time_delta+00266221
[ 17] 0x00007ffe55382764 C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+35006308 cef_string_utf16_to_upper+00632863
[ 18] 0x00007ffe55381eee C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+35004142 cef_string_utf16_to_upper+00630697
[ 19] 0x00007ffe55bb05d8 C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+43582936 cef_time_delta+00268900
[ 20] 0x00007ffe55330a4e C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+34671182 cef_string_utf16_to_upper+00297737
[ 21] 0x00007ffe55b5dbdd C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+43244509 IsSandboxedProcess+03755176
[ 22] 0x00007ffe55387e6d C:\Program Files\Polyspace\R2021a\bin\win64\libcef.dll+35028589 cef_string_utf16_to_upper+00655144
[ 23] 0x00007ffebacc1fe4 C:\windows\System32\KERNEL32.DLL+00073700 BaseThreadInitThunk+00000020
[ 24] 0x00007ffebcd6efb1 C:\windows\SYSTEM32\ntdll.dll+00454577 RtlUserThreadStart+00000033

Community Treasure Hunt

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

Start Hunting!