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

I
imran_sinha · Jan 2, 2024 · 2.5K views
Question
MATLAB encountered a crash. How do I locate the crash log files on my computer.   
Expert Answer
Profile picture of Kshitij Singh
Kshitij Singh PhD Expert
Answered Aug 30, 2026
When MATLAB crashes, up to three log files may be generated with the following names:
 
 
matlab_crash_dump.XXXX
java.log.XXXX
hs_error_pidXXXX.log
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 "hs_error_pid3944".  
 

 

 
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:
 

 

Windows
 
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:
%temp%

or manually navigate to

C:\Users\%username%\AppData\Local\Temp
Linux
 
On Linux, crash dumps are saved to your home folder. Type "cd ~" or "cd /home/$USER/" to navigate to your home folder.

 

Mac
 
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.
100% Run Guarantee 3-Hour Fast-Track Delivery

Need a Custom Version or Complete Simulation for This Problem?

Our 500+ PhD engineers build, debug, and optimize working MATLAB scripts and Simulink (.slx) models tailored to your exact assignment rubrics with zero plagiarism.

Tested on MATLAB R2024b / R2026a
Turnitin 0% Plagiarism Report
Free 7-Day Revisions Guarantee
Have a different question? Ask here

Get a Free Consultation or a Sample Assignment Review!