fix(web): rebuild offscreen region buffers whose storage was lost
Some checks are pending
M6 deployable RC / quick (push) Waiting to run
M6 deployable RC / chromium (push) Blocked by required conditions
M6 deployable RC / release (push) Blocked by required conditions

the 3d viewport already recreates its attachments when a WebGL texture loses
live storage, but non-viewport regions only freed their offscreen on a size or
format change, so a lost color attachment could never regain pixels and the
region stayed blank. free and recreate the offscreen when its storage is gone,
matching the viewport recovery.

evidence: the mid-run blank was observed once (GPU-SOAK-20261205-185353, blank
from round 21 with a selection-abort notice) and did not reproduce in two
later fault soaks (each 50 rounds) or four targeted probes including a
cancel-then-toggle sequence. the rebuild was checked with a 3-minute fault
soak (GPU-SOAK-20261205-211912, 49 rounds, STABLE). the causal link to the
observed blank is unproven; acceptance stays NOT_CLAIMED.

wasm 6183479e78115f20e76dbdc6b98be5ce9e4c425a4e99abca9c3ed88972d236ae.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-12-05 22:05:18 +08:00
parent dd9ff583a9
commit 29cb38adb6
7 changed files with 27 additions and 16 deletions

View File

@@ -89,8 +89,8 @@
- 2 分钟 soak 冒烟:STABLE,33 轮,画布持续刷新,零崩溃行(回执 `tests/golden/GPU-SOAK-20261205-040136/`)。
- 故障注入联调:`--url "http://127.0.0.1:5173/?computeFault=destroy-after-3"` 在附着期触发
`COMPUTE_DEVICE_LOST`;重放后第二次 attach 成功、`frame=1440x900`、画面恢复渲染。
完整 soak 若在重放后点 `native-web-tools` / `desktop-file-transfer-entry` 面板,主区域仍会
变空白,属独立交互缺口(见 `docs/status/GPU-VULKAN-CRASH-FIX.md`)。
一次故障 soak 曾在重放后出现主区域空白;随后两次同参数 soak 与 4 个定向探针未复现,
离屏 region 绘制缓冲的丢失存储重建已补上(见 `docs/status/GPU-VULKAN-CRASH-FIX.md`)。
## 新增工具的约定

View File

@@ -45,10 +45,11 @@ boundary; the legacy `parity-ledger.json` is historical planning data.
business-tools view and a dismissible notice instead.
- Compute device loss replays the native surface, including a loss during the initial attach
(`?computeFault=destroy-after-3`: the first attach fails, the surface re-attaches, and the
viewport renders with `frame=1440x900`). The full interaction soak still blanks the main
regions after a replay when it also clicks the `native-web-tools` /
`desktop-file-transfer-entry` panels; a 3-minute fault run without those clicks stays
rendered. Tracked in `docs/status/GPU-VULKAN-CRASH-FIX.md`.
viewport renders with `frame=1440x900`). A single earlier soak run blanked its main regions
after a replay; six later reproductions (two full fault soaks and four targeted probes) did
not. Offscreen region draw buffers now recreate a color attachment whose GL storage was lost,
matching the existing 3D-viewport recovery. Tracked in
`docs/status/GPU-VULKAN-CRASH-FIX.md`.
## Single-thread and pthread selection