Files
workinf_Blender_Wasm/web/app
mes123456 89b22c97ca fix(web): replay the surface after an attach-time compute device loss
a failed native surface attach only reports the boolean create result, so an
injected (or real) COMPUTE_DEVICE_LOST during the attach draw reached the app
as a generic CAPABILITY_MISSING and never matched the bounded auto-remount in
failSurface. route the startup rejection through a failAttach that replays the
surface through the same retrySurface path, and keep the rebind budget in a ref
so the bound survives the effect re-run that the replay triggers.

verified with ?computeFault=destroy-after-3: the first attach logs
"Native WebGPU compute draw_command_generate: COMPUTE_DEVICE_LOST", the retry
re-attaches (attach #2, detach #1), and the surface comes back with
frame=1440x900, inputReady=true and a rendered viewport. a 3-minute fault run
without the soak's web-tools/file-transfer panel clicks stays rendered; the
full soak still blanks its main regions later, which correlates with those
panel toggles after a replay and is recorded as a separate residual.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-05 19:10:12 +08:00
..