JavaScript call stacks in out-of-memory (OOM) crash reports
- Category
- Miscellaneous
- Type
- New or changed feature
- Status
- Proposed (Chrome Proposed)
- Intent stage
- None
Summary
Out-of-memory crash reports can include a JavaScript call stack when a document opts in using Document-Policy: include-js-call-stacks-in-crash-reports. The stack helps developers group production OOM failures and identify the JavaScript execution path active near heap exhaustion. Capture is best effort and does not necessarily identify the allocation site or root cause.
Motivation
Renderer OOM crashes are difficult to diagnose because they can depend on workload, data, and memory conditions and may not reproduce locally. Chromium provides a best-effort JavaScript stack for unresponsive renderer crash reports using the same Document Policy opt-in. Without comparable OOM stacks, developers receive only reason: "oom" and must correlate page URLs, application telemetry, user reports, and additional instrumentation to investigate the failure.
Standards & signals
- Firefox: No signal
- Safari: No signal
- Web developers: No signals
- Tracking bug: https://issues.chromium.org/issues/358611259
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=javascript-call-stacks-in-out-of-memory-oom-crash-reports
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+JavaScript%20call%20stacks%20in%20out-of-memory%20(OOM)%20crash%20reports
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=JavaScript%20call%20stacks%20in%20out-of-memory%20(OOM)%20crash%20reports
- Baseline status: https://webstatus.dev/?q=JavaScript%20call%20stacks%20in%20out-of-memory%20(OOM)%20crash%20reports
Docs: https://docs.google.com/document/d/1lTlSzYSknbW9EuoR1pM2oSRqt66BmEVJ3tAnCKuaeM4/edit?usp=sharing
Explainers: https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/CrashReporting/AddStackToCrashReports.md