Malloc error on show() with Wx/WxAgg

I'm running into a really bizarre error that seems to have started spontaneously (no changes I can think of were made to my system in the last few days and mpl was plotting without problems up until a few hours ago). When using WxAgg, the following code raises a malloc error.

>>> import matplotlib.pyplot as plt
>>> plt.plot([0, 1])
>>> plt.show()

Python(477,0xa0710720) malloc: *** error for object 0x220068: Non-aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug

This error only occurs on the Wx/WxAgg backends AND when show() is called; Qt4Agg, TkAgg, and MacOSX backends work fine.

This error is also generated when starting ipython with the pylab flag (and WxAgg set as the default backend).

Sorry I can't give more information about the error itself; I'm not sure how to in this case.

Thanks in advance for your help,
-Tony

Mac OS X 10.5.7
Python 2.5.1
Matplotlib trunk r7142
WX 2.8.4.0 (mac-unicode)

Correction, this error occurs on all GUI backends I've tried (I don't have gtk installed). The malloc error didn't occur on the other backends until I tried to interact with the plot window.

-T

ยทยทยท

On May 27, 2009, at 12:36 PM, Tony S Yu wrote:

I'm running into a really bizarre error that seems to have started
spontaneously (no changes I can think of were made to my system in the
last few days and mpl was plotting without problems up until a few
hours ago). When using WxAgg, the following code raises a malloc error.

import matplotlib.pyplot as plt
plt.plot([0, 1])
plt.show()

Python(477,0xa0710720) malloc: *** error for object 0x220068: Non-
aligned pointer being freed
*** set a breakpoint in malloc_error_break to debug

This error only occurs on the Wx/WxAgg backends AND when show() is
called; Qt4Agg, TkAgg, and MacOSX backends work fine.

This error is also generated when starting ipython with the pylab flag
(and WxAgg set as the default backend).

Sorry I can't give more information about the error itself; I'm not
sure how to in this case.

Thanks in advance for your help,
-Tony

Mac OS X 10.5.7
Python 2.5.1
Matplotlib trunk r7142
WX 2.8.4.0 (mac-unicode)

------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options