Hi Sylvie, make sure that you have $ROOTSYS/fonts directory and that you don't have an old .rootrc re-defining the TTFontPath. For the correct path see $ROOTSYS/etc/system.rootrc. Cheers, Fons. On Mon, 2003-05-05 at 13:14, Sylvie Dagoret-Campagne wrote: > Hello, > > I am moving from root_3_02_03 to root_v3.05.04. > When I am using an old re-compiled program showing canvas, I get a crash > when showing the first canvas. > > It happens that I get a similar crash in the example program called > guitest available in root/test directory : > > > > Linux:/data5/dagoret/root/root_v3.05.04/test % guiviewer > Error in <TTF::SetTextFont>: font file arialbd.ttf not found in path > Error in <TTF::SetTextFont>: font file arialbd.ttf not found in path > Error in <TTF::SetTextSize>: current font index out of bounds > > *** Break *** segmentation violation > Generating stack trace... > 0x401c92db in TUnixSystem::StackTrace(void) + 0x25b from /data5/dagoret/root/root_v3.05.04/lib/libCore.so > 0x401c7d40 in TUnixSystem::DispatchSignals(ESignals) + 0xb0 from /data5/dagoret/root/root_v3.05.04/lib/libCore.so > 0x401c6e5b in <unknown> from /data5/dagoret/root/root_v3.05.04/lib/libCore.so > 0x401cac51 in <unknown> from /data5/dagoret/root/root_v3.05.04/lib/libCore.so > 0x4129b5bb in <unknown> from /lib/libpthread.so.0 > 0x41345478 in <unknown> from /lib/libc.so.6 > 0x40a467d8 in TTF::PrepareString(char const *) + 0x58 from /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > 0x40a464c6 in TTF::GetTextExtent(unsigned int &, unsigned int &, char *) + 0x36 from /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > 0x40a25cf0 in TLatex::GetTextExtent(unsigned int &, unsigned int &, char const *) const + 0xe0 from /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > 0x40a2352f in TLatex::Analyse(double, double, TextSpec_t, char const *, int) + 0x791f from /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > 0x40a1bbff in TLatex::Anal1(TextSpec_t, char const *, int) + 0x4f from > /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > 0x40a25561 in TLatex::FirstParse(double, double, char const *) + 0x131 > from /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > 0x40a247d3 in TLatex::PaintLatex(double, double, double, double, char const *) + 0x3c3 from /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > 0x40a00ac2 in TGaxis::PaintAxis(double, double, double, double, double > &, double &, int &, char const *, double, bool) + 0x4c42 from /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > 0x409fbe78 in TGaxis::Paint(char const *) + 0x68 from /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > 0x40c9e506 in TPad::PaintModified(void) + 0x3d6 from /data5/dagoret/root/root_v3.05.04/lib/libGpad.so > 0x40c8794d in TCanvas::Update(void) + 0x6d from /data5/dagoret/root/root_v3.05.04/lib/libGpad.so > 0x0804f4c3 in Viewer::SetRange(float, float, float, float, bool) + 0x153 from guiviewer > 0x0804df30 in Viewer::Viewer(TGWindow const *) + 0x780 from guiviewer > 0x0804f58a in main + 0x9a from guiviewer > 0x41333280 in __libc_start_main + 0x90 from /lib/libc.so.6 > 0x0804d6d1 in ROOT::TGenericClassInfo::GetClass(void) + 0x4d from guiviewer > Abort (core dumped) > > > > > > In the debugger I get : > ====================== > > Linux:/data5/dagoret/root/root_v3.05.04/test % gdb guiviewer > GNU gdb 5.1.1 > Copyright 2002 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-mandrake-linux"... > (gdb) run > Starting program: /data5/dagoret/root/root_v3.05.04/test/guiviewer > [New Thread 1024 (LWP 26542)] > Error in <TTF::SetTextFont>: font file arialbd.ttf not found in path > Error in <TTF::SetTextFont>: font file arialbd.ttf not found in path > Error in <TTF::SetTextSize>: current font index out of bounds > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 1024 (LWP 26542)] > 0x40a46359 in TTF::CharToUnicode () > from /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > (gdb) bt > #0 0x40a46359 in TTF::CharToUnicode () > from /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > #1 0x40a467d8 in TTF::PrepareString () > from /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > #2 0x40a464c6 in TTF::GetTextExtent () > from /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > #3 0x40a25cf0 in TLatex::GetTextExtent () > from /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > #4 0x40a2352f in TLatex::Analyse () > from /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > #5 0x40a1bbff in TLatex::Anal1 () > from /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > #6 0x40a25561 in TLatex::FirstParse () > from /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > #7 0x40a247d3 in TLatex::PaintLatex () > from /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > #8 0x40a00ac2 in TGaxis::PaintAxis () > from /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > #9 0x409fbe78 in TGaxis::Paint () > from /data5/dagoret/root/root_v3.05.04/lib/libGraf.so > #10 0x40c9e506 in TPad::PaintModified () > from /data5/dagoret/root/root_v3.05.04/lib/libGpad.so > #11 0x40c8794d in TCanvas::Update () > from /data5/dagoret/root/root_v3.05.04/lib/libGpad.so > #12 0x0804f4c3 in Viewer::SetRange () > #13 0x0804df30 in Viewer::Viewer () > #14 0x0804f58a in main () > #15 0x41333280 in __libc_start_main () from /lib/libc.so.6 > (gdb) > > May be I have something wrong in my configuration of fonts ?? > ============================================================== > > > My system is the following : > > Linux:/data5/dagoret/root/root_v3.05.04/test % gcc -v > Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/specs > gcc version 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk) > > Many tanks for usefull advices. > > Sincerely. > > > Sylvie -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET