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: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #55287] Memory leak in graphics subsystem
Date: Fri, 18 Jan 2019 04:09:32 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0

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

@Rik: The strlist is meant for printing tex formated stings, not for caching.
Clearly, I don't understand why strlist.clear(), which is called before each
string rendering, does not free the consumed memory. Also, I don't understand
why this memory increase only happens for the very first axes (clf, will clear
the figure and avoid any further increase of the consumed memory).

I attached a preliminary patch that prevents the strlist from being filled
unless it is actually needed (when text_to_strlist is called). This fixes the
issue for me until I issue a "print" command. At that point I see an increase
of the consumed memory of 20MB, and then the consumed memory becomes more or
less stable whether or not I issue other "print" commands.



(file #46002)
    _______________________________________________________

Additional Item Attachment:

File name: protect_strlist.patch          Size:7 KB


    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

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