From: Eric F. <ef...@ha...> - 2007-07-05 20:20:23
|
Michael Droettboom wrote: > Interesting... > > When you get a chance, would you mind running the attached script? This > is how I was finding object leaks before. It takes a single commandline > argument that is the number of iterations. Can you send me the outputs > from 1 and 2 iterations? That way we should be able to see what type of > object is being leaked, which is a good first step. And here is the result of the script modified for gtk: efiring@manini:~/programs/py/mpl/tests$ python memleak_gui_gtk.py 1 55352 55417 *** <type 'gtk.gdk.Colormap'> *** <class 'matplotlib.backends.backend_gtk.FileChooserDialog'> *** <class 'gtk._gtk.WidgetFlags'> *** <class 'gtk._gtk.WidgetFlags'> *** <type 'gtk.gdk.Window'> *** <class 'matplotlib.backends.backend_gtk.FigureCanvasGTK'> *** <class 'matplotlib.backends.backend_gtk.NavigationToolbar2GTK'> *** <type 'gtk.gdk.Pixmap'> *** <type 'gtk.Tooltips'> *** <type 'gtk.Label'> *** <type 'gtk.Window'> *** <type 'gtk.VBox'> uncollectable list: [] efiring@manini:~/programs/py/mpl/tests$ python memleak_gui_gtk.py 2 55352 55421 *** <type 'gtk.gdk.Colormap'> *** <class 'matplotlib.backends.backend_gtk.FileChooserDialog'> *** <class 'gtk._gtk.WidgetFlags'> *** <class 'gtk._gtk.WidgetFlags'> *** <type 'gtk.gdk.Window'> *** <class 'matplotlib.backends.backend_gtk.FileChooserDialog'> *** <class 'gtk._gtk.WidgetFlags'> *** <class 'gtk._gtk.WidgetFlags'> *** <type 'gtk.gdk.Window'> *** <class 'matplotlib.backends.backend_gtk.FigureCanvasGTK'> *** <class 'matplotlib.backends.backend_gtk.NavigationToolbar2GTK'> *** <type 'gtk.gdk.Pixmap'> *** <type 'gtk.Tooltips'> *** <type 'gtk.Label'> *** <type 'gtk.Window'> *** <type 'gtk.VBox'> uncollectable list: [] Eric |