[Top][All Lists]

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

Re: [OctDev] is memory leak of figure

From: Daniel J Sebald
Subject: Re: [OctDev] is memory leak of figure
Date: Wed, 30 Mar 2011 21:37:44 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Thunderbird/3.1.9

On 03/30/2011 09:16 PM, Ben Abbott wrote:

On Mar 30, 2011, at 9:53 PM, Daniel J Sebald wrote:

On 03/30/2011 08:45 PM, welkin zzp wrote:
      When I close a figure window, I observed that the gnuplot and
gnuplot_x11 processes were always in the system,but didn't work, until
quit octave . I didn't known if it's a memory leak ,but I have to
frequently quit octave after having close few figure windows. The
version of octave is 3.4.0 on ubuntu systerm.


This topic might be more appropriate for the maintainers list, so I'm cc'ing 

 From what I recall, Octave currently launches a separate instance of gnuplot 
for each figure.  (Because gnuplot only saves the data/state for the most 
current plot.)  But I'm not sure if what you describe is the intended behavior 
or not, i.e., that gnuplot hangs around in case Octave needs to use it again.  
If not, perhaps you could give a more detailed description with examples.  
Maybe the behavior can be improved.



When you "close" a figure, do you type ...

        close (hfig)

.... or do you close the figure window using the mouse?

If the first, then the gnuplot session associated with the figure should 
terminate. However, for the latter, the gnuplot session remains open. Since 
there is no synchronous communication from gnuplot to octave, there is no 
method for Octave to become aware that the figure has been closed.

If this functionality is important for you, please try using the fltk backend. 
This can be turned on by ...

        graphics_toolkit fltk



Should I propose a new feature for gnuplot that will cause an exit if an interactive window is closed? Should it be just X11 or any GUI based window? Or, will there be a remaining issue of a dead end process ID in Octave? Can Octave figure out from the process ID if it is still active or not?

Of course, this is sort of a kludge feature because what we really want is for gnuplot to save data for each plot so that there is only one instance of gnuplot running.


reply via email to

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