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

11 次查看(过去 30 天)
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.

采纳的回答

Philip Borghesani
Philip Borghesani 2015-12-3
There is no documented way to do this in R2015b. I suggest you make a formal request for this feature to support.
  1 个评论
John Grogan
John Grogan 2015-12-3
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?

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by