Closed Bug 150937 Opened 22 years ago Closed 15 years ago

mozilla will not start with some ttf fonts

Categories

(Core :: Internationalization, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: Sirron, Assigned: shanjian)

References

()

Details

(Keywords: intl)

Attachments

(2 files, 2 obsolete files)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020609
BuildID:    2002060922

After adding a directory to hold my windows .ttf fonts, and copying these fonts
into this directory, mozilla fails to start.

Removing the directory allows mozilla to start.


Reproducible: Always
Steps to Reproduce:
1. add new directory /usr/share/fonts/truetype
2. copy *.ttf from windows font folder into new truetype directory
3. ttmkfdir -o font.dir in the new truetype directory
4. change /etc/X11/fs/config to reference the new truetype directory
5. reboot (to restart xfs)
6. login as user
7. start mozilla (in a terminal so that messages show)

Actual Results:  will see the following list:
font /usr/share/fonts/truetype/dienasty.ttf   107 glyphs (8 invalid)
font /usr/share/fonts/truetype/dirtydoz.ttf   517 glyphs (426 invalid)
font /usr/share/fonts/truetype/distortia.ttf    96 glyphs
font /usr/share/fonts/truetype/dotum.ttf 17237 glyphs (8921 invalid)
font /usr/share/fonts/truetype/edgewater.ttf    92 glyphs (6 invalid)
font /usr/share/fonts/truetype/electroh.ttf    93 glyphs (3 invalid)
font /usr/share/fonts/truetype/eli5.0-.ttf    96 glyphs
font /usr/share/fonts/truetype/embargo2.ttf   102 glyphs
font /usr/share/fonts/truetype/fadgod.ttf    83 glyphs
font /usr/share/fonts/truetype/failed.ttf    96 glyphs
font /usr/share/fonts/truetype/fakerece.ttf    99 glyphs (4 invalid)
font /usr/share/fonts/truetype/flubber.ttf   179 glyphs (28 invalid)
font /usr/share/fonts/truetype/fontrstc.ttf    96 glyphs
font /usr/share/fonts/truetype/fudd.ttf   216 glyphs
font /usr/share/fonts/truetype/garabd.ttf   661 glyphs
font /usr/share/fonts/truetype/garait.ttf   661 glyphs
font /usr/share/fonts/truetype/gara.ttf   661 glyphs
font /usr/share/fonts/truetype/garbi___.ttf   247 glyphs
font /usr/share/fonts/truetype/garb____.ttf   263 glyphs
font /usr/share/fonts/truetype/garit___.ttf   263 glyphs
font /usr/share/fonts/truetype/gar_____.ttf   264 glyphs
font /usr/share/fonts/truetype/gbsn00lp.ttf  7574 glyphs (34 invalid)
font /usr/share/fonts/truetype/gilbi___.ttf   247 glyphs
font /usr/share/fonts/truetype/gilb____.ttf   246 glyphs
font /usr/share/fonts/truetype/gilcb___.ttf   231 glyphs
font /usr/share/fonts/truetype/gilc____.ttf   231 glyphs
font /usr/share/fonts/truetype/gili____.ttf   247 glyphs
font /usr/share/fonts/truetype/gil_____.ttf   248 glyphs
font /usr/share/fonts/truetype/gilu____.ttf   258 glyphs
font /usr/share/fonts/truetype/gkai00mp.ttf  7574 glyphs (34 invalid)
font /usr/share/fonts/truetype/gnbi____.ttf   248 glyphs
font /usr/share/fonts/truetype/gnb_____.ttf   247 glyphs
font /usr/share/fonts/truetype/gni_____.ttf   248 glyphs
font /usr/share/fonts/truetype/goldengi.ttf   103 glyphs (7 invalid)
font /usr/share/fonts/truetype/gothicbi.ttf   668 glyphs (1 invalid)
font /usr/share/fonts/truetype/gothicb.ttf   668 glyphs (1 invalid)
font /usr/share/fonts/truetype/gothici.ttf   668 glyphs (1 invalid)
font /usr/share/fonts/truetype/gothic.ttf   668 glyphs (1 invalid)
font /usr/share/fonts/truetype/gulim.ttf 17237 glyphs (96 invalid)
font /usr/share/fonts/truetype/hline.ttf 17137 glyphs (13706 invalid)
font /usr/share/fonts/truetype/hydrogen.ttf    96 glyphs
font /usr/share/fonts/truetype/ikarrg.ttf    96 glyphs
font /usr/share/fonts/truetype/ikart.ttf    96 glyphs
font /usr/share/fonts/truetype/ikarv.ttf    96 glyphs
font /usr/share/fonts/truetype/impact__.ttf   245 glyphsfont
/usr/share/fonts/truetype/impact.ttf   659 glyphs (1 invalid)
font /usr/share/fonts/truetype/independ.ttf    95 glyphs (19 invalid)
font /usr/share/fonts/truetype/indigo.ttf   104 glyphs (1 invalid)
font /usr/share/fonts/truetype/larabief.ttf   171 glyphs (5 invalid)
font /usr/share/fonts/truetype/lcbi____.ttf   248 glyphs
font /usr/share/fonts/truetype/lcb_____.ttf   248 glyphs
font /usr/share/fonts/truetype/lc______.ttf   248 glyphs
font /usr/share/fonts/truetype/lhandw.ttf   239 glyphs
font /usr/share/fonts/truetype/lsansi.ttf   239 glyphs
font /usr/share/fonts/truetype/lsansuni.ttf  1764 glyphs (12 invalid)
font /usr/share/fonts/truetype/lucon.ttf   663 glyphs
font /usr/share/fonts/truetype/ly______.ttf   248 glyphs
font /usr/share/fonts/truetype/marlett.ttf Marlett is missing cmap
font /usr/share/fonts/truetype/matha___.ttf Math A is missing cmap
font /usr/share/fonts/truetype/mathb___.ttf Math B is missing cmap
font /usr/share/fonts/truetype/mathc___.ttf Math C is missing cmap
font /usr/share/fonts/truetype/matisse_.ttf   256 glyphs
font /usr/share/fonts/truetype/mtcorsva.ttf   670 glyphs (1 invalid)
font /usr/share/fonts/truetype/mtsorts_.ttf Monotype Sorts is missing cmap
font /usr/share/fonts/truetype/ngob____.ttf   264 glyphs
font /usr/share/fonts/truetype/ngoc____.ttf   248 glyphs
font /usr/share/fonts/truetype/ngoi____.ttf   248 glyphs
font /usr/share/fonts/truetype/ngo_____.ttf   264 glyphs
font /usr/share/fonts/truetype/nimbi___.ttf   247 glyphs
font /usr/share/fonts/truetype/nimb____.ttf   247 glyphs
font /usr/share/fonts/truetype/nimi____.ttf   247 glyphs
font /usr/share/fonts/truetype/nim_____.ttf   248 glyphs
font /usr/share/fonts/truetype/norasi_bi.ttf   221 glyphs
font /usr/share/fonts/truetype/norasi_b.ttf   221 glyphs
font /usr/share/fonts/truetype/norasi_i.ttf   221 glyphs
font /usr/share/fonts/truetype/norasi_n.ttf   221 glyphs
font /usr/share/fonts/truetype/nwgthcb.ttf   240 glyphs
font /usr/share/fonts/truetype/nwgthci.ttf   238 glyphs
font /usr/share/fonts/truetype/nwgthc.ttf   240 glyphs
font /usr/share/fonts/truetype/ocraext.ttf   247 glyphs
font /usr/share/fonts/truetype/ocr-a.ttf   105 glyphs
font /usr/share/fonts/truetype/ocrbmt.ttf   100 glyphs (3 invalid)
font /usr/share/fonts/truetype/ony_____.ttf   257 glyphs
font /usr/share/fonts/truetype/opens___.ttf   416 glyphs
font /usr/share/fonts/truetype/perb____.ttf   248 glyphs
font /usr/share/fonts/truetype/per_____.ttf   248 glyphs
font /usr/share/fonts/truetype/photcabl.ttf   233 glyphs
font /usr/share/fonts/truetype/pib_____.ttf Botanical is missing cmap
font /usr/share/fonts/truetype/ptbi____.ttf   248 glyphs
font /usr/share/fonts/truetype/pti_____.ttf   248 glyphs
font /usr/share/fonts/truetype/rocbi___.ttf   231 glyphs
font /usr/share/fonts/truetype/rocb____.ttf   261 glyphs
font /usr/share/fonts/truetype/roccb___.ttf   263 glyphs
font /usr/share/fonts/truetype/rocli___.ttf   247 glyphs
font /usr/share/fonts/truetype/rocl____.ttf   247 glyphs
font /usr/share/fonts/truetype/symbol.ttf uses custom encoder
font /usr/share/fonts/truetype/tahomabd.ttf  1178 glyphs
font /usr/share/fonts/truetype/tahoma.ttf  1178 glyphs
font /usr/share/fonts/truetype/tempsitc.ttf   248 glyphs (1 invalid)
font /usr/share/fonts/truetype/timesbd.ttf  1142 glyphs
font /usr/share/fonts/truetype/timesbi.ttf   907 glyphs
font /usr/share/fonts/truetype/timesi.ttf   907 glyphs
font /usr/share/fonts/truetype/times.ttf  1142 glyphs
font /usr/share/fonts/truetype/trebucbd.ttf   310 glyphs
font /usr/share/fonts/truetype/trebucbi.ttf   310 glyphs
font /usr/share/fonts/truetype/trebucit.ttf   310 glyphs
font /usr/share/fonts/truetype/trebuc.ttf   310 glyphs
font /usr/share/fonts/truetype/tspecial.ttf Tera Special is missing cmap
font /usr/share/fonts/truetype/tt0011a_.ttf   215 glyphs
font /usr/share/fonts/truetype/tt0011b_.ttf    53 glyphs
font /usr/share/fonts/truetype/tt0011c_.ttf LotusWP Box is missing cmap
font /usr/share/fonts/truetype/tt0011d_.ttf   108 glyphs
font /usr/share/fonts/truetype/tt0011e_.ttf    37 glyphs
font /usr/share/fonts/truetype/verdanab.ttf   677 glyphs
font /usr/share/fonts/truetype/verdanai.ttf   677 glyphs
font /usr/share/fonts/truetype/verdana.ttf   680 glyphs (1 invalid)
font /usr/share/fonts/truetype/verdanaz.ttf   677 glyphs
font /usr/share/fonts/truetype/webdings.ttf uses custom encoder
font /usr/share/fonts/truetype/westm.ttf   240 glyphs
font /usr/share/fonts/truetype/wingding.ttf uses custom encoder
font /usr/share/fonts/truetype/wingdng2.ttf Wingdings 2 is missing cmap
font /usr/share/fonts/truetype/wingdng3.ttf Wingdings 3 is missing cmap
font /usr/share/fonts/truetype/wppost1.ttf    14 glyphs
font /usr/share/fonts/truetype/wqt_b_tt.ttf   107 glyphs (3 invalid)
font /usr/share/fonts/truetype/wqtcb_tt.ttf   107 glyphs (3 invalid)
font /usr/share/fonts/truetype/wqtci_tt.ttf   103 glyphs
font /usr/share/fonts/truetype/wqtcp_tt.ttf   104 glyphs
font /usr/share/fonts/truetype/wqt_i_tt.ttf   107 glyphs (3 invalid)
font /usr/share/fonts/truetype/wqtm_p_t.ttf   247 glyphs
font /usr/share/fonts/truetype/wqt_pi_t.ttf    72 glyphs (2 invalid)
font /usr/share/fonts/truetype/wqt_p_tt.ttf   107 glyphs (3 invalid)
font /usr/share/fonts/truetype/fonts.dir   FreeType failed to open, error=2

