segfault problem

I am using the latest snapshot from the CVS repository

    > and am getting a segmentation fault when using ylabel
    > with certain strings. Below is a code snippet that
    > crashes on the last occurance of ylabel. Does this crash
    > for anyone else?

    > from matplotlib.matlab import ylabel ylabel('bia [cm]')
    > raw_input('continue') ylabel('Bia [cm]') # seg fault
    > raw_input('continue')

Your script is line wrapped in your post, so it is difficult to know
exactly what you mean. The following does not segfault for me

from matplotlib.matlab import ylabel

ylabel('bia [cm]')
raw_input('continue')
ylabel('Bia [cm]') # seg fault
raw_input('continue')

It would be helpful if you narrowed the scope of your problem by using
the Agg backend. My guess is you'll encounter the same problem.
Assuming so, there are two extra things you could do to give more
information

Edit site-packages/matplotlib/backends/backend_agg.py in the function
_get_agg_font, print the font filename you are using. Ie, on or
around line 231 in matplotlib-0.61, add the print line as below

        if font is None:
            fname = fontManager.findfont(prop)
            print 'agg loading', fname
            try: font = FT2Font(str(fname))

Additionally, you may want to set at the top of that file

DEBUG = 1

and edit setup.py and set

VERBOSE = True

and recompile matplotlib cleanly. To do this, go to the matplotlib
src dir and 'rm -rf build' before reinstalling matplotlib.

Rerun your tests - be prepared for a deluge of messages.

This should provide some additional helpful information.

You may want to followup to the devel list instead of the users list

Thanks,
John Hunter

···

More information: OS: Linux (RH9) backend: TkAgg

    > Python 2.3.2 (#1, Oct 22 2003, 19:27:14) [GCC 3.2.2
    > 20030222 (Red Hat Linux 3.2.2-5)] on linux2 Type "help",
    > "copyright", "credits" or "license" for more information.

    > --
    > -----------------------------------------------------------------
    > Jeffery D. Collins, Ph.D. Vexcel Corp. Sr. Engineer
    > 1690 38th St. Voice: (303)583-0228 Boulder, CO 80301
    > Fax: (303)583-0246 vexcel.com

    > -------------------------------------------------------
    > SF.Net email is sponsored by Shop4tech.com-Lowest price
    > on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk
    > Sonic DVD+R for only $33 Save 50% off Retail on Ink &
    > Toner - Free Shipping and Free Gift.
    > Cheap Ink Cartridges: printer ink, printer cartridge, printer cartridges, inkjet cartridge, ink jet cartridges, ink cartridges, ink cartridge, inkjet cartridges, epson ink cartridge, epson ink cartridges
    > _______________________________________________
    > Matplotlib-users mailing list
    > Matplotlib-users@lists.sourceforge.net
    > matplotlib-users List Signup and Options