I tried the test script on linux using matplotlib svn trunk rev8840 
(which appears to include your patch) and found a leak that starts out 
small but gets systematically larger. This is with Python 2.6.5 and 
Tkinter built against Tcl/Tk 8.4.13.

Is anyone else seeing this?

time   rss memory    mem/sec
(sec)     (kb)      (kb/sec)
   0.0    36816       nan
   5.0    36860       nan
  10.0    36860       0.0
  15.1    36860       0.0
  20.1    36860       0.0
  25.1    36896       1.8
...
 326.5    36896       0.1
 331.6    36972       0.3
...
 401.9    36972       0.3
 406.9    36980       0.3
 411.9    37004       0.4
 417.0    37016       0.4
 422.0    37040       0.4
 427.0    37052       0.5
 432.0    37076       0.5
 437.1    37088       0.5
 442.1    37112       0.6
 447.1    37124       0.6
 452.1    37148       0.6
 457.2    37160       0.7
 462.2    37184       0.7
 467.2    37196       0.7
 472.2    37220       0.8
 477.3    37232       0.8
 482.3    37256       0.8
 487.3    37268       0.8
 492.3    37292       0.9
 497.3    37304       0.9
 502.3    37328       0.9
 507.4    37340       1.0
 512.4    37360       1.0
 517.4    37376       1.0
 522.4    37396       1.0
 527.5    37412       1.1
 532.5    37432       1.1
 537.5    37448       1.1
 542.5    37472       1.1
 547.6    37488       1.2
 552.6    37504       1.2
 557.6    37516       1.2
 562.6    37540       1.2
 567.6    37556       1.2
 572.7    37576       1.3
 577.7    37592       1.3
 582.7    37612       1.3
 587.7    37628       1.3
 592.7    37648       1.3
 597.8    37664       1.4
 602.8    37684       1.4
 607.8    37700       1.4

This is different behavior than on Mac OS X, but still alarming.

-- Russell

In article <4d07a8a0.5000...@stsci.edu>,
 Michael Droettboom <md...@stsci.edu> 
 wrote:

> 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.1000...@stsci.edu>,
> >   Michael Droettboom<md...@stsci.edu>
> >   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
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to