Crash in [@ gfxFT2FontList::FindFonts]
Categories
(Core :: Graphics: Text, defect, P1)
Tracking
()
People
(Reporter: cpeterson, Assigned: m_kato)
Details
(Keywords: crash, regression, Whiteboard: [geckoview:m109])
Crash Data
Attachments
(1 file)
|
48 bytes,
text/x-phabricator-request
|
diannaS
:
approval-mozilla-beta+
dmeehan
:
approval-mozilla-release+
|
Details | Review |
Crash report: https://crash-stats.mozilla.org/report/index/e769cfb1-341f-421d-bb63-349e90220826
Reason: SIGSEGV / SEGV_MAPERR
Top 10 frames of crashing thread:
0 libandroid.so libandroid.so@0x000000000001eeac
1 libandroid.so libandroid.so@0x000000000001eea4
2 libandroid.so libandroid.so@0x000000000001d5b0
3 libandroid.so libandroid.so@0x000000000001d444
4 libxul.so gfxFT2FontList::FindFonts gfx/thebes/gfxFT2FontList.cpp:1460
5 libxul.so gfxPlatformFontList::InitFontList gfx/thebes/gfxPlatformFontList.cpp:576
6 libxul.so gfxPlatformFontList::Initialize gfx/thebes/gfxPlatformFontList.cpp:259
7 libxul.so gfxPlatform::Init gfx/thebes/gfxPlatform.cpp:979
8 libxul.so gfxPlatform::GetPlatform gfx/thebes/gfxPlatform.cpp:460
9 libxul.so gfxPlatform::InitializeCMS gfx/thebes/gfxPlatform.cpp:2111
| Reporter | ||
Updated•3 years ago
|
| Reporter | ||
Updated•3 years ago
|
Updated•3 years ago
|
Updated•3 years ago
|
| Reporter | ||
Comment 1•3 years ago
|
||
Jonathan, do you know why this Android font crash might have spiked starting around September 1?
We're crashing inside libandroid.so's ASystemFontIterator_open here:
I looked at the mozilla-central push log between August 80 - September 1, but I didn't see anything that obviously looks related to Android fonts.
Over 91% of the crash reports are from Android 12 (API 31), even though only Android 12 has only a 19% share of among all Fenix users. Android 12 was released way back in October 2021, but maybe this is a regression in a September 2022 patch release to Android 12? But none of the fixes in Android's September security bulletin look related to fonts, from what I can tell:
https://source.android.com/docs/security/bulletin/2022-09-01
Comment 2•3 years ago
|
||
Sorry, I don't have any ideas here.... nothing in the history stands out to me as particularly suspicious. I do notice that Ryan landed some Android-related updates (JDK version, Kotlin version) on Aug 31st, but don't know any reason that would make ASystemFontIterator_open start crashing under us.
cc'ing Makoto for any thoughts he may have -- though to me this looks more like some kind of Android bug.
Comment 3•3 years ago
|
||
We are in 107 RC week, wontfix 106.
| Assignee | ||
Comment 4•3 years ago
|
||
I think that this depends on device vendor. Most crashes are OPPO (ColorOS 12), realme and OnePlus. This Font API will require to enumerate custom fallback fonts (https://source.android.com/docs/core/fonts/custom-font-fallback). But we might have to disable this on these vendors device.
| Reporter | ||
Comment 5•3 years ago
|
||
I think that this depends on device vendor. Most crashes are OPPO (ColorOS 12), realme and OnePlus.
Good catch! I wonder why these devices all broke at the same time.
Updated•3 years ago
|
Comment 6•3 years ago
|
||
My guess is that there was an update of ColorOS that decided to add some kind of extra fonts for their "branding" or "look-and-feel", and did something a bit wrong (a bad font file, or a garbled configuration of some kind). If we could get a copy of the installed fonts from an affected device, we might be able to identify the culprit.
Comment 7•3 years ago
|
||
Interestingly, https://www.oppo.com/en/coloros13/ talks about new "Eye-friendly fonts" as one of the features of the new version. Maybe eye-friendly, but Fenix-hostile?!
| Reporter | ||
Comment 8•3 years ago
|
||
Makoto, do you need those devices to test the crash or fonts? Can we prevent Fenix from enumerating ColorOS's bad fonts?
Tracking this bug for Fenix 109
| Assignee | ||
Comment 9•3 years ago
|
||
(In reply to Chris Peterson [:cpeterson] from comment #8)
Makoto, do you need those devices to test the crash or fonts? Can we prevent Fenix from enumerating ColorOS's bad fonts?
Although I don't know what is trigger of this crash, if QA has OPPO device with ColorOS 12, could they test whether Fenix crash? I guess that this may occur if OPPO provides font update by their updater, not OS update. (Android 12 can update internal fonts without OS update, and font match API can support it)
| Assignee | ||
Comment 10•3 years ago
|
||
According to crash data, some devices by OPPO and realme and OnePlus seem to
crash when using Font Match API. I would like to disable it until root cause
finds.
Comment 11•3 years ago
|
||
Comment 12•3 years ago
|
||
| bugherder | ||
Updated•3 years ago
|
Comment 13•3 years ago
|
||
The patch landed in nightly and beta is affected.
:m_kato, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox108towontfix.
For more information, please visit auto_nag documentation.
| Assignee | ||
Comment 14•3 years ago
|
||
Comment on attachment 9303642 [details]
Bug 1787551 - Disable Android's Font Match API on OPPO, realme and OnePlus. r=jfkthame
Beta/Release Uplift Approval Request
- User impact if declined: Startup crash in Fenix when using OPPO, realme and OnePlus device with Android 11+.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Don't use newer Font Match API on OPPO, realme and OnePlus device even if Android 10+.
Although newer Android 12+ can use system font update by OEM/Play store, not system update, this feature will be disabled on these devices. - String changes made/needed:
- Is Android affected?: Yes
Comment 15•3 years ago
|
||
Comment on attachment 9303642 [details]
Bug 1787551 - Disable Android's Font Match API on OPPO, realme and OnePlus. r=jfkthame
Approved for 108.0b5
Comment 16•3 years ago
|
||
| bugherder uplift | ||
Comment 17•3 years ago
|
||
:m_kato could you consider adding a release uplift request on this?
We could consider it for the planned dot release
| Assignee | ||
Comment 18•3 years ago
|
||
Comment on attachment 9303642 [details]
Bug 1787551 - Disable Android's Font Match API on OPPO, realme and OnePlus. r=jfkthame
Beta/Release Uplift Approval Request
- User impact if declined: Startup crash when using OPPO, realme or OnePlus device with Android 11+.
- Is this code covered by automated tests?: No
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Don't use newer Font Match API on OPPO, realme and OnePlus device even if Android 10+.
Although newer Android 12+ can use system font update by OEM/Play store, not system update, this feature will be disabled on these devices. - String changes made/needed:
- Is Android affected?: Yes
Comment 19•3 years ago
|
||
Comment on attachment 9303642 [details]
Bug 1787551 - Disable Android's Font Match API on OPPO, realme and OnePlus. r=jfkthame
Approved for 107.0.1
Comment 20•3 years ago
|
||
| bugherder uplift | ||
Description
•