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: Dmitri A. Sergatskov
Subject: [Octave-bug-tracker] [bug #50696] Iterating "saveas" or "print" function crashes after many iterations (e.g. 500)
Date: Mon, 3 Jul 2017 22:25:57 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

Follow-up Comment #2, bug #50696 (project octave):

It seems to me that the bug here is octave leaking open file handles (i.e. it
creates and deletes files without closing them).
The crash happens becqause you exceed ulimit on number of open files. 
I modified (simplified) the script to:

1;
for ii=1:200
 plot(rand(10))
 title(ii)
 print('figs/testCrash.svg');
endfor


every time i run it I see number of open files 
(as reported by "lsof | grep octave | wc -l") is increasing by 200. Eventually
it reaches my ulimit and octave crashes.

(this is with a recent developemnt snapshot)

Dmitri.
-- 
 

    _______________________________________________________

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]