GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — memory leak with canvas.draw() · Issue #179 · matplotlib/matplotlib Closed DescriptionOriginal report at SourceForge, opened Wed Dec 1 19:00:17 2010 The attached minimal strip chart widget shows a serious memory leak, at least on Mac OS X 10.5 and 10.6. I'm using matplotlib 1.0.0 (from the binary installer), Python 2.6 from python.org, numpy 1.5.0 and ActiveState Aqua Tcl/Tk 8.4.19 (the example uses TkAgg). Michael Droettboom tested the same example using Fedora 14/Python 2.7/Numpy 1.5.1/Tkinter with both matplotlib 1.0 and SourceForge CommentsOn Tue Dec 14 19:10:24 2010, reowen wrote:More information on linux: if I build matplotlib svn trunk rev8840 from source and then run the example it starts out with a slow memory leak (as shown in the last comment) and then grows. However, if I run the example again it starts out leaking at a higher rate and it's not clear if the rate grows with time. For example: bash-3.2$ python matplotlibMemoryLeak.py It appears something is being cached (otherwise why is the leakage in the first run different than all subsequent runs) but it's not in ~/.matplotlib since deleting that makes no difference. On Tue Dec 14 16:32:56 2010, reowen wrote:I tried the test script on linux using matplotlib svn trunk rev8840 time rss memory mem/sec This is different behavior than on Mac OS X (where it starts out large and stays about the same), but still alarming. On Thu Dec 9 17:54:36 2010, reowen wrote:It is actually the call to canvas.draw that does the leak. Is it not supposed to be called multiple times? On Thu Dec 9 17:42:17 2010, reowen wrote:The leak shows up on unix as well. It seems to occur whenever the X axes limits are changed (something that happens frequently for a strip chart). See the new attached script which is much simpler than the first one and reports memory usage. The leak rate is at least roughly proportional to how frequently the x axes are changed (the value of updateInterval). SourceForge History
Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |