MATLAB: How to troubleshoot a crash in MATLAB due to a Simulink model running in “Accelerator” or “Rapid accelerator” mode

acceleratorcrashMATLABrapidsimulink

What are useful steps to troubleshoot a MATLAB crash due to a Simulink model running either in "Accelerator" or "Rapid accelerator" mode, particularly when no crash report has been generated?

Best Answer

  1. Can the same issue be reproduced with a demo model, like "vdp.slx"? What happens when you try to run the demo model "vdp.slx" in accelerator mode?
  2. The following article could be useful to retrieve crash log files from MATLAB, even if it seems like no crash dialog was displayed:https://www.mathworks.com/matlabcentral/answers/100816-how-do-i-locate-the-crash-dump-files-generated-by-matlab
  3. Try deleting the automatically generated files and folders such as the "slprj" folder and cache files (.SLXC). 
  4. Check the current compiler being used with "mex -setup". If Visual Studio Compiler is not an option to change to, download the free version and choose it as the new Compiler.
  5. Even if MATLAB shut down suddenly without warning, Windows might have kept track of the crash. Windows 7 and 10 have a tool called "Reliability Monitor". This can be found in "System and Security" -> "Security and Maintenance" in the Control Panel. This tool keeps tracks of all crashes and it might contain important information. The reliability monitor keeps track of "Critical Events" which are for instances programs that shut down suddenly and unexpectedly. It might be helpful checking if MATLAB is listed there. If this is not the case, the Critical Event window can be checked in order to see more details about the issue. This report might point to a DLL which could be the source of the sudden crash.