and then nothing. The browser will not start. There are no other messages


Expected Results:  Browser should start, and the new fonts should be available.
Or at least some message should display saying why the browser cannot start.
-> Int (fonts)
Assignee: Matti → yokoyama
Component: Browser-General → Internationalization
QA Contact: imajes-qa → ruixu
Keywords: intl
QA Contact: ruixu → ylong
Status: UNCONFIRMED → NEW
Ever confirmed: true
Related bug 155175?
does moz core dump?
Could you set the environment variable NS_FONT_DEBUG=FFF, capture moz's 
output when starting, and attach it to this bug?

Thanks
Sorry, I'm not real good at bugzilla and I thought it would read my gzip text
file. This is the text un-gzipped.
Attachment #89954 - Attachment is obsolete: true
Attachment #89955 - Attachment is obsolete: true
The (end of the) output of attachment 89958 [details] looks fairly similar to the output 
of bug 155175. 

Could someone try the patch in that bug?
assign to shanjian
Assignee: yokoyama → shanjian
This should be dup of 155175. Reporter, please try latest trunk or branch build
and post your result here. thanks.
Status: NEW → ASSIGNED
Starting program: /usr/lib/iceweasel/firefox-bin 
[Thread debugging using libthread_db enabled]
[New Thread 47216530129424 (LWP 6164)]
[New Thread 1082132816 (LWP 6173)]
[New Thread 1090525520 (LWP 6174)]
[New Thread 1098918224 (LWP 6175)]
[Thread 1082132816 (LWP 6173) exited]
[Thread 1098918224 (LWP 6175) exited]
[Thread 1090525520 (LWP 6174) exited]
[New process 6164]
[New LWP 6164]

Program received signal SIGSEGV, Segmentation fault.
Cannot remove breakpoints because program is no longer writable.
It might be running in another process.
Further execution is probably impossible.
0x0000000000729d89 in nsHTMLReflowState::CalcLineHeight (aPresContext=<value optimized out>, 
    aRenderingContext=<value optimized out>, aFrame=<value optimized out>) at nsHTMLReflowState.cpp:2224
2224    nsHTMLReflowState.cpp: No such file or directory.
        in nsHTMLReflowState.cpp
QA Contact: amyy → i18n
WONTFIX obsolete truetype fonts bug (comment 12 seems to be unconnected).
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: