MATLAB Answers

How do I locate the crash dump files generated by MATLAB?

724 views (last 30 days)
MATLAB crashed and I would like to locate the crash log files on my computer.
Why do I get the error MATLAB has encountered an internal error and needs to close?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 18 Oct 2021 at 4:00
Edited: MathWorks Support Team about 19 hours ago
When MATLAB crashes, up to three log files may be generated with the following names:
The filenames will not have XXXX in them, but rather a number representing the process ID. For example, you might see crash dumps named "matlab_crash_dump.3944," "java.log.3944," and "hserrorpid3944".  
You can use the following MATLAB File Exchange submission to extract the logs MATLAB generates:
If MATLAB is started with the '-logfile' option, a separate crash file is not created. Instead, the crash information is written to the end of the log file specified by the '-logfile' option.You can also manually locate for the crash dumps:
On Windows these files are located in the folder where the operating system stores temporary files. To open your temp directory, enter the following into the search field in your Start Menu/Start Screen/Taskbar:
or manually navigate to
On Linux, crash dumps are saved to your home folder. Type "cd ~" to navigate to your home folder.
On Mac, crash dumps are saved to your home folder. From the Finder, click the "Go" menu and select "Home" to open your Home folder.
  1 Comment
Qu Cao
Qu Cao on 26 Oct 2016
On windows, the path can be C:\Users\$YourName$\AppData\Local\Temp

Sign in to comment.

More Answers (5)

taha imtiaz
taha imtiaz on 22 Feb 2017
how to get the lisence no.
Qu Cao
Qu Cao on 15 May 2017
Type the following command in MATLAB command window:

Sign in to comment.

bymba jav
bymba jav on 17 Dec 2020
I am sorry that MATLAB is crashing. Please contact technical support so that we can help you resolve the issue:

Community Treasure Hunt

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

Start Hunting!