Re: [Matplotlib-users] segfault with Tkagg

2008-02-27 Thread LB
 I have had a similar problem here with python-2.5.1, numpy-1.0.4 and
 mpl-0.91.2 all installed on my linux (from scratch) system.  I reported
 this last year but ending in a dead end with no one being able to help.


Okay, that's not very encouraging.
I would have thought that a segmentation fault would have attracted more
attention and more answer. besides, i didn't see any issue in the bug
tracker about that. Maybe I should add one report if I find the time.

My --verbose-debug_annoying output seemed to indicate it had something
 to do with the loading of the fonts, like yours, but that's all the
 farther we all got.  My work around was to install the prerequisites for
 GtkAgg and go with that.  Everything works fine now using GtkAgg.


Unfortunately, I have to use Tkagg : I need to add some graphs in a Tk-based
application...

I even recently installed ATLAS using lapack so I could install numpy
 and scipy with their full functionality and was also successful doing
 that.  I'm able to do curve fitting and find roots of polynomials.


Installing a full numpy-scipy-matplotlib environment is my second goal.
I had some pb with odr and ndimage, which caused the scipy test suite to
fail, but now it works.
installing matplotlib is the last  barrier.

So I
 believe the TkAgg backend does have some incompatibilities but no one
 has a clue as to why.  Otherwise, it's all smooth sailing doing it all
 from scratch.


Here are my last findings :

1) I  runned my installations script on another computer, a linux 64 bit
with Red Hat linux 3, and I had the same pb.
So this bug seems reproductible and do not depend on the architecture or on
the distribution.
There's nothing really extraordinary in these script, but I can send you
them if you want.

2) I tried to compile all these programs in debug mode. I added the options
 --enable-symbols when building tcl, tk and python
 --with-pydebug when compiling python
--debug when builkding matplotlib.

This doesn't give more information when running  `python2.5
test.py--verbose-debug_annoying`, but the backtrace in gdb is a little
longer :

$ gdb python2.5
GNU gdb 6.7.1-debian
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html

This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as i486-linux-gnu...
Using host libthread_db library /lib/i686/cmov/libthread_db.so.1.
(gdb) run
Starting program: /home/loic/tmp/bluelagoon/bin/python2.5
[Thread debugging using libthread_db enabled]
Python 2.5.2 (r252:60911, Feb 27 2008, 20:12:29)
[GCC 4.2.3] on linux2
Type help, copyright, credits or license for more information.
[New Thread 0xb7bd4b60 (LWP 6052)]
 from pylab import *
[New Thread 0xb67fbb90 (LWP 6055)]
[378309 refs]
 plot([1,2,3])
[matplotlib.lines.Line2D instance at 0x8bd6cac]
[384105 refs]
 show()

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7bd4b60 (LWP 6052)]
0xb5fe49fc in Bbox::ll_api (this=0x7ffb) at src/_transforms.h:362
362  Point* ll_api() {return _ll;}
Current language:  auto; currently c++
(gdb) bt
#0  0xb5fe49fc in Bbox::ll_api (this=0x7ffb) at src/_transforms.h:362
#1  0xb5fe441b in PyAggImagePhoto (clientdata=0x0, interp=0x8b0ab58, argc=5,
argv=0x8d6e028) at src/_tkagg.cpp:91
#2  0xb696cb76 in TclInvokeStringCommand (clientData=0x8d20fe0,
interp=0x8b0ab58, objc=5, objv=0xbfe677d4)
at
/home/loic/tmp/bluelagoon/src/tcl8.5.1/unix/../generic/tclBasic.c:2105
#3  0xb696e915 in TclEvalObjvInternal (interp=0x8b0ab58, objc=5,
objv=0xbfe677d4, command=0x0, length=0, flags=262144)
at
/home/loic/tmp/bluelagoon/src/tcl8.5.1/unix/../generic/tclBasic.c:3647
#4  0xb696eeca in Tcl_EvalObjv (interp=0x8b0ab58, objc=5, objv=0xbfe677d4,
flags=262144)
at
/home/loic/tmp/bluelagoon/src/tcl8.5.1/unix/../generic/tclBasic.c:3842
#5  0xb6cd32be in Tkapp_Call (selfptr=0x8bc7348, args=0x8b588ec) at
/home/loic/tmp/bluelagoon/src/Python-2.5.2/Modules/_tkinter.c:1327
#6  0xb7df6932 in PyCFunction_Call (func=0x8bcd424, arg=0x8b588ec, kw=0x0)
at Objects/methodobject.c:108
#7  0xb7e70fb3 in call_function (pp_stack=0xbfe67e50, oparg=5) at
Python/ceval.c:3573
#8  0xb7e6c1c4 in PyEval_EvalFrameEx (f=0x8e1bd1c, throwflag=0) at
Python/ceval.c:2272
#9  0xb7e6e880 in PyEval_EvalCodeEx (co=0x8b43e68, globals=0x8b817b4,
locals=0x0, args=0x8debbd4, argcount=2, kws=0x8debbdc, kwcount=1,
defs=0x87a39e8, defcount=2, closure=0x0) at Python/ceval.c:2836
#10 0xb7e7154d in fast_function (func=0x8b82c14, pp_stack=0xbfe68530, n=4,
na=2, nk=1) at Python/ceval.c:3669
#11 0xb7e71171 in call_function (pp_stack=0xbfe68530, oparg=258) at
Python/ceval.c:3594
#12 0xb7e6c1c4 in PyEval_EvalFrameEx (f=0x8deba8c, throwflag=0) at
Python/ceval.c:2272
#13 0xb7e6e880 in PyEval_EvalCodeEx (co=0x8ac8f28, globals=0x8a5fdf4,
locals=0x0, args=0x8deb570, 

Re: [Matplotlib-users] segfault with Tkagg

2008-02-26 Thread LB
I'm still investigating for my segmentation fault pb with matplotlib and
Tkagg,
but now, I have no more idea.

Here is a summary of my investigations :

   =
   CONFIGURATION
   =
I'm trying to make a local installation of the following programs on a
GNU/Linux i686 (32 bits) :
  - gcc-4.2.3
  - tcl8.5.1
  - tk8.5.1
  - Python-2.5.2
  - numpy-1.0.4
  - scipy-0.6
  - matplotlib-0.91.2

I used the option --prefix=${INSTALL_DIR} everywhere, and I compiled gcc,
tcl
tk and Python with the options --enable-shared --enable-threads. For
building
numpy, scipy and matplotlib, I defined a shell varaible named python in
order
to call the python version installed in $INSTALL_DIR.

All compilation are made from the official source tarballs.

I haven't seen any compilation problem in the log of theses compilations,
and
all tests are running fine.


   ==
   INSTALLING MATPLOTLIB
   ==
I've put verbose=True in my setup.cfg file (but didn't see a lot of change
with that) :

$ cat setup.cfg
[ status ]
verbose=True

$python setup.py install --prefix=${INSTALL_DIR}
---
BUILDING MATPLOTLIB
matplotlib: 0.91.2
python: 2.5.2 (r252:60911, Feb 26 2008, 22:21:12)  [GCC
4.2.3]
  platform: linux2

REQUIRED DEPENDENCIES
 numpy: 1.0.4
 freetype2: 9.16.3

OPTIONAL BACKEND DEPENDENCIES
libpng: 1.2.15beta5
   Tkinter: Tkinter: 50704, Tk: 8.5, Tcl: 8.5
  wxPython: no
* wxPython not found
  Gtk+: no
* Building for Gtk+ requires pygtk; you must be able
* to import gtk in your build/install environment
Qt: no
   Qt4: no
 Cairo: no

OPTIONAL DATE/TIMEZONE DEPENDENCIES
  datetime: present, version unknown
  dateutil: matplotlib will provide
  pytz: matplotlib will provide

OPTIONAL USETEX DEPENDENCIES
dvipng: 1.9
   ghostscript: 8.15.3
 latex: 3.141592
   pdftops: 3.00

EXPERIMENTAL CONFIG PACKAGE DEPENDENCIES
 configobj: matplotlib will provide
  enthought.traits: matplotlib will provide

[Edit setup.cfg to suppress the above messages]
--

I didn't see any compilation error, only a lot of messages saying :

cc1plus: attention : l'option de la ligne de commande -Wstrict-prototypes
est
valide pour Ada/C/ObjC mais pas pour C++


   ==
   TESTING MATPLOTLIB
   ==
$ source setenv_bash# setup environment to call the local version of
python
$ cat test.py
from pylab import *
plot([1, 2, 3])
show()

$ python2.5 test.py --verbose-debug-annoying
$HOME=/home/loic
CONFIGDIR=/home/loic/.matplotlib
matplotlib data path
/home/loic/tmp/bluelagoon/lib/python2.5/site-packages/matplotlib/mpl-data
loaded rc file /home/loic/.matplotlib/matplotlibrc
matplotlib version 0.91.2
verbose.level debug-annoying
interactive is False
units is True
platform is linux2
loaded modules: ['_bisect', 'xml.sax.urlparse', 'distutils', 'pylab',
   'datetime', 'matplotlib.tempfile', 'distutils.sysconfig',
   'encodings.encodings', 'pytz.cStringIO', 'xml', 'struct', 'tempfile',
   'xml.sax.urllib', '_struct', 'pytz.os', 'matplotlib.matplotlib',
   'string', 'encodings.utf_8', 'matplotlib.__future__', 'pytz.tzinfo',
   'pytz.datetime', 'distutils.re', 'bisect', 'signal', 'random',
   'xml.sax.xmlreader', 'matplotlib.pytz', 'pytz.tzfile', 'cStringIO',
   'locale', 'xml.sax.saxutils', 'encodings', 'dateutil',
   'matplotlib.warnings', 'matplotlib.string', 'pytz.pytz', 'urllib',
   'matplotlib.sys', 're', 'math', 'fcntl', 'UserDict', 'distutils.os',
   'matplotlib', 'codecs', 'md5', '_locale', 'matplotlib.sre_constants',
   'matplotlib.os', 'thread', 'weakref', 'itertools', 'distutils.sys',
   'os', 'sre_parse', '__future__', 'matplotlib.copy', 'xml.sax.types',
   '_sre', '__builtin__', 'matplotlib.re', 'operator', 'distutils.string
',
   'matplotlib.datetime', 'posixpath', 'errno', '_socket', 'binascii',
   'sre_constants', 'matplotlib.md5', 'types', 'pytz.sys',
   'xml.sax.handler', 'xml.sax.os', 'matplotlib.xml', '_codecs', 'pytz',
   'matplotlib.pyparsing', 'copy', 'socket', '_types',
   'matplotlib.dateutil', 'hashlib', 'posix', 'encodings.aliases',
   'matplotlib.fontconfig_pattern', 'exceptions', 'xml.sax._exceptions',
   'pytz.bisect', 'distutils.distutils', 'copy_reg', 'sre_compile',
   'xml.sax', '_hashlib', '_random', 'pytz.struct', 'site', 'zipimport',
   '__main__', 'shutil', 'matplotlib.weakref', 'strop', '
encodings.codecs',
   'gettext', 'matplotlib.rcsetup', 

[Matplotlib-users] segfault with Tkagg

2008-02-25 Thread BL
   Hi,

I've made a local installation of python2.5, numpy 1.0.4 and matplotlib
0.91.2.

I didn't see any pb during compilation, but when I try to show a figure, I
received SIGSEGV.

You will find attached to this mail the log of my installation, and a
backtrace of a segfault in gdb, I don't know if this helps.


Have you got any glue ?

-- 
LB
[EMAIL PROTECTED]:~/tmp/Linux$ gdb python2.5
GNU gdb 6.7.1-debian
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as i486-linux-gnu...
Using host libthread_db library /lib/i686/cmov/libthread_db.so.1.
(gdb) run
Starting program: /home/loic/tmp/Linux/bin/python2.5 
[Thread debugging using libthread_db enabled]
Python 2.5.2 (r252:60911, Feb 25 2008, 08:15:40) 
[GCC 4.1.2] on linux2
Type help, copyright, credits or license for more information.
[New Thread 0xb7cafad0 (LWP 15665)]
 from pylab import *
 x = linspace(-10, 10,205)
 y = sinc(x)
 plot(x, y)
[matplotlib.lines.Line2D instance at 0x885528c]
 show()

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7cafad0 (LWP 15665)]
0xb6c87cee in PyAggImagePhoto (clientdata=0x0, interp=0x87d9c78, argc=5, argv=0xbff53ddc) at src/_transforms.h:362
362	  Point* ll_api() {return _ll;}
Current language:  auto; currently c++
(gdb) bt
#0  0xb6c87cee in PyAggImagePhoto (clientdata=0x0, interp=0x87d9c78, argc=5, argv=0xbff53ddc) at src/_transforms.h:362
#1  0xb6af52dc in TclInvokeStringCommand () from /home/loic/tmp/Linux/lib/libtcl8.4.so
#2  0xb6af6e13 in TclEvalObjvInternal () from /home/loic/tmp/Linux/lib/libtcl8.4.so
#3  0xb6af7d3c in Tcl_EvalObjv () from /home/loic/tmp/Linux/lib/libtcl8.4.so
#4  0xb6d6b509 in Tkapp_Call (selfptr=0x884a138, args=0x880714c) at /home/loic/tmp/Linux/src/Python-2.5.2/Modules/_tkinter.c:1327
#5  0xb7ebb37d in PyCFunction_Call (func=0x88556ac, arg=0x880714c, kw=0x0) at Objects/methodobject.c:108
#6  0xb7f07ed0 in PyEval_EvalFrameEx (f=0x89baf54, throwflag=0) at Python/ceval.c:3573
#7  0xb7f097c0 in PyEval_EvalCodeEx (co=0x87b43c8, globals=0x881a13c, locals=0x0, args=0x89892fc, argcount=2, kws=0x8989304, kwcount=1, 
defs=0x850d5b8, defcount=2, closure=0x0) at Python/ceval.c:2836
#8  0xb7f07987 in PyEval_EvalFrameEx (f=0x89891bc, throwflag=0) at Python/ceval.c:3669
#9  0xb7f097c0 in PyEval_EvalCodeEx (co=0x8744260, globals=0x87931c4, locals=0x0, args=0x8988a68, argcount=1, kws=0x8988a6c, kwcount=0, 
defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2836
#10 0xb7f07987 in PyEval_EvalFrameEx (f=0x8988914, throwflag=0) at Python/ceval.c:3669
#11 0xb7f097c0 in PyEval_EvalCodeEx (co=0x8744218, globals=0x87931c4, locals=0x0, args=0x8508db8, argcount=2, kws=0x0, kwcount=0, 
defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2836
#12 0xb7ea7300 in function_call (func=0x8843e64, arg=0x8508dac, kw=0x0) at Objects/funcobject.c:517
#13 0xb7e857b7 in PyObject_Call (func=0x0, arg=0x8508dac, kw=0x0) at Objects/abstract.c:1861
#14 0xb7f06513 in PyEval_EvalFrameEx (f=0x8987fe4, throwflag=0) at Python/ceval.c:3853
#15 0xb7f097c0 in PyEval_EvalCodeEx (co=0x87ab458, globals=0x8793c64, locals=0x0, args=0x881f240, argcount=20, kws=0x0, kwcount=0, 
defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2836
#16 0xb7ea7300 in function_call (func=0x88114fc, arg=0x881f234, kw=0x0) at Objects/funcobject.c:517
#17 0xb7e857b7 in PyObject_Call (func=0x0, arg=0x881f234, kw=0x0) at Objects/abstract.c:1861
#18 0xb7e8cfd2 in instancemethod_call (func=0x8331aa4, arg=0x881f234, kw=0x0) at Objects/classobject.c:2519
#19 0xb7e857b7 in PyObject_Call (func=0x0, arg=0x871da54, kw=0x0) at Objects/abstract.c:1861
#20 0xb7f0177b in PyEval_CallObjectWithKeywords (func=0x8331aa4, arg=0x871da54, kw=0x0) at Python/ceval.c:3442
#21 0xb6d6a0af in PythonCmd (clientData=0x890, interp=0x87d9c78, argc=20, argv=0x8987520)
at /home/loic/tmp/Linux/src/Python-2.5.2/Modules/_tkinter.c:2014
#22 0xb6af52dc in TclInvokeStringCommand () from /home/loic/tmp/Linux/lib/libtcl8.4.so
#23 0xb6af6e13 in TclEvalObjvInternal () from /home/loic/tmp/Linux/lib/libtcl8.4.so
#24 0xb6b22bb7 in TclExecuteByteCode () from /home/loic/tmp/Linux/lib/libtcl8.4.so
#25 0xb6b1fd54 in Tcl_ExprObj () from /home/loic/tmp/Linux/lib/libtcl8.4.so
#26 0xb6af6633 in Tcl_ExprBooleanObj () from /home/loic/tmp/Linux/lib/libtcl8.4.so
#27 0xb6b04085 in Tcl_IfObjCmd () from /home/loic/tmp/Linux/lib/libtcl8.4.so
#28 0xb6af6e13 in TclEvalObjvInternal () from /home/loic/tmp/Linux/lib/libtcl8.4.so
#29 0xb6af73ad in Tcl_EvalEx () from /home/loic/tmp/Linux/lib/libtcl8.4.so
#30 0xb6b9eeba in Tk_BindEvent () from /home/loic/tmp/Linux/lib/libtk8.4.so
#31 0xb6ba4773 in TkBindEventProc () from /home/loic/tmp/Linux/lib/libtk8.4.so
#32 0xb6baa39a in Tk_HandleEvent () from 

Re: [Matplotlib-users] segfault with TkAgg and any GUI in 2.5

2007-03-28 Thread Nadia Dencheva
Numarray does not work with Python 2.5 on 64 bit Linux.
If this is a 64 bit Linux machine try using numpy instead.

Nadia Dencheva


Matt Beal wrote:
 Having upgraded to 2.5, I get a segfault when running a very simple plot 
 script (test.py) at the show() function.  Prior to show() I can save to 
 file and the result looks good.  The GUI is crashing on show().
  
 Any suggestions to fix welcome (I'm guessing many of you know the 
 solution to this problem).
  
 Annoying debug information below:
  
 Thanks!
 -Matt
  
 hostname:~/.matplotlibcat test.py
 from pylab import *
 plot([1,2,3])
 show()
 
 hostname:~/.matplotlibpython test.py --verbose-debug-annoying -dTkAgg
 matplotlib data path /python2.5/site-packages/matplotlib/mpl-data
 $HOME=/home/username
 loaded rc file /home/username/.matplotlib/matplotlibrc
 matplotlib version 0.90.0
 verbose.level debug-annoying
 interactive is False
 platform is linux2
 loaded modules: ['_bisect', '_sha512', 'pylab', 'datetime', 
 'matplotlib.tempfile ', 'distutils.sysconfig', 'encodings.encodings', 'str
 uct', 'tempfile', 'pytz.os', 'zipimport', 'string', 
 'matplotlib.__future__', 'pytz.tzinfo', ' pytz.datetime', 'distutils.re 
 http://distutils.re', 'bisect'
 , 'signal', 'random', 'matplotlib.pytz', 'locale', 'encodings', 
 'dateutil', ' matplotlib.warnings', 'pytz.pytz', 'matplotlib.sys', 're
 ', 'math', 'fcntl', 'UserDict', 'distutils.os', 'matplotlib', 'codecs', 
 'md5', '_locale', ' matplotlib.os', 'thread', 'itertools', 'di
 stutils.sys', 'os', '__future__', '_sre', '__builtin__', 'matplotlib.re 
 http://matplotlib.re', 'operator', ' distutils.string', 
 'matplotlib.datetime', 'pos
 ixpath', 'errno', 'binascii', 'sre_constants', '_sha256', 
 'matplotlib.md5', 'types', 'pytz.sys', '_codecs', 'pytz', 'copy', '_struct'
 , '_types', 'matplotlib.dateutil', 'hashlib', 'distutils', 'posix', 
 'encodings.aliases', 'exceptions', 'sre_parse', 'pytz.bisect', 'd
 istutils.distutils ', 'copy_reg', 'sre_compile', '_hashlib', '_random', 
 'site', '__main__', 'shutil', 'strop', 'encodings.codecs', 'ge
 ttext', 'pytz.sets ', 'stat', 'warnings', 'encodings.types', 
 'encodings.ascii', 'sys', 'os.path', 'pytz.gettext', 'matplotlib.distutil
 s', 'distutils.errors', 'linecache', ' matplotlib.shutil', 'sets']
 numerix numarray 1.5.2
 font search path ['/python2.5/site-packages/matplotlib/mpl-data']
 trying fontname /python2.5/site-packages/matplotlib/mpl-data/cmtt10.ttf
 trying fontname 
 /python2.5/site-packages/matplotlib/mpl-data/VeraMoIt.ttf
 trying fontname /python2.5/site-packages/matplotlib/mpl-data/cmex10.ttf
 trying fontname /python2.5/site-packages/matplotlib/mpl-data/VeraBI.ttf
 trying fontname /python2.5/site-packages/matplotlib/mpl-data/VeraBd.ttf
 trying fontname /python2.5/site-packages/matplotlib/mpl-data/cmmi10.ttf
 trying fontname 
 /python2.5/site-packages/matplotlib/mpl-data/VeraSeBd.ttf
 trying fontname /python2.5/site-packages/matplotlib/mpl-data/cmr10.ttf
 trying fontname 
 /python2.5/site-packages/matplotlib/mpl-data/VeraMono.ttf
 trying fontname /python2.5/site-packages/matplotlib/mpl-data/cmsy10.ttf
 trying fontname /python2.5/site-packages/matplotlib/mpl-data/Vera.ttf
 CONFIGDIR=/home/username/.matplotlib
 loaded ttfcache file /home/username/.matplotlib/ttffont.cache
 backend TkAgg version 8.5
 FigureCanvasAgg.draw
 RendererAgg.__init__
 RendererAgg.__init__ width=650.0, height=490.0
 RendererAgg.__init__ _RendererAgg done
 RendererAgg.__init__ done
 RendererAgg._get_agg_font
 findfont found sans-serif, normal, normal 400, normal, 12.0
 findfont returning /python2.5/site-packages/matplotlib/mpl-data/Vera.ttf
 RendererAgg._get_agg_font
 RendererAgg.draw_text
 RendererAgg._get_agg_font
 RendererAgg.points_to_pixels
 RendererAgg.points_to_pixels
 RendererAgg._get_agg_font
 RendererAgg._get_agg_font
 RendererAgg.draw_text
 RendererAgg._get_agg_font
 RendererAgg.points_to_pixels
 RendererAgg.points_to_pixels
 RendererAgg._get_agg_font
 RendererAgg._get_agg_font
 RendererAgg.draw_text
 RendererAgg._get_agg_font
 RendererAgg.points_to_pixels
 RendererAgg.points_to_pixels
 RendererAgg._get_agg_font
 RendererAgg._get_agg_font
 RendererAgg.draw_text
 RendererAgg._get_agg_font
 RendererAgg._get_agg_font
 RendererAgg._get_agg_font
 RendererAgg.draw_text
 RendererAgg._get_agg_font
 RendererAgg._get_agg_font
 RendererAgg._get_agg_font
 RendererAgg.draw_text
 RendererAgg._get_agg_font
 RendererAgg.points_to_pixels
 RendererAgg.points_to_pixels
 RendererAgg._get_agg_font
 RendererAgg._get_agg_font
 RendererAgg.draw_text
 RendererAgg._get_agg_font
 RendererAgg.points_to_pixels
 RendererAgg.points_to_pixels
 RendererAgg._get_agg_font
 RendererAgg._get_agg_font
 RendererAgg.draw_text
 RendererAgg._get_agg_font
 RendererAgg.points_to_pixels
 RendererAgg.points_to_pixels
 RendererAgg._get_agg_font
 RendererAgg._get_agg_font
 RendererAgg.draw_text
 RendererAgg._get_agg_font
 

[Matplotlib-users] segfault with TkAgg and any GUI in 2.5

2007-03-27 Thread Matt Beal

Having upgraded to 2.5, I get a segfault when running a very simple plot
script (test.py) at the show() function.  Prior to show() I can save to file
and the result looks good.  The GUI is crashing on show().

Any suggestions to fix welcome (I'm guessing many of you know the solution
to this problem).

Annoying debug information below:

Thanks!
-Matt

hostname:~/.matplotlibcat test.py
from pylab import *
plot([1,2,3])
show()

hostname:~/.matplotlibpython test.py --verbose-debug-annoying -dTkAgg
matplotlib data path /python2.5/site-packages/matplotlib/mpl-data
$HOME=/home/username
loaded rc file /home/username/.matplotlib/matplotlibrc
matplotlib version 0.90.0
verbose.level debug-annoying
interactive is False
platform is linux2
loaded modules: ['_bisect', '_sha512', 'pylab', 'datetime', '
matplotlib.tempfile', 'distutils.sysconfig', 'encodings.encodings', 'str
uct', 'tempfile', 'pytz.os', 'zipimport', 'string', 'matplotlib.__future__',
'pytz.tzinfo', 'pytz.datetime', 'distutils.re', 'bisect'
, 'signal', 'random', 'matplotlib.pytz', 'locale', 'encodings', 'dateutil',
'matplotlib.warnings', 'pytz.pytz', 'matplotlib.sys', 're
', 'math', 'fcntl', 'UserDict', 'distutils.os', 'matplotlib', 'codecs',
'md5', '_locale', 'matplotlib.os', 'thread', 'itertools', 'di
stutils.sys', 'os', '__future__', '_sre', '__builtin__', 'matplotlib.re',
'operator', 'distutils.string', 'matplotlib.datetime', 'pos
ixpath', 'errno', 'binascii', 'sre_constants', '_sha256', 'matplotlib.md5',
'types', 'pytz.sys', '_codecs', 'pytz', 'copy', '_struct'
, '_types', 'matplotlib.dateutil', 'hashlib', 'distutils', 'posix', '
encodings.aliases', 'exceptions', 'sre_parse', 'pytz.bisect', 'd
istutils.distutils', 'copy_reg', 'sre_compile', '_hashlib', '_random',
'site', '__main__', 'shutil', 'strop', 'encodings.codecs', 'ge
ttext', 'pytz.sets', 'stat', 'warnings', 'encodings.types', 'encodings.ascii',
'sys', 'os.path', 'pytz.gettext', 'matplotlib.distutil
s', 'distutils.errors', 'linecache', 'matplotlib.shutil', 'sets']
numerix numarray 1.5.2
font search path ['/python2.5/site-packages/matplotlib/mpl-data']
trying fontname /python2.5/site-packages/matplotlib/mpl-data/cmtt10.ttf
trying fontname
/python2.5/site-packages/matplotlib/mpl-data/VeraMoIt.ttf
trying fontname /python2.5/site-packages/matplotlib/mpl-data/cmex10.ttf
trying fontname /python2.5/site-packages/matplotlib/mpl-data/VeraBI.ttf
trying fontname /python2.5/site-packages/matplotlib/mpl-data/VeraBd.ttf
trying fontname /python2.5/site-packages/matplotlib/mpl-data/cmmi10.ttf
trying fontname
/python2.5/site-packages/matplotlib/mpl-data/VeraSeBd.ttf
trying fontname /python2.5/site-packages/matplotlib/mpl-data/cmr10.ttf
trying fontname
/python2.5/site-packages/matplotlib/mpl-data/VeraMono.ttf
trying fontname /python2.5/site-packages/matplotlib/mpl-data/cmsy10.ttf
trying fontname /python2.5/site-packages/matplotlib/mpl-data/Vera.ttf
CONFIGDIR=/home/username/.matplotlib
loaded ttfcache file /home/username/.matplotlib/ttffont.cache
backend TkAgg version 8.5
FigureCanvasAgg.draw
RendererAgg.__init__
RendererAgg.__init__ width=650.0, height=490.0
RendererAgg.__init__ _RendererAgg done
RendererAgg.__init__ done
RendererAgg._get_agg_font
   findfont found sans-serif, normal, normal 400, normal, 12.0
findfont returning /python2.5/site-packages/matplotlib/mpl-data/Vera.ttf
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg.points_to_pixels
RendererAgg.points_to_pixels
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg.points_to_pixels
RendererAgg.points_to_pixels
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg.points_to_pixels
RendererAgg.points_to_pixels
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg.points_to_pixels
RendererAgg.points_to_pixels
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg.points_to_pixels
RendererAgg.points_to_pixels
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg.points_to_pixels
RendererAgg.points_to_pixels
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
Segmentation fault (core dumped)

hostname:~/.matplotlib
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share