Skip to content

fix(webview): stop forcing WebGL on OffscreenCanvas in WebKitGTK views - #272

Merged
zackees merged 1 commit into
release/0.1.3from
fix/no-forced-offscreen-canvas-webgl
Sep 15, 2026
Merged

zackees merged 1 commit into
release/0.1.3from
fix/no-forced-offscreen-canvas-webgl

Conversation

@zackees

@zackees zackees commented Sep 15, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Reverts #268 (released in v0.1.4): WebKitGTK views no longer force the AllowWebGLInWorkers runtime feature. Worker WebGL goes back to WebKitGTK's default (off).

Forcing the feature makes WebGL available on OffscreenCanvas. But on NVIDIA with the Wayland DMA-BUF renderer, the web process then crashes and the page freezes on its last frame. The pre-v0.1.4 behavior is what the FastLED viewer shipped with: pages render on the main thread when OffscreenCanvas has no WebGL2.

Evidence

Setup: RTX 3060, driver 595.99.02, WebKitGTK 2.52.5, KDE Wayland, __NV_DISABLE_EXPLICIT_SYNC=1 (this crate's existing NVIDIA policy). FastLED viewer, OS screenshots of the focused window, core dumps matched to each run by crash timestamp.

Worker WebGL Runs Animated throughout Froze Crash signatures
Forced on (v0.1.4) 8 3 5 Every frozen run: WebKitWebProcess SIGILL in Skia GrResourceCache::refAndMakeResourceMRU / notifyARefCntReachedZero
WebKitGTK default, main-thread rendering 8 on Wayland, 3 on X11 11 0 Only a pre-existing NVIDIA libnvidia-eglcore SEGV that does not stop rendering; the Skia crash never occurred

Changes

  • src/tauri/linux_webkitgtk.rs, src/tauri.rs: remove the feature toggle.
  • src/bin/kernal-tauri-smoke.rs, .github/workflows/ci.yml: remove the offscreen-webgl smoke scenario and the Xvfb feature test, which only covered that toggle.

The NVIDIA environment policy (__NV_DISABLE_EXPLICIT_SYNC, WEBKIT_DISABLE_DMABUF_RENDERER on X11, JSC_useSharedArrayBuffer) is unchanged.

Supersedes #269, which ports the same toggle to main.

🤖 Generated with Claude Code

https://claude.ai/code/session_01VfXV1EpgAvMZzXJfbGZPRG

This reverts #268 (11f767d, 3fb2501), released in v0.1.4.

Enabling WebKitGTK's AllowWebGLInWorkers feature makes worker WebGL
available, but on NVIDIA with the Wayland DMA-BUF renderer the web
process then crashes and the page freezes on its last frame.

Evidence (RTX 3060, driver 595.99.02, WebKitGTK 2.52.5, KDE Wayland,
`__NV_DISABLE_EXPLICIT_SYNC=1`), FastLED viewer, focused-window captures:

- Worker WebGL enabled: 3 of 8 runs kept animating; 5 froze. Every
  frozen run had a WebKitWebProcess SIGILL in Skia's GrResourceCache
  (refAndMakeResourceMRU / notifyARefCntReachedZero).
- Worker WebGL left at the WebKitGTK default (the page renders on the
  main thread): 4 of 4 Wayland runs and the X11 runs animated
  throughout, and the GrResourceCache crash never occurred.

Consumers that need a worker renderer must keep a main-thread fallback
for WebKitGTK, which is what the pre-v0.1.4 behavior already required.
@zackees
zackees merged commit bc16520 into release/0.1.3 Sep 15, 2026
54 checks passed
zackees added a commit that referenced this pull request Sep 15, 2026
Release on release/0.1.3 containing #272, which reverts #268 (forced
WebGL on OffscreenCanvas in WebKitGTK views). Code-wise this is v0.1.3.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01VfXV1EpgAvMZzXJfbGZPRG
@zackees
zackees deleted the fix/no-forced-offscreen-canvas-webgl branch November 5, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant