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

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

[Octave-bug-tracker] [bug #55287] Memory leak in graphics subsystem


From: Rik
Subject: [Octave-bug-tracker] [bug #55287] Memory leak in graphics subsystem
Date: Mon, 14 Jan 2019 12:17:10 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #53, bug #55287 (project octave):

Okay, I'll take a look at memory.m in a minute.

For the time being, I created tst_leak1.m and tst_leak2.m which are attached. 
I find that for either test, the leaks begin with cset caa5dabc7913.  The
leaks are much faster (roughly 6X) when using plot() vs. set(), but always
there.  Also, I see no decline in memory used with increasing loop iteration. 
The leak is always growing monotonically.  I think the key to understanding
the problem is the referenced changeset.

tst_leak1.m


more off;
i=0;

do
 i += 1;
 if (mod (i,100) == 0)
   disp (i);
 endif

 data = rand (1e5, 1);
 #clf
 #cla
 plot (data);
 drawnow;

until (i > 5e3)


and tst_leak2.m


more off;
i=0;
data = rand (1e5, 1);
h = plot (data);

do
 i += 1;
 if (mod (i,100) == 0)
   disp (i);
 endif

 #clf
 #cla
 set (h, "ydata", rand (1e5, 1));
 drawnow;

until (i > 5e3)




(file #45972, file #45973)
    _______________________________________________________

Additional Item Attachment:

File name: tst_leak1.m                    Size:0 KB
File name: tst_leak2.m                    Size:0 KB


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55287>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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