I have a memory leak problem in Octave v 10.2.0 running under Manjaro Linux with Gnome . It has existed in earlier versions too, but I’m not sure how far back.
The memory leak starts already at Octave startup, without any Octave command execution.
With Octave running but idle (using octave --gui), it continuously allocates about 1MB memory every seven seconds (analyzed with htop) until it has allocated all memory on computer. It takes a while to consume all memory, many hours, but happens every time I forget to close down Octave and leave the computer running.
It would be great to be able to leave Octave idle without all memory being consumed.
I realize that this may be more of a bug report than a support question, but I didn’t know where to start. Hopefully this can help bring some clarity if more Manjaro/Octave users are affected.
Note: I have posted the same question in the GNU Octave forums, receiving feedback that it is not reproducible on (five) other linux systems, e.g. Fedora.
UPDATE: When running Octave without GUI, the memory leak problem disappears which seems to indicate that it is an isolated Octave GUI issue.
If you want to test if your Octave installation has the same issue, you can run the following code in the Octave GUI (provided by dasergatskov, who has been kind enough to help narrow down the problem to a likely distribution issue):
for jj=1:100, jj, pause(10), [u,s] = memory(); u.ram_used_octave/1024/1024, endfor
If the RAM used (in the 'ans= …" appearing every 10 seconds) keeps increasing, you probably have the same issue. I’m planning to file a bug report and it would be great to know if more Octave users are affected.
My system
OS: Manjaro Linux with Gnome 48.3
Octave version: 10.2.0 (and was present in earlier versions … not sure how far back)
Octave installation method: Pamac installer from Manjaro Official Repositories (extra)
Qt version: 6.9.1
readline version: 8.3.001