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

조회 수: 5 (최근 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