Problem of memory for image buffer

Hi all,

I have a problem of free memory for image buffer when I use Matplotlib (the last version on linux).
What i'm doing is that I create 4 figures in the same time, I save my plots and I close them. After that, I create 4 new figures, save them and close them... I do that many times and after a moment, a problem occurs.
I obtain this message : "<class '_tkinter.TclError'>: not enough free memory for image buffer" and my program stops.

Does anyone have a solution for this problem ?
Thanks a lot
M.

Have a look here for some information about memory leaks:

http://matplotlib.sourceforge.net/faq.html#LEAKS

Can you provide a small standalone script that reproduces the error? It is possible that the figures are not being destroyed correctly because an extra reference is being held to them or something of that sort.

Cheers,
Mike

Maxime Bois wrote:

···

Hi all,

I have a problem of free memory for image buffer when I use Matplotlib (the last version on linux).
What i'm doing is that I create 4 figures in the same time, I save my plots and I close them. After that, I create 4 new figures, save them and close them... I do that many times and after a moment, a problem occurs.
I obtain this message : "<class '_tkinter.TclError'>: not enough free memory for image buffer" and my program stops.

Does anyone have a solution for this problem ?
Thanks a lot
M.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

Tahnk you for the link.

In fact, I don't know what's happen yesterday because I can't reproduce the error. I launch again my program and everything is good, I don't have the error anymore...

Cheers,
Maxime

Michael Droettboom a �crit :

···

Have a look here for some information about memory leaks:

http://matplotlib.sourceforge.net/faq.html#LEAKS

Can you provide a small standalone script that reproduces the error? It is possible that the figures are not being destroyed correctly because an extra reference is being held to them or something of that sort.

Cheers,
Mike

Maxime Bois wrote:

Hi all,

I have a problem of free memory for image buffer when I use Matplotlib (the last version on linux).
What i'm doing is that I create 4 figures in the same time, I save my plots and I close them. After that, I create 4 new figures, save them and close them... I do that many times and after a moment, a problem occurs.
I obtain this message : "<class '_tkinter.TclError'>: not enough free memory for image buffer" and my program stops.

Does anyone have a solution for this problem ?
Thanks a lot
M.

-------------------------------------------------------------------------

Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users