You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WebKit: the stage page stops responding after a large graph scenario loads (renderer harness) #151
On WebKit, the renderer harness's stage page sometimes stops responding entirely after a heavy graph scenario loads. Every request to the page then hangs: page.evaluate, locator.count inside the frame, and the stage's own in-page timers. The Playwright screencast also stops producing frames. The test burns its whole 360 s timeout (120 s on macOS) and passes on rerun.
graph/npm-express-5 stays loading, then the target is closed
11-21 several
main, PRs
browser-macos
affordances.spec.ts:37
graph/test-timings, graph/terraform-database-replacement: "Target page, context or browser has been closed"
What the trace shows
Trace from #147 attempt 2: public-browser-failure-Linux-packages-renderers-harness-webkit-desktop-2-4, run 44930946920.
graph/npm-express-5 loads in diff mode: loadScenario took 8.5 s (light took 7.3 s just before).
state() then answers: status ready, progress 1.
The next call, measure('settle'), never returns.
The last screencast frame is from 155 ms after state() answered. There are no frames for the remaining 240 s.
So the whole WebKit web process, not just one request, stops right after the renderer reports ready. WebKit has no site isolation here, so the sandboxed renderer frame shares the host page's process, and a renderer stuck in its document freezes the stage with it. Chromium doesn't hang on these scenarios.
Leads
Every hang is in the graph renderer, mostly its largest scenarios (npm-express-5, test-timings, terraform-database-replacement). They follow a load, when the frame takes its height and the renderer lays out and frames again (useFitScale → uncutStart, edge routing).
To reproduce: run graph/npm-express-5 in diff mode, light then dark, on Linux WebKit in a loop, and record a JS profile or console.time around the graph's layout, routing and framing after the height arrives.
#153 makes the harness fail such a hang in 90 s, naming the request, the scenario and the stage's last state, instead of waiting out the test timeout. It doesn't fix the hang.
Activity