MATLAB Answers

4

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

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?

5 Answers

Answer by MathWorks Support Team on 5 Apr 2019
Edited by MathWorks Support Team on 5 Apr 2019
 Accepted Answer

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".
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:
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\$YourName$\AppData\Local\Temp
In some instances, the crash log may instead be located in the user-path directory. To identify this directory, execute the following command in the MATLAB Command Prompt:
userpath
Linux: On Linux, crash dumps are saved to your home folder. Type "cd ~" 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.

  1 Comment

On windows, the path can be C:\Users\$YourName$\AppData\Local\Temp

Sign in to comment.


Answer by taha imtiaz on 22 Feb 2017

how to get the lisence no.

  2 Comments

Hello Taha,
You can locate your MATLAB license number by logging into your MathWorks account on www.mathworks.com and viewing your account. Alternatively, if can launch MATLAB then type the command below into MATLAB and it will tell you your number.
ver
If you need further assistance, please contact us so we can help you resolve the issue.
Type the following command in MATLAB command window:
ver

Sign in to comment.


Answer by taha imtiaz on 22 Feb 2017

how to install install no

  0 Comments

Sign in to comment.


Answer by Hussain Ali on 5 May 2018

I have this problem

  0 Comments

Sign in to comment.


Answer by Hussain Ali on 5 May 2018

Matlab2015a crashes

  1 Comment

Hello Hussain,
I am sorry that MATLAB is crashing. Please contact technical support so that we can help you resolve the issue:

Sign in to comment.