memory leak in canvas.draw() in TkAgg

I also wanted to say:
- Thank you for the patch. I appreciate the chance to try a fix.
- I doubt the issue is related to text because my scripts shows a memory
leak even if the displayed text is never updated (comment out the line
that modifies the x axis limits to see what I mean; though I confess I
did not try that with the trunk matplotlib, only with 1.0.0).

-- Russell

In article <4D028BC7.1000304@...31...>,
Michael Droettboom <mdroe@...31...>
wrote:

I think I'm on to something -- it seems that text layout information has
a cyclical reference that prevents the Text object from being freed.

Can you apply the attached patch and let me know if it solves your issue?

...

If you're able to try this with the 1.0.x SVN branch or the SVN trunk (plus my text patch) let me know. I am not able to reproduce any sort of memory leak with these newer versions, but I am able to with 1.0.0 as released (with or without my text patch). This is with or without the x axis limits updating you suggested. I believe there have been other memory leak fixes since the 1.0.0 release.

Cheers,
Mike

ยทยทยท

On 12/13/2010 08:35 PM, Russell E. Owen wrote:

I also wanted to say:
- Thank you for the patch. I appreciate the chance to try a fix.
- I doubt the issue is related to text because my scripts shows a memory
leak even if the displayed text is never updated (comment out the line
that modifies the x axis limits to see what I mean; though I confess I
did not try that with the trunk matplotlib, only with 1.0.0).

-- Russell

In article<4D028BC7.1000304@...31...>,
  Michael Droettboom<mdroe@...31...>
  wrote:

I think I'm on to something -- it seems that text layout information has
a cyclical reference that prevents the Text object from being freed.

Can you apply the attached patch and let me know if it solves your issue?
     

...

------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
matplotlib-devel List Signup and Options
   
--
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA