Can Windows version of Matlab be made to generate crash report without human intervention?

3 views (last 30 days)
I am using R2015b Windows version of matlab to run unit tests. On occasion, during development of a mex component, I do something wrong that results in Matlab segfaulting. This results in the 'MATLAB system error' dialog pop up, where the user is presented with options as described in the help link below.
I wish to run these tests automatically, via Jenkins CI, in batch mode. The command I'm using to run the tests is:
matlab -noFigureWindows -nosplash -r "try, runtests, exit(0), catch, exit(1), end" -wait -logfile matlab-stdout.log
However if I run this manually, and there is a segfault, the 'MATLAB system error' dialog still pops up, requiring me to click through. If I dont manually click through to get the crash report, the program just hangs.
What I would like to happen in batch mode is when a segfault occurs, the crash report is automatically dumped and Matlab terminated, however I cant get this to happen at all. Is this possible? If so, how to do it?
When using Jenkins, and launching Windows slave agents via Java Web Start.
  • Running the Jenkins via JNLP slave agent - the dialog pops up and the program hangs
  • Running the Jenkins slave as a Windows service - no sign of a GUI, but the program still hangs.
Thanks in advance.

Accepted Answer

Philip Borghesani
Philip Borghesani on 3 Dec 2015
There is no documented way to do this in R2015b. I suggest you make a formal request for this feature to support.
  1 Comment
John Grogan
John Grogan on 3 Dec 2015
I suspect you are correct, and will follow up with a feature request.
Is there an undocumented way of doing it, or am I reading too much into your answer?

Sign in to comment.

More Answers (0)

Categories

Find more on Programming in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!