fix(web): fall back to the web tools view when no WebGPU adapter exists
The native desktop canvas needs a WebGPU adapter; without one it stayed black and the web tools below were unreachable. App.tsx now probes navigator.gpu.requestAdapter() at startup, hides the native canvas, shows the web business-tools view and a dismissible notice. Diagnosis behind it: no flags -> no adapter (black canvas); --enable-unsafe-webgpu -> SwiftShader adapter, stable over a 10-minute headed soak; --enable-unsafe-webgpu --enable-features=Vulkan -> NVIDIA adapter renders but the GPU process exits 133 after ~7 minutes under interaction, while a minimal WebGPU control page stays stable on the same configuration. The full frozen Clip suite passes 28/28 after the change (tests/golden/CLIP-HEADED-20261205); acceptance stays NOT_CLAIMED. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
@@ -12,8 +12,17 @@ boundary; the legacy `parity-ledger.json` is historical planning data.
|
||||
non-Chromium accessibility compatibility are not release claims.
|
||||
- Production requires HTTPS. `http://127.0.0.1` is allowed for local verification; public plain HTTP
|
||||
and `file://` are unsupported. All app, Worker and engine assets must remain same-origin.
|
||||
- The base viewport uses WebGL2. OffscreenCanvas is a second tested production path. WebGPU is used
|
||||
only for the declared bounded NanoVDB path and is subject to adapter availability and limits.
|
||||
- The base viewport uses WebGL2. OffscreenCanvas is a second tested production path. WebGPU is
|
||||
required by the native desktop canvas (`WasmGPUCanvas`) and the declared bounded NanoVDB path,
|
||||
and is subject to adapter availability and limits. Chromium on Linux exposes no WebGPU adapter
|
||||
by default: launching with `--enable-unsafe-webgpu` selects the SwiftShader adapter, which a
|
||||
10-minute headed soak kept stable, while the NVIDIA Vulkan path
|
||||
(`--enable-unsafe-webgpu --enable-features=Vulkan`) rendered but crashed the GPU process
|
||||
(exit 133) after ~7 minutes of interaction, and a minimal WebGPU control page stayed stable on
|
||||
the same configuration — so the crash is tied to the engine's WebGPU workload, not to the
|
||||
machine. A browser without an adapter no longer shows a black canvas: the app probes
|
||||
`navigator.gpu.requestAdapter()` at startup, hides the native canvas, shows the Web
|
||||
business-tools view and a dismissible notice instead.
|
||||
|
||||
## Single-thread and pthread selection
|
||||
|
||||
|
||||
Reference in New Issue
Block a user