On Wed, Nov 2, 2011 at 20:39, Michael Droettboom <md...@stsci.edu> wrote: > I'm not able to reproduce this, but I've seen similar issues in the > past. Can you tell me if this patch fixes it for you?
Nope, it doesn't. > diff --git a/lib/matplotlib/backends/backend_gtk.py > b/lib/matplotlib/backends/backend > index 1012bbe..2efb72a 100644 > --- a/lib/matplotlib/backends/backend_gtk.py > +++ b/lib/matplotlib/backends/backend_gtk.py > @@ -556,6 +556,10 @@ class FigureManagerGTK(FigureManagerBase): > self.window.destroy() > if hasattr(self, 'canvas'): > self.canvas.destroy() > + del self.toolbar > + del self.vbox > + del self.window > + del self.canvas > self.__dict__.clear() #Is this needed? Other backends don't > have it. > > if Gcf.get_num_fig_managers()==0 and \ > > > On 11/02/2011 01:23 PM, Sandro Tosi wrote: >> Hi, >> >> On Wed, Nov 2, 2011 at 18:12, John Jameson<jwin...@gmail.com> wrote: >>> In the meantime I notice that with MPL v1.1.0 the program crashes at the end >>> a most of my old MPL example programs (I use the GTKAgg backend for all of >>> them). A typical way to end the program is: >>> >>> gtk.main_quit() >>> >>> raise SystemExit >>> >>> and it crashes on the call the ''raise SystemExit". A typical output is >>> >>> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py:552: >>> GtkWarning: gtk_widget_unrealize: assertion `GTK_IS_WIDGET (widget)' failed >>> >>> self.toolbar.destroy() >>> >>> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py:552: >>> GtkWarning: gtk_widget_is_toplevel: assertion `GTK_IS_WIDGET (widget)' >>> failed >>> >>> self.toolbar.destroy() >>> >> it happens also on Debian: >> >> $ python >> Python 2.7.2+ (default, Oct 5 2011, 10:41:47) >> [GCC 4.6.1] on linux2 >> Type "help", "copyright", "credits" or "license" for more information. >>>>> import matplotlib >>>>> matplotlib.use('GTKAgg') >>>>> from matplotlib import pyplot as plt >>>>> plt.plot((1,2), (2,4)) >> [<matplotlib.lines.Line2D object at 0x2f7e6d0>] >>>>> plt.show() >> /usr/lib/pymodules/python2.7/matplotlib/backends/backend_gtk.py:552: >> GtkWarning: IA__gtk_widget_unrealize: assertion `GTK_IS_WIDGET >> (widget)' failed >> self.toolbar.destroy() >> /usr/lib/pymodules/python2.7/matplotlib/backends/backend_gtk.py:552: >> GtkWarning: IA__gtk_widget_is_toplevel: assertion `GTK_IS_WIDGET >> (widget)' failed >> self.toolbar.destroy() >> Segmentation fault >> >> Cheers, > > > ------------------------------------------------------------------------------ > RSA(R) Conference 2012 > Save $700 by Nov 18 > Register now > http://p.sf.net/sfu/rsa-sfdev2dev1 > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > -- Sandro Tosi (aka morph, morpheus, matrixhasu) My website: http://matrixhasu.altervista.org/ Me at Debian: http://wiki.debian.org/SandroTosi ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users