Skip to content

WASM WebGPU: GPU process crash in RichEditBox tests leaves later screenshots at 0x0 #25210

Open

Description

@MartinZikmund

Current behavior 🐛

On the master WebAssembly WebGPU Runtime Tests 9 lane, Chrome's swiftshader GPU process crashes (GPU process exited unexpectedly: exit_code=512) while Given_RichEditBox.When_Unfocused_Selection_Highlight_Is_Transparent_Text_Remains_Visible runs. It comes right after the heavy bounded-layout RichEditBox tests, where When_Bounded_Rich_Layout_Inherits_Visual_State_Foreground (8200 runs) takes about 65 s with frames of about 10 s each.

The WebGPU device is then lost and never recreated, so every later RenderTargetBitmap in the shard fails (mapAsync ... A valid external Instance reference no longer exists) and returns a 0x0 bitmap. Shape, RichTextBlock_Highlighters/Render and ShapesClearData screenshot tests fail on the first attempt ("Width=0, Height=0", IndexOutOfRange in RawBitmap.GetPixel) and pass on the retry. Seen in builds 238781, 238799 and 238800.

Expected behavior 🎯

The heavy RichEditBox tests should not take down the GPU process, and screenshot tests later in the shard should keep working.

How to reproduce it (as minimally and precisely as possible) 🔬

Run the WASM WebGPU runtime tests group 9 of 12 (UNO_WEBGPU=1, Chrome --use-webgpu-adapter=swiftshader) on the CI Linux agents.

Locally with UNO_WEBGPU_STATS=1, each visual-state change in When_Bounded_Rich_Layout_Inherits_Visual_State_Foreground costs 4.8-7.3 s of opsBuild/rebuild on the main thread (about 1,800 ops, about 10k glyph lookups per re-record).

Workaround 🛠️

CI retries the failed tests in a fresh browser.

Affected platforms 📱💻🖥️

WebAssembly

Uno.Sdk version (and other relevant versions) 📦

master (d6cb913)

IDE version 🧑‍💻

No response

Anything else we need to know? 💬

The product gaps behind this are tracked separately: WebGPU device loss is never recovered, and re-recording large rich text costs seconds per frame on WebGPU WASM. This issue covers the CI test-order cascade.

Activity

  1. added
    kind/bug
    on Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions