MATLAB crashes with no displayed error

11 visualizaciones (últimos 30 días)
Kyle
Kyle el 21 de Nov. de 2013
Respondida: Prateekshya el 25 de Jul. de 2024
I am running automated testing of Simulink models in MATLAB R2010b SP1 and R2012b via Jenkins. MATLAB is run from the command line under the System user account and output is logged using the logfile command line parameter.
Most of the time everything runs as expected but on occasion R2012b just terminates with an exit code of -1073741819 and there are no errors displayed in the log. The same tests are run in parallel in R2010b with no problems. The crashes seem random, I have not found a way to reproduce it. Without making any changes, the tests can be rerun without the crash occurring. It seems to crash once in about every 10-15 runs.
Does this error code have any meaning? Are there log files anywhere else that would tell why it exited?

Respuestas (1)

Prateekshya
Prateekshya el 25 de Jul. de 2024
Hello Kyle,
The exit code -1073741819 (or 0xC0000005 in hexadecimal) typically indicates an access violation error, which means that MATLAB attempted to access memory that it was not allowed to. Here are a few steps that you can take to resolve this issue:
  • When MATLAB crashes, it often generates a crash dump file ('.dmp' or '.mdmp' on Windows) and a log file ('matlab_crash_dump.log'). Check the 'bin' directory of your MATLAB installation or the current working directory for these files.
  • MATLAB has built-in diagnostic tools that can help identify issues. For example, you can use 'dbstop if error' to enter debug mode when an error occurs.
> dbstop if error
  • Update MATLAB to the latest version which might resolve the error.
I hope this helps!
Thank you.

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by