bugGNU Octave - Bugs: bug #50696, Iterating "saveas" or...

 
 

bug #50696: Iterating "saveas" or "print" function crashes after many iterations (e.g. 500)

Submitted by:  None
Submitted on:  Sat Apr 1 12:02:36 2017  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Unexpected Error
Status: NoneAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: OpenRelease: 4.2.1
Operating System: Microsoft Windows

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat Apr 1 12:02:36 2017, original submission:

% Iterating "saveas" or "print" function crashes after many iterations (e.g. 500):

% given the following set up where we have an array of vectors we wish to plot, loading vectors in loop, performing plotting, labelling and saving works successfully up to a limit. Above this limit, the octave engine crashes. In the GUI I reach a limit of 505 plots, in the CLI I reach the limit of 509 plots.

for i = dataIndex = 1:N %(e.g. N = 1000)

v1 = csvread(strcat(PATHTOFILE,v1Data(dataIndex ).name));
v2 = csvread(strcat(PATHTOFILE,v2Data(dataIndex ).name));

% assuming length(v1) == length(v2) - my measurements were length(v1) == length(v2) == circa 40 to 50

h = figure;

plot(v1,v2,'-ob');

title(num2str(dataIndex));
u = max(max(v1,v2));

xlim([0 u]);
ylim([0 u]);
xlabel('v1');
ylabel('v2');

drawnow;

% following assumes filenames are preallocated in filenameout:
saveas(h,strcat(SAVEDIR,filenameout(dataIndex).name,'.png'),'png');
% OR:
%print(h,strcat(SAVEDIR,filenameout(dataIndex).name,'.png'),'-dpng');

close(h)

end

The Windows system resources are very far from saturation. Can anyone else replicate this condition or similar?

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only project members can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

No Changes Have Been Made to This Item

Back to the top


Powered by Savane 3.1-cleanup1