|
From: | Donald Boucher |
Subject: | octave memory leak |
Date: | Mon, 19 Feb 2018 16:08:15 +0000 |
Greetings,
I am using ubuntu 16.04 and octave 4.2.1. I am having some memory issues when trying to redraw any figure. My memory usage keeps getting larger and larger. It's like octave is making new objects instead of reusing the existing one. When I call delete, the memory usage does not go down. I suspect that this is due to ubuntu's memory management rather than a fault on octave's side.
myBar = waitbar(0, 'testing...');
numBars = 50; numRepeat = 200; counter = 0; for j = 1:numRepeat for i = 1:numBars msg = sprintf('testing... %d/%d\n%d/%d', i, numBars, j, numRepeat); myBar = waitbar(i/numBars, hwbar=myBar, msg); counter = counter + 1; end end delete(myBar); printf('finished'); Thanks. |
[Prev in Thread] | Current Thread | [Next in Thread] |