Closed Bug 1683653 Opened 3 years ago Closed 3 years ago

Crash in [@ OOM | large | mozalloc_abort | moz_xmalloc | mozilla::gfx::SourceSurfaceRawData::GuaranteePersistance]

Categories

(Core :: Graphics, defect, P2)

All
Windows
defect

Tracking

()

RESOLVED FIXED
86 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox84 --- wontfix
firefox85 + fixed
firefox86 --- fixed

People

(Reporter: aryx, Assigned: aosmond)

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

This looks like bug 1604535 resurrected, including mostly hitting during Facebook visits. The signature was active before but got more frequent starting with the Firefox 85 betas.

Crash report: https://crash-stats.mozilla.org/report/index/645260f9-68d4-4af7-9a17-a311d0201220

MOZ_CRASH Reason: MOZ_CRASH()

Top 10 frames of crashing thread:

0 mozglue.dll mozalloc_abort memory/mozalloc/mozalloc_abort.cpp:33
1 mozglue.dll mozalloc_handle_oom memory/mozalloc/mozalloc_oom.cpp:51
2 mozglue.dll moz_xmalloc memory/mozalloc/mozalloc.cpp:54
3 xul.dll mozilla::gfx::SourceSurfaceRawData::GuaranteePersistance gfx/2d/SourceSurfaceRawData.cpp:39
4 xul.dll mozilla::gfx::DrawTargetTiled::FillRect gfx/2d/DrawTargetTiled.cpp:229
5 xul.dll mozilla::layers::FillRectWithMask gfx/layers/basic/BasicLayersImpl.cpp:129
6 xul.dll mozilla::layers::FillRectWithMask gfx/layers/basic/BasicLayersImpl.cpp:151
7 xul.dll mozilla::layers::BasicImageLayer::Paint gfx/layers/basic/BasicImageLayer.cpp:80
8 xul.dll mozilla::layers::BasicLayerManager::PaintSelfOrChildren gfx/layers/basic/BasicLayerManager.cpp:701
9 xul.dll mozilla::layers::BasicLayerManager::PaintLayer gfx/layers/basic/BasicLayerManager.cpp:871
Flags: needinfo?(aosmond)

This is probably not an image -- none of the surfaces from imagelib would trigger a copy during GuaranteePersistance. This is most likely a video or canvas.

Andrew can you look into this or redirect to media folks? The OOM increase between 84 and 85 is a bit worrying.

I'll disable OMTP for more cases. We already disable it for users with < 2 GB physical memory, and the majority of these crashes are for users with > 2 GB memory but < 2 GB virtual memory (most 32-bit Firefox on 32-bit Windows users I imagine fall into this bucket). It will take too long to debug this and this sort of allocation will not happen very often with WebRender.

Assignee: nobody → aosmond
Component: ImageLib → Graphics
Flags: needinfo?(aosmond)
Severity: -- → S3
Priority: -- → P2
Pushed by aosmond@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/65e409aa846d
Disable OMTP for users with less than 2 GB of virtual memory. r=jrmuizel

Added fuzz, relanding.

Flags: needinfo?(aosmond)
Pushed by aosmond@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/d4d31680d3ce
Disable OMTP for users with less than 2 GB of virtual memory. r=jrmuizel
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch

Comment on attachment 9195915 [details]
Bug 1683653 - Disable OMTP for users with less than 2 GB of virtual memory.

Beta/Release Uplift Approval Request

  • User impact if declined: OTMP users with low powered hardware may experience more frequent OOMs
  • Is this code covered by automated tests?: Yes
  • 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): This is just an expansion of a previous patch to disable OMTP for some users. Very simple criteria. Covered by Windows 7 automated tests. Worst case we disable OMTP for more users than we expect but as we continue to migrate more users to WebRender (which doesn't rely on OMTP) this should become less of an issue.
  • String changes made/needed:
Attachment #9195915 - Flags: approval-mozilla-beta?

I don't think we can truly verify in nightly just because this doesn't solve the crashes, it just removes the users most likely to be affected and benefit the least from OMTP. The crash rate isn't high enough in nightly to confirm this.

Comment on attachment 9195915 [details]
Bug 1683653 - Disable OMTP for users with less than 2 GB of virtual memory.

Approved for 85.0rc1.

Attachment #9195915 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Should a new bug be created for the crash reports with 86+ or shall this one be reopened?

Flags: needinfo?(aosmond)

We disabled OMTP in bug 1694248 so they should go away in 88.

Flags: needinfo?(aosmond)

memory-leak key word?

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: