Dynare 5.3 Warning

when I run dynare(5.3) , code like:

%
clear; clc;close all
iis=[0:0.1:2];
save_resultsa =zeros(length(iis),1);

if exist(‘save_resultsa.mat’,‘file’)
delete save_resultsa.mat
end
for i=1:length(iis)
ii=iis(i);
theta =0.9;
dynare PPmau nograph noclearall;
save_resultsa(i,1) = oo_.osr.objective_function*10000;

end
save save_resultsa;
%
clear; clc;close all
iis=[0:0.1:2];
save_resultssmall =zeros(length(iis),1);

if exist(‘save_resultssmall.mat’,‘file’)
delete save_resultssmall.mat
end
for i=1:length(iis)
ii=iis(i);
theta =0.25;
dynare PPmau nograph noclearall;
save_resultssmall(i,1) = oo_.osr.objective_function*10000;

end
save save_resultssmall;
then it appeared :
Warning: MATLAB previously crashed due to an underlying graphics error. To avoid another crash during this session, MATLAB uses the software OpenGL
Instead of using graphics hardware. To save the setting for future sessions, use the opengl(‘save’, ‘software’) command
Cause. For more information, see Troubleshooting Underlying Graphics Issues.

When I run it with the same code afterwads ,the computer automatically exits in the middle of operation. How to deal with this problem in general ?

That message is usually not Dynare-related but suggests a graphics problem in Matlab.

got it ! Thanks!