saving png under XP crashes ...

Hi,

I can confirm the crash of python.exe when saving PNG files using matplotlib 0.98.5.3 under Python 2.5.4 and 2.6.2 (32 bit binaries from python.org) on Windows Vista 64 bit. Saving to a PDF file works. The crash occurs in _png.write_png(). When replacing the file _png.pyd with version 0.98.5.2 saving of PNG files works. There were no changes in the write_png function since 0.98.5.2.

import matplotlib
matplotlib.use('Agg')
from matplotlib import pylab
pylab.plot([0], [0])
pylab.savefig("test.png") # crashes here
pylab.close()

Thanks,

Christoph

Christoph Gohlke wrote:

Hi,

I can confirm the crash of python.exe when saving PNG files using matplotlib 0.98.5.3 under Python 2.5.4 and 2.6.2 (32 bit binaries from python.org) on Windows Vista 64 bit. Saving to a PDF file works

Ah .. that's disappointing, but good to know .. just wanted to make
sure that I didn't have some installation issue at my end. Be interesting
to know if others too have run into problems with XP.

Thanks for sharing your information,

Esmail

OK, I can confirm this on my side. Do you see this problem as well
Charlie (I can import matplotlib._png but an actual call to savefig
with png output triggers the segfault). What version of libpng did
you use for these builds? Was it different than the last?

JDH

ยทยทยท

On Tue, May 26, 2009 at 7:30 AM, Esmail <ebonak@...32...> wrote:

Christoph Gohlke wrote:

Hi,

I can confirm the crash of python.exe when saving PNG files using
matplotlib 0.98.5.3 under Python 2.5.4 and 2.6.2 (32 bit binaries from
python.org) on Windows Vista 64 bit. Saving to a PDF file works

Ah .. that's disappointing, but good to know .. just wanted to make
sure that I didn't have some installation issue at my end. Be interesting
to know if others too have run into problems with XP.

Thanks for sharing your information,

John Hunter wrote:

OK, I can confirm this on my side.

Hi John,

thanks for confirming this. I tried on my office machine too,
XP SP3 instead of SP2 and I had exactly the same problem with
the fresh install here too.

Esmail