- renderer: release_transfer_images() deletes the transfer framebuffer instead of only zeroing the name; the leak exhausted VRAM and killed the GPU process under Vulkan after ~3-7 minutes - canvas: status notices are absolute overlays, so they no longer resize the native surface (each show/hide freed and recreated region draw buffers and eventually froze the main regions) - compute: bounded shader/layout/pipeline caches, staging pool, device-lost error propagation, dev-only ?glStats / ?computeFault / ?compute hooks - headed tools: soak/probe/smoke assets and docs - evidence: 20-minute Vulkan soak STABLE (GPU-SOAK-20261205-161007), SwiftShader control STABLE (GPU-SOAK-20261205-162105), Clip 28/28 NOT_CLAIMED (CLIP-HEADED-20261205-162214) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
30 lines
999 B
JavaScript
30 lines
999 B
JavaScript
/**
|
|
* Chrome stderr crash monitor.
|
|
*
|
|
* GPU-process crashes (exit_code=133 / SIGTRAP) and Dawn CHECK failures never
|
|
* reach page-level listeners; the only place they surface is the browser
|
|
* process stderr this module classifies.
|
|
*/
|
|
export const CRASH_PATTERNS = /GPU process exited unexpectedly|exit_code=133|Check failed|FATAL|ContextResult::kTransientFailure|GPU state invalid/;
|
|
export const FATAL_PATTERNS = /Check failed|FATAL/;
|
|
|
|
export function createCrashWatch(start = Date.now()) {
|
|
const events = [];
|
|
const fatals = [];
|
|
const feed = (line) => {
|
|
if (!CRASH_PATTERNS.test(line)) return;
|
|
const entry = { atMs: Date.now() - start, line: line.trim().slice(0, 240) };
|
|
events.push(entry);
|
|
if (FATAL_PATTERNS.test(line)) fatals.push(entry);
|
|
};
|
|
return {
|
|
feed,
|
|
events,
|
|
fatals,
|
|
get count() { return events.length; },
|
|
summary(limit = 20) {
|
|
return { count: events.length, fatalCount: fatals.length, events: events.slice(0, limit) };
|
|
},
|
|
};
|
|
}
|