Henk Jan Priester
2008-Aug-27 12:25 UTC
[Fontconfig] QT4.3 application crash in fontconfig 2.2.3 on Solaris
My QT application crashes on Solaris 10 in the fontconfig library: [1] FcPatternFindElt(0xf0ce78, 0xff154c40, 0x0, 0x2, 0xffbfa9b0, 0x414e4753), at 0xff14607 [2] FcFontSetMatch(0xffbfaa78, 0xffbfa918, 0xffbfa928, 0x1086598, 0xe9fd88, 0xff166000), at 0xff14112c [3] FcFontMatch(0xe2c500, 0x1086598, 0xffbfab0c, 0xff1327bc, 0x0, 0xff166000), at 0xff141d40 [4] tryPatternLoad(0x111a4e0, 0x0, 0xffbfac60, 0x0, 0x42a, 0x1086598), at 0x5bbec0 [5] loadFc(0x122b098, 0x0, 0xffbfac60, 0x5c400, 0x1, 0x80000000), at 0x5bc2bc [6] QFontDatabase::load(0x122b098, 0x0, 0x0, 0x19800, 0xffbfac38, 0xffbfac60), at 0x5bd9cc [7] QFontMetricsF::boundingRect(0xffbfae88, 0x122b098, 0x0, 0xcd4988, The fontconfig version is 2.2.3 according to /usr/include/fontconfig I want to try if Fontconfig 2.4.2 solves the problem. The INSTALL file suggest: ./configure --sysconfdir=/etc --prefix=/usr --mandir=/usr/share/man Is this correct for Solaris 10 or do I need to use other options as well? Henk Jan
Alan Coopersmith
2008-Aug-27 16:10 UTC
[Fontconfig] QT4.3 application crash in fontconfig 2.2.3 on Solaris
Henk Jan Priester wrote:> My QT application crashes on Solaris 10 in the fontconfig library: > > The fontconfig version is 2.2.3 according to /usr/include/fontconfigFontconfig 2.5.0 is available for Solaris 10 as a patch from SunSolve. (SPARC: 138352-02, x86: 138353-02).> I want to try if Fontconfig 2.4.2 solves the problem. > The INSTALL file suggest: > ./configure --sysconfdir=/etc --prefix=/usr --mandir=/usr/share/man > > Is this correct for Solaris 10 or do I need to use other options as well?The options we use to configure 2.5.0 for Solaris 10 include: --enable-shared=yes --enable-static=no \ --with-expat-includes=/usr/sfw/include \ --with-expat-lib=/usr/sfw/lib --prefix=/usr \ --with-confdir=/etc/fonts --with-cache-dir=/var/cache/fontconfig \ --with-default-fonts=/usr/openwin/lib/X11/fonts -- -Alan Coopersmith- alan.coopersmith at sun.com Sun Microsystems, Inc. - X Window System Engineering
Henk Jan Priester
2008-Aug-27 17:00 UTC
[Fontconfig] QT4.3 application crash in fontconfig 2.2.3 on Solaris
2008/8/27 Alan Coopersmith <Alan.Coopersmith at sun.com>:> Henk Jan Priester wrote: >> My QT application crashes on Solaris 10 in the fontconfig library: >> >> The fontconfig version is 2.2.3 according to /usr/include/fontconfig > > Fontconfig 2.5.0 is available for Solaris 10 as a patch from SunSolve. > (SPARC: 138352-02, x86: 138353-02). > >> I want to try if Fontconfig 2.4.2 solves the problem. >> The INSTALL file suggest: >> ./configure --sysconfdir=/etc --prefix=/usr --mandir=/usr/share/man >> >> Is this correct for Solaris 10 or do I need to use other options as well? > > The options we use to configure 2.5.0 for Solaris 10 include: > --enable-shared=yes --enable-static=no \ > --with-expat-includes=/usr/sfw/include \ > --with-expat-lib=/usr/sfw/lib --prefix=/usr \ > --with-confdir=/etc/fonts --with-cache-dir=/var/cache/fontconfig \ > --with-default-fonts=/usr/openwin/lib/X11/fontsAlan, I compiled the fontconfig 2.5.0 with these option and used LD_LIBRARY_PATH set to the new library when running my program and it does not crash anymore. First time it took a bit longer to start the application and there are a few console messages about the old config files. Fontconfig warning: line 660: unknown element "poor" Fontconfig warning: line 662: unknown element "lang" Fontconfig warning: no <cachedir> elements found. Check configuration. Fontconfig warning: adding <cachedir>/var/cache/fontconfig</cachedir> Fontconfig warning: adding <cachedir>~/.fontconfig</cachedir> I have seen the official patch include a new config file. I did some testing and it works fine. Thanks for your help. Henk Jan> > -- > -Alan Coopersmith- alan.coopersmith at sun.com > Sun Microsystems, Inc. - X Window System Engineering > >