Which 2D operation loses the canvas

Pages on this site that use only 2D canvases have lost their canvases, or the whole tab, on a phone (Chrome 159 on Android), and not in the test browser. Each row below does one thing that those pages have in common, alone, for about four seconds. Press "Run every trial" on the device that has the problem. It loads this page once for each trial, so that a trial which loses the canvases can't change the result of the next. If the tab dies, open this page again: the row that was running says so, and the run goes on with the next trial.

Nothing has run. The small canvas beside the buttons stays on the page through every trial: a trial that loses it has lost every accelerated canvas.

Live checks

Each trial is a check that waits for a press. A result is stored in this browser before the trial starts and after it ends, and sent to the site's report log, so a result survives a tab that dies.

ResultTrialDetail
Show the code one trial, the loss listeners, the stored result
  1. The canvas of a trial. A drawable 2D canvas with one drawable child, sized once.
  2. The paint loop. A paint is asked for on every frame, and the element changes each time.
  3. The trials. Each changes one thing in that loop, or does one thing outside it.
  4. Running one. The result is stored as "running" first. A contextlost listener on every canvas of the trial, and on the canvas that stays, counts the losses.

How it works

Findings

From Chromium 157 with software rendering, 2026-11-21. The rows above say what your browser does.