[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #55052] Memory consumption of figure command g
John W. Eaton
[Octave-bug-tracker] [bug #55052] Memory consumption of figure command going up significantly from 4.2 to 4.4
Fri, 20 Jan 2023 12:26:23 -0500 (EST)
Follow-up Comment #14, bug #55052 (project octave):
While investigating this problem, I also noticed a leak when just creating a
figure and exiting Octave. With current dev sources (revision eb32cf98eed1)
built on my debian system, the problem showed up in the address sanitizer
report like this:
Indirect leak of 1376256 byte(s) in 4 object(s) allocated from:
#0 0x7f6d250b7ffd in __interceptor_posix_memalign
This leak happened for me if I started Octave and executed
If I executed the figure function N times and then quit, the log showed a
larger number of bytes lost in N*4 objects allocated from somewhere in
>From what I could tell, the leak seemed to happening inside QOpenGLWidget.
In an attempt to find exactly where inside QOpenGLWidget the leak was
happening, I tried installing debugging symbols for the Qt libraries. But
that forced an upgrade (I'm running debian testing) and then afterward, with
NO changes to Octave, I'm now unable to detect the leak. I'm not sure what
changed. I'm now using Qt 5.15.8 and Mesa 22.3.3. Previously I believe it
was Qt 5.15.2 and Mesa 20.3.5.
Unless someone can point to how we are using QOpenGLWidget incorrectly in a
way that would cause this leak, then I have to conclude that it is either a
bug in Qt (that may be fixed now) or a bug in the OpenGL libraries.
As part of digging into Octave's use of QOpenGLWidget, I did make the
following change, but it is not what made the memory leak disappear for me.
Reply to this item at:
Message sent via Savannah