Open Bug 1669191 Opened 1 year ago Updated 5 months ago

Crash in [@ OOM | unknown | NS_ABORT_OOM | PLDHashTable::Add | gfxFontGroup::BuildFontList]


(Core :: Print Preview, defect, P2)




Tracking Status
firefox82 --- affected
firefox83 --- affected


(Reporter: Anca, Unassigned, NeedInfo)


(Blocks 2 open bugs)


(Keywords: crash, Whiteboard: [print2020][old-ui-] )

Crash Data

Crash report:


Top 10 frames of crashing thread:

0 NS_ABORT_OOM xpcom/base/nsDebugImpl.cpp:620
1 PLDHashTable::Add xpcom/ds/PLDHashTable.cpp:579
2 gfxFontGroup::BuildFontList gfx/thebes/gfxTextRun.cpp:1893
3 gfxFontGroup::UpdateUserFonts gfx/thebes/gfxTextRun.cpp:3573
4 mozilla::dom::CanvasBidiProcessor::SetText dom/canvas/CanvasRenderingContext2D.cpp:3474
5 nsBidiPresUtils::ProcessText layout/base/nsBidiPresUtils.cpp:2230
6 mozilla::dom::CanvasRenderingContext2D::DrawOrMeasureText dom/canvas/CanvasRenderingContext2D.cpp:3830
7 mozilla::dom::CanvasRenderingContext2D::MeasureText dom/canvas/CanvasRenderingContext2D.cpp:3347
8 mozilla::dom::CanvasRenderingContext2D_Binding::measureText dom/bindings/CanvasRenderingContext2DBinding.cpp:6552
9 bool mozilla::dom::binding_detail::GenericMethod<mozilla::dom::binding_detail::NormalThisPolicy, mozilla::dom::binding_detail::ThrowExceptions> dom/bindings/BindingUtils.cpp:3229

Affected versions

  • 83.0a1 (2020-10-04)
  • 82.0b7

Affected platforms

  • Ubuntu 18.04

Steps to reproduce

  1. Launch Firefox
  2. Make sure print.tab_modal.enabled is set on true
  3. Open a pdf (eg.
  4. Toggle between Portrait and Landscape mode using arrow keys

Additional notes

  • This looks Linux specific, so far we didn’t manage to reproduced on windows or mac
  • I’ve reproduced it only using using a pdf

Suggested severity

  • S2
QA Whiteboard: [qa-regression-triage]

jfkthame: I see gfxFontGroup::BuildFontList so will start with you :) Maybe rapidly toggling orientation is causing us to run out of memory rendering the PDF to canvas?

Severity: -- → S2
Flags: needinfo?(jfkthame)
Priority: -- → P2

The crash occurs way back to nightly from 2020-08-18, on even older builds, I ran into the issue that triggered the “Print Preview error” dialog when switching between Portrait and Landscape mode, therefore I can't come up with a certain conclusion, but it seems that this crash is not actually a regression.

Has STR: --- → yes
Whiteboard: [print2020_v83] [old-ui-] → [print2020_v84][old-ui-]

(This doesn't seem like a Toolkit bug, so I'm throwing it over to the Platform team…)

Component: Printing → Print Preview
Product: Toolkit → Core
Whiteboard: [print2020_v84][old-ui-] → [print2020_v85][old-ui-]
Whiteboard: [print2020_v85][old-ui-] → [print2020_v86][old-ui-]
Whiteboard: [print2020_v86][old-ui-] → [print2020_v88][old-ui-]
Whiteboard: [print2020_v88][old-ui-] → [print2020][old-ui-]
You need to log in before you can comment on or make changes to this bug.