MATLAB crashes with no displayed error

9 visualizzazioni (ultimi 30 giorni)
Kyle
Kyle il 21 Nov 2013
Risposto: Prateekshya il 25 Lug 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?

Risposte (1)

Prateekshya
Prateekshya il 25 Lug 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.

Categorie

Scopri di più su Startup and Shutdown in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by