Skip to content

Commit 716f9fb

Browse files
committed
250731.201243.PDT try doing "close all" immediately after saving the figures
1 parent 32be33d commit 716f9fb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

matlab/tests/private/perfdata.m

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
function summary_file = perfdata(solvers, options)
22

3-
% Close all figures. Closing figures can release memory associated with them, which is important
4-
% when we run the tests on GitHub Actions, where the memory is limited.
5-
close all;
6-
73
data_dir = options.data_dir;
84
test_feature = options.test_feature;
95
feature_and_time = [test_feature, '.', options.time];
@@ -159,6 +155,11 @@
159155
set(gcf,'position',[0, 0, 4600, 920]);
160156
saveas(hfig, epsname, 'epsc2');
161157

158+
% Close all figures. Closing figures can release memory associated with them, which is important
159+
% when we run the tests on GitHub Actions with GitHub-hosted runners Without doing this, the hosted
160+
% runners may shut down due to memory exhaustion, as it happened on 20250731 with MATLAB R2025a.
161+
close all;
162+
162163
% Try converting the eps to pdf.
163164
try
164165
system(['epstopdf ',epsname]);

0 commit comments

Comments
 (0)