Canary crash and stress suite
Press one button below to run the whole suite automatically: 11 past crash and context-loss reproductions (in an isolated tab so a renderer crash can't kill this page), 8 non-crashing engine checks and 5 timed stress benchmarks, while watching crashes, long animation frames, layout shifts and browser reports through the site's observers.
1. Past crashes and lost contexts (Phase 1, isolated tab)
Runs automatically in a separate noopener tab so a renderer crash leaves this page alive. The one crash still open in Canary 160 (startViewTransition() on a drawable child) runs last so all ten earlier cases finish in a single pass. You can also run any row on its own.
| Kind | Case and baseline | This browser | Action |
|---|
2. Non-crashing engine checks (Phase 2, inline)
Eight checks from /friction/ and FINDINGS.md that run right here in temporary fixtures and retire every canvas afterwards.
| Result | Check and baseline | Measured detail | Run |
|---|
3. Stress benchmarks (Phase 3, 2.5 s each)
Each workload runs automatically for 2.5 s during Phase 3 while PerformanceObserver records long animation frames (LoAF), long tasks and layout shifts, and window.__gfx tracks context losses and canvas memory.
| Workload | FPS | Avg paint / upload | LoAF (count / max) | Long tasks / losses |
|---|
4. Live observer and crash log
Entries from PerformanceObserver (long-animation-frame, layout-shift), ReportingObserver (crash, intervention, deprecation), isolated runner crashes and window.__gfx.report() calls sent to /api/reports (read with npm run reports -- --type canary-suite --list).
No observer events yet.
5. Heavy site demos to smoke-test on Canary
Full pages from this repo that hit the hardest paths in real usage.
WebGL 2 offscreen FBO portal render + 3D perspective hit-testing on a live console.
Live OpenStreetMap canvas with tilted 3D overlays and billboarded HTML markers.
Multi-panel WebGL folded paper map with live DOM labels and crease lighting.
High-count per-element canvas wrappers with theme swaps and ResizeObserver pressure.
WebGL transparent canvas + drawable children (turned solid white on Android Chrome 159).
Drawn same-origin iframes containing nested drawable canvases.
21 isolated 2D context-loss trials for Android testing.
Minimal <canvas-slot> card that first exposed the Apple Metal rotation flicker.
Display P3 float16 2D canvas and manual float16 readback test.
Show the code observers, crash catalog, engine checks, five stress runners, report builder
- PerformanceObserver, ReportingObserver and __gfx wrapper. Scoped LoAF, long-task, CLS, event-timing, ReportingObserver and
/api/reportsfiling. - Crash and loss catalog. Links each historical bug to its standalone repro and
localStoragekey. - Eight engine regression checks. Isolated fixtures that retire their canvas after each check.
- 2D DOM wall stress test. Up to 128 live interactive elements per frame with optional rotation and reflow churn.
- Snapshot ring-buffer stress test. Continuous
captureElementImage()andclose(). - WebGL 2 multi-texture + mipmap + FBO stress test. 16 live mutating DOM textures and a chromatic wave post-pass.
- WebGPU upload stress test. Eight live elements via
drawElementImageToTexture()on the shared device. - DOM, iframe and geometry churn test. Animated iframe child, live button hit-testing and transient drawable nodes.
- Markdown report builder. Formats browser details, observer telemetry, repro results, engine checks and stress stats.
How it works
- Pressing "Run full Canary suite (automated)" opens
/crashes/suite/runner.htmlimmediately inside the click handler withnoopener(so the popup blocker doesn't block it and the runner sits in a separate renderer process). Once Phase 1 completes or detects a renderer crash via the runner heartbeat, Phases 2 and 3 continue automatically right on this page. observers.jsattachesPerformanceObserverforlong-animation-frame,longtask,layout-shiftandevent, plusReportingObserverforcrash,interventionanddeprecation. Every timed stress benchmark runs inside a scoped observer window.- Detected runner crashes are filed to
/api/reportsviawindow.__gfx.report('canary-crash', …)and the end-of-run summary is filed viawindow.__gfx.report('canary-suite', …)(outside localhost, matching the site's guard).
Live checks
Checks that this suite's harness, observers and repro files are present. Runs on tap.
| Result | Experiment | Detail |
|---|
Findings
Measured on 2026-11-24 on macOS (Apple M4 Pro, ANGLE Metal) comparing Chrome 158.0.8127.88 and Chrome Canary 160.0.8180.0 with CanvasDrawElement and ScopedViewTransitions enabled.
- Four renderer crashes that died in Chrome 158 are fixed in Canary 160.0.8180.0: removing an iframe inside a
painthandler (iframe-in-paint.htmlbutton B), callingadoptNode()on a painted drawable canvas into a same-origin iframe (adopt-painted-canvas.htmlbutton A), and both modes of the 4-canvas WebGLloseContext()stress repro (lose-context-stress.htmlbuttons A and B) all crashed Chrome 158 and all survive with no crash in Canary 160. - Three earlier Chromium 157 failures were already fixed by Chrome 158 (and stay fixed in Canary 160):
opacity: 0.02around a drawable canvas inside a drawn iframe (opacity-in-drawn-iframe.html), same-taskmoveBefore()out and back into a drawable canvas, andclearElementGeometry()clearing the hit box. - One renderer crash still reproduces in Canary 160.0.8180.0: calling
element.startViewTransition()on adrawablechild of a drawable canvas (view-transition-drawable-child.htmlbutton A) still crashes the renderer in both Chrome 158 and Canary 160. - Four non-crashing engine bugs still reproduce in Canary 160.0.8180.0: stale hit-test cache after moving a drawn element without toggling an attribute; 9-argument source-rect draw leaving the hit region clipped after
updateElementGeometry(); a nested plain<canvas>inside a padded drawable element drawing shifted by minus its padding; and continuousctx.rotate()withdrawElementImage()dropping lines of text on Apple Metal (2 of 60 frames lost over 15% of dark text pixels; fixed angle lost 0). - All six heavy stress workloads hold 60 fps in Canary 160 on Apple M4 Pro Metal with 0 context losses and 0 errors: 128 live 2D DOM cards with reflow churn (0.38 ms avg paint), 24-deep
captureElementImage()trail (0.02 ms/capture), 16 live mutating WebGL 2 textures + mipmaps + FBO + periodic backing-store resize (0.23 ms upload), 8 live WebGPUdrawElementImageToTexture()uploads (0.20 ms upload), and live DOM + iframe + hit-test churn. - Not verified on Android Canary: the three Android Chrome 159 losses (
willReadFrequentlyon a drawable canvas, repeatedgetImageData(), and float16 readback) and the solid-white transparent WebGL bug did not reproduce on desktop macOS and need a run on an Android phone with Canary.