The default bug view has changed. See this FAQ.

###!!! ASSERTION: We don't have a glyph, but font indicated that it supported this char in tables?: 'gid != 0', file gfx/thebes/gfxFT2Fonts.cpp, line 641

RESOLVED FIXED in mozilla15

Status

()

Core
Graphics
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: decoder, Assigned: jfkthame)

Tracking

(Blocks: 1 bug)

Trunk
mozilla15
All
Android
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
The following HTML code triggers an assertion on Fennec Native (mozilla-central, debug build, rev 448f554f6acb):


<script>
var x = document.createElementNS("http://www.w3.org/1999/xhtml", "textarea");
document.documentElement.appendChild(x);
x.value = "\uC879\uFE08\"\uF38F\n";
</script>


I verified that this assertion does not trigger on a Firefox desktop debug build.
(Reporter)

Updated

5 years ago
Blocks: 754838
Component: General → Graphics
Product: Fennec Native → Core
QA Contact: general → thebes
(Assignee)

Comment 1

5 years ago
Created attachment 625584 [details] [diff] [review]
patch, explicitly select Unicode charmap when we create an FT face

I've also seen this assertion on a desktop linux build with --disable-pango, which causes us to use the "FT2 fonts" backend, similarly to Android.

It seems that when a font contains multiple charmaps, Freetype may not necessarily choose the Unicode one when the face is created; if it picks MacRoman, for example, then characters outside that set will not be found, even though they may be present in the font. So this patch explicitly selects the Unicode charmap after we create the face.
Attachment #625584 - Flags: review?(jdaggett)
(Assignee)

Comment 2

5 years ago
Tryserver build (Android) is at https://tbpl.mozilla.org/?tree=Try&rev=881c20ceb90f.

Updated

5 years ago
Attachment #625584 - Flags: review?(jdaggett) → review+
(Assignee)

Comment 3

5 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/2d57dc085e14
Target Milestone: --- → mozilla15
https://hg.mozilla.org/mozilla-central/rev/2d57dc085e14
Assignee: nobody → jfkthame
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.