From: Jeffery D. C. <jef...@ve...> - 2004-08-11 17:31:47
|
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') 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 |
From: John H. <jdh...@ac...> - 2004-08-11 18:54:24
|
>>>>> "Jeffery" == Jeffery D Collins <jef...@ve...> writes: Jeffery> I am using the latest snapshot from the CVS repository Jeffery> and am getting a segmentation fault when using ylabel Jeffery> with certain strings. Below is a code snippet that Jeffery> crashes on the last occurance of ylabel. Does this crash Jeffery> for anyone else? Jeffery> from matplotlib.matlab import ylabel ylabel('bia [cm]') Jeffery> raw_input('continue') ylabel('Bia [cm]') # seg fault Jeffery> 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 Jeffery> More information: OS: Linux (RH9) backend: TkAgg Jeffery> Python 2.3.2 (#1, Oct 22 2003, 19:27:14) [GCC 3.2.2 Jeffery> 20030222 (Red Hat Linux 3.2.2-5)] on linux2 Type "help", Jeffery> "copyright", "credits" or "license" for more information. Jeffery> -- Jeffery> ----------------------------------------------------------------- Jeffery> Jeffery D. Collins, Ph.D. Vexcel Corp. Sr. Engineer Jeffery> 1690 38th St. Voice: (303)583-0228 Boulder, CO 80301 Jeffery> Fax: (303)583-0246 vexcel.com Jeffery> ------------------------------------------------------- Jeffery> SF.Net email is sponsored by Shop4tech.com-Lowest price Jeffery> on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Jeffery> Sonic DVD+R for only $33 Save 50% off Retail on Ink & Jeffery> Toner - Free Shipping and Free Gift. Jeffery> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 Jeffery> _______________________________________________ Jeffery> Matplotlib-users mailing list Jeffery> Mat...@li... Jeffery> https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: John H. <jdh...@ac...> - 2004-08-11 18:56:12
|
>>>>> "Jeffery" == Jeffery D Collins <jef...@ve...> writes: Jeffery> I am using the latest snapshot from the CVS repository Jeffery> and am getting a segmentation fault when using ylabel Jeffery> with certain strings. Below is a code snippet that Jeffery> crashes on the last occurance of ylabel. Does this crash Jeffery> for anyone else? One more thing - there is almost nothing different in CVS than in 0.61.0. Since the CVS mirrors sometimes lag, it would help in diagnosing this problem if you test with 0.61. I recommend first removing site-packages/matplotlib and your matplotlib 'build' dir to get a clean install. Thanks, John Hunter |
From: Stephen W. <ste...@cs...> - 2004-08-11 19:24:35
|
On Wed, 2004-08-11 at 10:31, Jeffery D. Collins wrote: > from matplotlib.matlab import ylabel > = =20 >=20 > ylabel('bia [cm]') What does your .matplotlibrc look like? In particular, do you have interactive set? I had to change the first line above to 'import *' to get the show() function. If I change my .matplotlibrc file to backend: TkAgg interactive: true I can do as many ylabel's as I like without difficulty. Fedora Core 1, latest matplotlib CVS. --=20 Stephen Walton <ste...@cs...> Dept. of Physics & Astronomy, Cal State Northridge |