Closed
Bug 252535
Opened 20 years ago
Closed 20 years ago
crash when loading 'Lucida' font
Categories
(Core Graveyard :: GFX: Gtk, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: jcrippen, Assigned: blizzard)
Details
(Keywords: crash)
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040629 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040629 Using GTK2/Xft build, Mozilla immediately crashes when attempting to load the standard X11R6 font 'Lucida'. Easiest way to tickle this is to set Lucida as the default display font in the Preferences dialog. Many many pages that specify 'sans-serif' in their CSS will cause this font to load and will crash mozilla. Will post debug log, config info, etc shortly. Reproducible: Always Steps to Reproduce: 1. Set 'Lucida' to default proportional font in dialog. 2. View HTML which doesn't specify body font. 3. ??? 4. Crash! Actual Results: It crashed. Expected Results: Displayed something without crashing. If the font is invalid then ignore it and try something else, like Arial or even Courier. Last message before stack trace refers to nsHTMLReflowState.cpp:2100, but that's probably not where the problem is.
Reporter | ||
Comment 1•20 years ago
|
||
about:buildconfig Build platform target i686-pc-linux-gnu Build tools Compiler Version Compiler flags gcc gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -fforce-addr -pthread -pipe g++ gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7) -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -fforce-addr -Wno-deprecated -fshort-wchar -pthread -pipe -I/usr/X11R6/include Configure arguments --prefix=/usr/lib/mozilla --with-system-jpeg --with-system-mng --with-system-png --with-system-zlib --disable-gnomevfs --enable-ipv6 --disable-ldap --disable-calendar --disable-xprint --disable-xinerama --disable-pedantic --disable-short-wchar --enable-mathml --without-system-nspr --enable-nspr-autoconf --enable-xsl --enable-crypto --enable-extensions=default,-irc --enable-optimize=-O2 --with-default-mozilla-five-home=/usr/lib/mozilla --enable-toolkit-gtk2 --enable-default-toolkit=gtk2 --disable-toolkit-qt --disable-toolkit-xlib --disable-toolkit-gtk --enable-xft --disable-freetype2 --disable-svg --disable-mailnews --disable-composer --enable-old-abi-compat-wrappers
*** This bug has been marked as a duplicate of 225118 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Reporter | ||
Comment 3•20 years ago
|
||
debug log with NSPR_LOG_MODULES=XftFontLoad:5 turned on No running windows found Type Manifest File: /usr/lib/mozilla/components/xpti.dat +++ JavaScript debugging hooks installed. nsNativeComponentLoader: autoregistering begins. nsNativeComponentLoader: autoregistering succeeded nNCL: registering deferred (0) GFX: dpi=100 t2p=0.0714286 p2t=14 depth=24 ++WEBSHELL == 1 ++DOMWINDOW == 1 For application/x-java-vm found plugin /opt/sun-jdk-1.4.2.04/jre/plugin/i386/ns6 10-gcc32/libjavaplugin_oji.so LoadPlugin() /opt/sun-jdk-1.4.2.04/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji .so returned 81b2448 ++WEBSHELL == 2 ++DOMWINDOW == 2 Note: verifyreflow is disabled Note: styleverifytree is disabled Note: frameverifytree is disabled [0x8353540] setting up pattern with the following specification: lang group: x-western adding generic font from preferences: Palatino Linotype adding generic family: serif pixel,twip size: 18.000000,252 slant: roman weight: (orig,calc) 400,100 matched the following (1) fonts: Palatino Linotype ++WEBSHELL == 3 ++DOMWINDOW == 3 [0x854e3d8] setting up pattern with the following specification: adding non-generic families: sans, lang group: x-western pixel,twip size: 14.285715,200 slant: roman weight: (orig,calc) 400,100 matched the following (1) fonts: Bitstream Vera Sans [0x86ba5e0] setting up pattern with the following specification: lang group: x-western adding generic font from preferences: Palatino Linotype adding generic family: serif pixel,twip size: 18.000000,252 slant: roman weight: (orig,calc) 400,100 matched the following (1) fonts: Palatino Linotype [0x8892ab8] setting up pattern with the following specification: lang group: x-western adding generic font from preferences: Palatino Linotype adding generic family: serif pixel,twip size: 18.000000,252 slant: roman weight: (orig,calc) 400,100 matched the following (1) fonts: Palatino Linotype [0x8897428] setting up pattern with the following specification: adding non-generic families: palatino linotype, palatino, hiragino minch o pro w3, hiragino mincho pro, ms mincho, lang group: x-western adding generic font from preferences: Palatino Linotype adding generic family: serif pixel,twip size: 18.000000,252 slant: roman weight: (orig,calc) 400,100 matched the following (1) fonts: Palatino Linotype [0x8872548] setting up pattern with the following specification: adding non-generic families: palatino linotype, palatino, hiragino minch o pro w3, hiragino mincho pro, ms mincho, lang group: x-western adding generic font from preferences: Palatino Linotype adding generic family: serif pixel,twip size: 36.000000,504 slant: roman weight: (orig,calc) 700,200 matched the following (1) fonts: Palatino Linotype [0x886c898] setting up pattern with the following specification: adding non-generic families: palatino linotype, palatino, hiragino minch o pro w6, hiragino mincho pro, ms mincho, lang group: x-western adding generic font from preferences: Palatino Linotype adding generic family: serif pixel,twip size: 18.000000,252 slant: roman weight: (orig,calc) 700,200 matched the following (1) fonts: Palatino Linotype matched the following (42) fonts: Hiragino Mincho Pro W6 Bitstream Vera Serif Times New Roman Nimbus Roman No9 L Nimbus Roman No9 L Nimbus Roman No9 L Nimbus Roman No9 L Luxi Serif Times Times Times Courier New Arial Tahoma ZapfEllipt BT Comic Sans MS Courier Nimbus Mono L Hiragino Kaku Gothic Std W8 Bookman Old Style Nimbus Sans L Doulos SIL Gentium SylfaenARM Lucida Sans Unicode Lucida Console Fixed Fixed Fixed Fixed Terminal Fixed Fixed Fixed Fixed Fixed ClearlyU AR PL Mingti2L Big5 Standard Symbols L ClearlyU Alternate Glyphs ClearlyU PUA matched the following (38) fonts: Hiragino Mincho Pro W3 Bitstream Vera Serif Times New Roman Nimbus Roman No9 L Nimbus Roman No9 L Nimbus Roman No9 L Luxi Serif Times Times Times Nimbus Sans L Doulos SIL Arial Courier New Tahoma Arial Black ZapfEllipt BT Gentium SylfaenARM Lucida Sans Unicode Courier Lucida Console Bookman Old Style Nimbus Mono L Fixed Fixed Fixed Terminal Fixed Fixed Fixed Fixed ClearlyU AR PL Mingti2L Big5 Standard Symbols L ClearlyU Alternate Glyphs ClearlyU PUA [0x8851328] setting up pattern with the following specification: adding non-generic families: palatino linotype, palatino, hiragino minch o pro w3, hiragino mincho pro, ms mincho, lang group: x-western adding generic font from preferences: Palatino Linotype adding generic family: serif pixel,twip size: 18.000000,252 slant: italic weight: (orig,calc) 400,100 matched the following (1) fonts: Palatino Linotype [0x89015c0] setting up pattern with the following specification: lang group: x-western adding generic font from preferences: Andale Mono adding generic family: monospace pixel,twip size: 16.000000,224 slant: roman weight: (orig,calc) 400,100 matched the following (1) fonts: Andale Mono [0x85658f8] setting up pattern with the following specification: adding non-generic families: palatino linotype, palatino, hiragino minch o pro w3, hiragino mincho pro, ms mincho, lang group: x-western adding generic font from preferences: Palatino Linotype adding generic family: serif pixel,twip size: 18.000000,252 slant: roman weight: (orig,calc) 401,180 matched the following (1) fonts: Palatino Linotype Document file:///root/projects/public_html/bookmarks.html loaded successfully [0x85658f8] setting up pattern with the following specification: adding non-generic families: palatino linotype, palatino, hiragino minch o pro w3, hiragino mincho pro, ms mincho, lang group: x-western adding generic font from preferences: Palatino Linotype adding generic family: serif pixel,twip size: 36.000000,504 slant: roman weight: (orig,calc) 700,200 matched the following (1) fonts: Palatino Linotype [0x8543ad0] setting up pattern with the following specification: adding non-generic families: palatino linotype, palatino, hiragino minch o pro w3, hiragino mincho pro, ms mincho, lang group: x-western adding generic font from preferences: Palatino Linotype adding generic family: serif pixel,twip size: 18.000000,252 slant: roman weight: (orig,calc) 400,100 matched the following (1) fonts: Palatino Linotype [0x88615d0] setting up pattern with the following specification: adding non-generic families: palatino linotype, palatino, hiragino minch o pro w6, hiragino mincho pro, ms mincho, lang group: x-western adding generic font from preferences: Palatino Linotype adding generic family: serif pixel,twip size: 18.000000,252 slant: roman weight: (orig,calc) 700,200 matched the following (1) fonts: Palatino Linotype matched the following (42) fonts: Hiragino Mincho Pro W6 Bitstream Vera Serif Times New Roman Nimbus Roman No9 L Nimbus Roman No9 L Nimbus Roman No9 L Nimbus Roman No9 L Luxi Serif Times Times Times Courier New Arial Tahoma ZapfEllipt BT Comic Sans MS Courier Nimbus Mono L Hiragino Kaku Gothic Std W8 Bookman Old Style Nimbus Sans L Doulos SIL Gentium SylfaenARM Lucida Sans Unicode Lucida Console Fixed Fixed Fixed Fixed Terminal Fixed Fixed Fixed Fixed Fixed ClearlyU AR PL Mingti2L Big5 Standard Symbols L ClearlyU Alternate Glyphs ClearlyU PUA matched the following (38) fonts: Hiragino Mincho Pro W3 Bitstream Vera Serif Times New Roman Nimbus Roman No9 L Nimbus Roman No9 L Nimbus Roman No9 L Luxi Serif Times Times Times Nimbus Sans L Doulos SIL Arial Courier New Tahoma Arial Black ZapfEllipt BT Gentium SylfaenARM Lucida Sans Unicode Courier Lucida Console Bookman Old Style Nimbus Mono L Fixed Fixed Fixed Terminal Fixed Fixed Fixed Fixed ClearlyU AR PL Mingti2L Big5 Standard Symbols L ClearlyU Alternate Glyphs ClearlyU PUA [0x852a7b8] setting up pattern with the following specification: adding non-generic families: palatino linotype, palatino, hiragino minch o pro w3, hiragino mincho pro, ms mincho, lang group: x-western adding generic font from preferences: Palatino Linotype adding generic family: serif pixel,twip size: 18.000000,252 slant: italic weight: (orig,calc) 400,100 matched the following (1) fonts: Palatino Linotype ++WEBSHELL == 4 ++DOMWINDOW == 4 ++WEBSHELL == 5 ++DOMWINDOW == 5 [0x89baae0] setting up pattern with the following specification: adding non-generic families: sans, lang group: x-western pixel,twip size: 14.285715,200 slant: roman weight: (orig,calc) 400,100 matched the following (1) fonts: Bitstream Vera Sans [0x89bbd80] setting up pattern with the following specification: adding non-generic families: sans, lang group: x-western pixel,twip size: 16.642859,233 slant: roman weight: (orig,calc) 700,200 matched the following (1) fonts: Bitstream Vera Sans [0x8a4b208] setting up pattern with the following specification: adding non-generic families: sans, lang group: x-western pixel,twip size: 14.285715,200 slant: roman weight: (orig,calc) 400,100 matched the following (1) fonts: Bitstream Vera Sans [0x8a554d0] setting up pattern with the following specification: adding non-generic families: sans, lang group: x-western pixel,twip size: 14.285715,200 slant: roman weight: (orig,calc) 400,100 matched the following (1) fonts: Bitstream Vera Sans [0x8acb4f8] setting up pattern with the following specification: lang group: x-western adding generic font from preferences: Lucida adding generic family: serif pixel,twip size: 18.000000,252 slant: roman weight: (orig,calc) 400,100 matched the following (1) fonts: Lucida [0x8acb4f8] setting up pattern with the following specification: lang group: x-western adding generic font from preferences: Lucida adding generic family: serif pixel,twip size: 18.000000,252 slant: roman weight: (orig,calc) 400,100 matched the following (1) fonts: Lucida 16384[8091618]: ###!!! ASSERTION: font metrics should not be null - bug 136248: 'NS_SUCCEEDED(rv)', file nsDeviceContext.cpp, line 668 ###!!! ASSERTION: font metrics should not be null - bug 136248: 'NS_SUCCEEDED(rv )', file nsDeviceContext.cpp, line 668 16384[8091618]: ###!!! Break: at file nsDeviceContext.cpp, line 668 Break: at file nsDeviceContext.cpp, line 668 ^G16384[8091618]: ###!!! ASSERTION: no font metrics: 'nsnull != aFontMetrics', f ile nsHTMLReflowState.cpp, line 2100 ###!!! ASSERTION: no font metrics: 'nsnull != aFontMetrics', file nsHTMLReflowSt ate.cpp, line 2100 16384[8091618]: ###!!! Break: at file nsHTMLReflowState.cpp, line 2100 Break: at file nsHTMLReflowState.cpp, line 2100 ^G Program /usr/lib/mozilla/mozilla-bin (pid = 14303) received signal 11. Stack: _ZN13nsProfileLock18FatalSignalHandlerEi+0x0000006C [/usr/lib/mozilla/components /libprofile.so +0x0002CBBC] UNKNOWN [/lib/libpthread.so.0 +0x0000B695] UNKNOWN 0xffffe420 UNKNOWN [/usr/lib/mozilla/components/libgklayout.so +0x00323A8D] _ZN17nsHTMLReflowState14CalcLineHeightEP14nsIPresContextP19nsIRenderingContextP8 nsIFrame+0x00000048 [/usr/lib/mozilla/components/libgklayout.so +0x00323BD8] _ZN18nsBlockReflowStateC1ERK17nsHTMLReflowStateP14nsIPresContextP12nsBlockFrameR K19nsHTMLReflowMetricsi+0x0000023F [/usr/lib/mozilla/components/libgklayout.so + 0x002F484F] UNKNOWN [/usr/lib/mozilla/components/libgklayout.so +0x002E0FEC] _ZN16nsContainerFrame11ReflowChildEP8nsIFrameP14nsIPresContextR19nsHTMLReflowMet ricsRK17nsHTMLReflowStateiijRj+0x00000097 [/usr/lib/mozilla/components/libgklayo ut.so +0x002FD377] UNKNOWN [/usr/lib/mozilla/components/libgklayout.so +0x0031EA42] _ZN19nsBoxToBlockAdaptor6ReflowER16nsBoxLayoutStateP14nsIPresContextR19nsHTMLRef lowMetricsRK17nsHTMLReflowStateRjiiiii+0x000002E6 [/usr/lib/mozilla/components/l ibgklayout.so +0x00434C16] UNKNOWN [/usr/lib/mozilla/components/libgklayout.so +0x00434781] UNKNOWN [/usr/lib/mozilla/components/libgklayout.so +0x0042BB50] UNKNOWN [/usr/lib/mozilla/components/libgklayout.so +0x004270D0] UNKNOWN [/usr/lib/mozilla/components/libgklayout.so +0x0042BB50] _ZN14nsContainerBox13LayoutChildAtER16nsBoxLayoutStateP6nsIBoxRK6nsRect+0x000000 A5 [/usr/lib/mozilla/components/libgklayout.so +0x00436D25] _ZN21nsGfxScrollFrameInner9LayoutBoxER16nsBoxLayoutStateP6nsIBoxRK6nsRect+0x0000 002D [/usr/lib/mozilla/components/libgklayout.so +0x00319D4D] _ZN21nsGfxScrollFrameInner6LayoutER16nsBoxLayoutState+0x00000189 [/usr/lib/mozil la/components/libgklayout.so +0x0031A009] UNKNOWN [/usr/lib/mozilla/components/libgklayout.so +0x00319DAB] UNKNOWN [/usr/lib/mozilla/components/libgklayout.so +0x0042BB50] UNKNOWN [/usr/lib/mozilla/components/libgklayout.so +0x0042F417] UNKNOWN [/usr/lib/mozilla/components/libgklayout.so +0x00318E09] _ZN16nsContainerFrame11ReflowChildEP8nsIFrameP14nsIPresContextR19nsHTMLReflowMet ricsRK17nsHTMLReflowStateiijRj+0x00000097 [/usr/lib/mozilla/components/libgklayo ut.so +0x002FD377] UNKNOWN [/usr/lib/mozilla/components/libgklayout.so +0x0038A890] UNKNOWN [/usr/lib/mozilla/components/libgklayout.so +0x0035E1D9] _ZN13nsPresContext23ClearStyleDataAndReflowEv+0x0000004F [/usr/lib/mozilla/compo nents/libgklayout.so +0x004873CF] UNKNOWN [/usr/lib/mozilla/components/libgklayout.so +0x0035A40F] _ZN13nsPresContext17PreferenceChangedEPKc+0x000000B6 [/usr/lib/mozilla/component s/libgklayout.so +0x00487496] _ZN13nsPresContext19PrefChangedCallbackEPKcPv+0x0000002A [/usr/lib/mozilla/compo nents/libgklayout.so +0x00484B6A] UNKNOWN [/usr/lib/mozilla/components/libpref.so +0x00025BFF] UNKNOWN [/usr/lib/mozilla/components/libpref.so +0x0002583E] PREF_SetCharPref+0x00000028 [/usr/lib/mozilla/components/libpref.so +0x00024B38] UNKNOWN [/usr/lib/mozilla/components/libpref.so +0x00017344] UNKNOWN [/usr/lib/mozilla/components/libpref.so +0x0001856A] XPTC_InvokeByIndex+0x00000029 [/usr/lib/mozilla/libxpcom.so +0x00108C79] _ZN16XPCWrappedNative10CallMethodER14XPCCallContextNS_8CallModeE+0x00000564 [/usr/lib/mozilla/components/libxpconnect.so +0x000796C4] _Z17XPC_WN_CallMethodP9JSContextP8JSObjectjPlS3_+0x00000158 [/usr/lib/mozilla/co mponents/libxpconnect.so +0x00083768] js_Invoke+0x000008D2 [/usr/lib/mozilla/libmozjs.so +0x00041532] js_Interpret+0x0000BE83 [/usr/lib/mozilla/libmozjs.so +0x0004E1C3] js_Invoke+0x000009B3 [/usr/lib/mozilla/libmozjs.so +0x00041613] js_InternalInvoke+0x000000A0 [/usr/lib/mozilla/libmozjs.so +0x00041AC0] JS_CallFunctionValue+0x0000004B [/usr/lib/mozilla/libmozjs.so +0x0001784B] _ZN11nsJSContext16CallEventHandlerEP8JSObjectS1_jPlS2_+0x00000128 [/usr/lib/mozi lla/components/libgklayout.so +0x0072A368] _ZN16GlobalWindowImpl10RunTimeoutEP13nsTimeoutImpl+0x00000684 [/usr/lib/mozilla/ components/libgklayout.so +0x00740EE4] _ZN16GlobalWindowImpl13TimerCallbackEP8nsITimerPv+0x00000030 [/usr/lib/mozilla/c omponents/libgklayout.so +0x007415C0] _ZN11nsTimerImpl4FireEv+0x0000015D [/usr/lib/mozilla/libxpcom.so +0x000E4A3D] _Z16handleTimerEventP14TimerEventType+0x0000006C [/usr/lib/mozilla/libxpcom.so + 0x000E4BFC] PL_HandleEvent+0x0000004C [/usr/lib/mozilla/libxpcom.so +0x000DCF6C] PL_ProcessPendingEvents+0x000000A9 [/usr/lib/mozilla/libxpcom.so +0x000DCE29] UNKNOWN [/usr/lib/mozilla/libxpcom.so +0x000DFE4B] UNKNOWN [/usr/lib/mozilla/components/libwidget_gtk2.so +0x00031195] Sleeping for 5 minutes.
Reporter | ||
Comment 4•20 years ago
|
||
Removed fonts named "Lucida Console" and "Lucida Sans Unicode" and crash still always occurs. This is not related to bug 225118. Right now I have *no* TT or OT or T1 fonts named "Lucida" anything; the only ones fc-list finds are the X11R6 BDFs which are compiled to PCF on my system. This might have something to do with FreeType or Xft handling of PCF or BDF fonts. Not sure.
Status: RESOLVED → UNCONFIRMED
Resolution: DUPLICATE → ---
Reporter | ||
Comment 5•20 years ago
|
||
Tried with font 'Charter', another X11R6 PCF. Crash happens immediately. Also tried with Linux GTK2/Xft 1.7 build from mozilla.org and same crash occurs (though without debug log of course). This problem looks to be related to using PCF fonts in a GTK2/Xft build. Xft at fault here? I note a lot of null font metrics assertions in the debug output, so maybe Xft is incorrectly handling bitmap fonts, or giving weird info for them? I'll try a new X with BDFs instead of PCFs, which might narrow the problem down. Reinstalling X (using X.Org 6.7.0 from Gentoo x11-base/xorg-x11-6.7.0-r1) will take a while, and I'll have to figure out how to tweak the build so that PCF fonts aren't generated and instead BDFs are put in place. Maybe a lot of these similar Xft related crashes are due to falling back to a PCF or BDF font when no vector font is available? Last resort might be to force not loading bitmap fonts in an Xft build.
Comment 6•20 years ago
|
||
is the lucida ttf file readable by the user that runs mozilla?
Reporter | ||
Comment 7•20 years ago
|
||
I'm running mozilla as root, and yes everything is readable. But no, it's not a TTF file. There are no TTF Lucida fonts on my system (not anymore, anyway).
Assignee | ||
Comment 8•20 years ago
|
||
What kind of file is it?
Reporter | ||
Comment 9•20 years ago
|
||
Just updated to Xorg X11R6.8.0 and the problem seems to have gone away. So was this actually an X problem in the end? I guess so.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → WORKSFORME
Reporter | ||
Comment 10•20 years ago
|
||
I feel I should note that in my new installation of Xorg 6.8.0 the bitmap fonts weren't automatically installed. (Using Gentoo, the bitmap-fonts USE flag needs to be set for this to occur, which I neglected to do.) Since I have apps that need the non-misc bitmap fonts I copied the BDF fonts from the X11R6.8.0-src1.tar.gz distribution file into their appropriate directories and remade the fonts.dir. So now things work, but I am using the BDF, not PCF fonts. I'm not sure whether the problem was solely due to the PCF fonts, or whether it was something fixed in X111R6.8.0, but either way it's working now.
Updated•16 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•