Donate Share

matplotlib

Tracker: Bugs

5 pylab with PyQt4 backend dies - ID: 2869564
Last Update: Comment added ( sirver )

This is a very tough one:

I have three Mac OS X computers (10.5.8). All run exactly the same sofware
(python 2.6, qt, pyqt, numpy 1.3.0, scipy 0.7.1, matplolib 0.99.1.1; all
installed from the same version with same ports version of MacPorts). Xcode
and gcc version is also the same.

When I do the following (i configured the PyQt4Agg backend on all
machines):
ipython -pylab

t = linspace(0,2*pi,2000)
plot(t,sin(t))

close("all") # <- this line crashes on 1 of the three macs

The last line crashes on one of the computers, but not on the others. A fix
(or workaround?) that avoids this crash is commenting the line 281 in
backend_qt4.py in matplotlib.

if self.toolbar: self.toolbar.destroy()

I am not sure if the this introduces a memory leak, but it fixes the crash
issue.


Can somone comment on this interesting bug?

Cheers,
Holger


Holger Rapp ( sirver ) - 2009-09-29 08:28

5

Open

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )

Date: 2009-10-05 09:14
Sender: sirverAccepting Donations

Since putting this up, I updated to Snow leopard (10.6) and had to rebuild
matplotlib for 64 bit. This problem has since vanished; another bug showed
itself though. I opened a new bug ticket for it.


Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.