octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #50696] Iterating "saveas" or "print" function


From: anonymous
Subject: [Octave-bug-tracker] [bug #50696] Iterating "saveas" or "print" function crashes after many iterations (e.g. 500)
Date: Sat, 1 Apr 2017 08:02:37 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36 OPR/44.0.2510.857

URL:
  <http://savannah.gnu.org/bugs/?50696>

                 Summary: Iterating "saveas" or "print" function crashes after
many iterations (e.g. 500)
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Sat 01 Apr 2017 12:02:36 PM UTC
                Category: Plotting
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Unexpected Error
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

% 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? 




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50696>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]