Repository navigation
fix(webview): stop forcing WebGL on OffscreenCanvas in WebKitGTK views - #272
Merged
Merged
Conversation
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
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
This was referenced Sep 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Reverts #268 (released in v0.1.4): WebKitGTK views no longer force the
AllowWebGLInWorkersruntime 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.WebKitWebProcessSIGILL in SkiaGrResourceCache::refAndMakeResourceMRU/notifyARefCntReachedZerolibnvidia-eglcoreSEGV that does not stop rendering; the Skia crash never occurredChanges
src/tauri/linux_webkitgtk.rs,src/tauri.rs: remove the feature toggle.src/bin/kernal-tauri-smoke.rs,.github/workflows/ci.yml: remove theoffscreen-webglsmoke scenario and the Xvfb feature test, which only covered that toggle.The NVIDIA environment policy (
__NV_DISABLE_EXPLICIT_SYNC,WEBKIT_DISABLE_DMABUF_RENDERERon X11,JSC_useSharedArrayBuffer) is unchanged.Supersedes #269, which ports the same toggle to main.
🤖 Generated with Claude Code
https://claude.ai/code/session_01VfXV1EpgAvMZzXJfbGZPRG