From: Darren D. <dd...@co...> - 2006-02-26 14:54:17
|
On Sunday 26 February 2006 6:37 am, Steve Schmerler wrote: > Hi > > With 0.87 and 0.86.2 mpl randomly crashes when executing this script: > > --------------------------- > from pylab import * > from matplotlib import verbose > > verbose.level = 'debug-annoying' > ##verbose.level = 'debug' > > rcParams['text.usetex'] = True > plot([1,2,3]) > > savefig("image.eps") > --------------------------- > > The crash is triggered when savefig() is called and only if > rcParams['text.usetex'] = True. The error message is > > (test.py:7258): Pango-WARNING **: Invalid UTF-8 string passed to > pango_layout_set_text() > > I tried to track it down but the crash seems to occur in *different* > code segments (calling "python test.py" several times it crashed > sometimes after a call to dvips, sometimes dvipng, gs, ...). Sometimes > it even *doesn't* crash at all. > > I have the following pango-stuff installed (Debian): > > elcorto@ramrod:~$ COLUMNS=200 dpkg -l | grep pango > ii libpango1.0-0 1.8.1-1 > > ii libpango1.0-common 1.8.1-1 > > ii libpango1.0-dbg 1.8.1-1 > > ii libpango1.0-dev 1.8.1-1 I can't reproduce your result with pango 1.10.3 installed on a gentoo system with python-2.4.2. Does the script crash if you set verbose.level=silent? It looks like one of the stdout or stderr messages from dvips/gs/dvipng is returning unicode, in which case you could try to convert them to strings before passing them to verbose.report. Just a guess. |