suspect memory leak in Agg backend

Hi all guys,
I'm experiencing a problem with automatic generation of .png figure using Agg
backend. What i do is opening, saving and closing figure in a for statement
without showing them up.
Let's say approximatively 400 figures for a total of 160 MB disk space.
I do not use an interactive shell.
Sometimes (not always) i get an error message saying that is impossible to
allocate new memory. So, can it be a memory leak problem in Agg backend ?

I use Python 2.3 and maptplotlib 0.87.6 on a
Linux HPC5 2.6.9-42.0.2.ELhugemem #1 SMP Thu Aug 17 18:22:52 EDT 2006 i686
athlon i386 GNU/Linux

···

--
--
Emanuele Passera

I'm been looking at a lot of memory leaks as of late, but have not come across any in the Agg backend. Can you send a snippet of code that reproduces your error? Perhaps there is some particular operation or set of operations that triggers a leak.

Cheers,
Mike

Emanuele Passera wrote:

···

Hi all guys,
I'm experiencing a problem with automatic generation of .png figure using Agg backend. What i do is opening, saving and closing figure in a for statement without showing them up.
Let's say approximatively 400 figures for a total of 160 MB disk space.
I do not use an interactive shell.
Sometimes (not always) i get an error message saying that is impossible to allocate new memory. So, can it be a memory leak problem in Agg backend ?

I use Python 2.3 and maptplotlib 0.87.6 on a Linux HPC5 2.6.9-42.0.2.ELhugemem #1 SMP Thu Aug 17 18:22:52 EDT 2006 i686 athlon i386 GNU/Linux

Take a look at unit/memleak_hawaii3.py. Does it leak on your system?
If not (and it does not appear to be on ourson ours), maybe you can
compare what is different and try and isolate the part that is
leaking.

http://matplotlib.svn.sourceforge.net/viewvc/matplotlib/trunk/matplotlib/unit/memleak_hawaii3.py?view=markup

JDH

···

On 7/13/07, Emanuele Passera <emanuele.passera@...1676...> wrote:

Hi all guys,
I'm experiencing a problem with automatic generation of .png figure using Agg
backend. What i do is opening, saving and closing figure in a for statement
without showing them up.
Let's say approximatively 400 figures for a total of 160 MB disk space.
I do not use an interactive shell.
Sometimes (not always) i get an error message saying that is impossible to
allocate new memory. So, can it be a memory leak problem in Agg backend ?