- 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>
26 lines
1009 B
JavaScript
26 lines
1009 B
JavaScript
/** Preconditions shared by the headed diagnostic tools. */
|
|
import { resolveChrome } from "./browser.mjs";
|
|
|
|
export async function preflight({ url }) {
|
|
const items = [];
|
|
items.push({ name: "display", ok: Boolean(process.env.DISPLAY), detail: process.env.DISPLAY ?? "", hard: true });
|
|
try {
|
|
const chrome = resolveChrome();
|
|
items.push({ name: "chrome", ok: true, detail: `${chrome.path} (${chrome.version})`, hard: true });
|
|
} catch (error) {
|
|
items.push({ name: "chrome", ok: false, detail: error.message, hard: true });
|
|
}
|
|
const origin = { name: "origin", ok: false, detail: url, hard: true };
|
|
try {
|
|
const response = await fetch(url, { method: "GET", signal: AbortSignal.timeout(5000) });
|
|
origin.ok = response.status < 500;
|
|
origin.detail = `${url} -> ${response.status}`;
|
|
} catch (error) {
|
|
origin.detail = `${url} -> ${error.message}`;
|
|
}
|
|
items.push(origin);
|
|
return items;
|
|
}
|
|
|
|
export const preflightBlocked = (items) => items.some((item) => item.hard && !item.ok);
|