Repository navigation
Desktop: stop the NVIDIA X11 flicker on WebKitGTK 2.54 (#16318) - #16322
Merged
danielhanchen merged 3 commits intoNov 1, 2026
Merged
danielhanchen merged 3 commits into
danielhanchen merged 3 commits into
Conversation
…slothai#16318) Compositing-off with FORCE_DMABUF still left the DMA-BUF renderer active on NVIDIA X11, which flickered badly (photosensitivity risk) on drivers below 610 — including the reporter's 595. Off also used that same path, so the CPU setting did not apply the known workaround. Use WEBKIT_DISABLE_DMABUF for Auto below the compositing floor and for Off on NVIDIA X11, matching the path that fixed unslothai#16028. On + old driver and an explicit compositing opt-in keep the SHM compositing-off fallback.
Member
|
Reached Codex review convergence at oobabooga#442. |
Member
|
Review record for #16322, carried over from the mirror it was reviewed on: danielhanchen/unsloth-staging-review#673. Findings are quoted as posted and attributed to the account that posted them. The reactions shown are the triage recorded on the mirror; none were re-applied here. Commits are named as the mirror's, with this PR's equivalent where one was found. Round 1: reviewed mirror
|
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.
Fixes #16318. Same cause as the flicker in #16028.
On NVIDIA X11 the app turns WebKit compositing off below driver 610, which avoids the 580 driver's
sync_fileleak (#10795). The plan it uses (WEBKIT_DMABUF_RENDERER_FORCE_SHM+WEBKIT_FORCE_DMABUF_RENDERER+WEBKIT_DISABLE_COMPOSITING_MODE) works up to WebKitGTK 2.52, but on 2.54 the window stops presenting what WebKit draws. The report's video alternates between the UI and a blank off-white window 82 times in 11 seconds.WEBKIT_DISABLE_COMPOSITING_MODE=1alone is enough to trigger it on 2.54 with NVIDIA's libraries; with Mesa it renders.Who gets it: NVIDIA X11 hosts below driver 610 with a system WebKitGTK 2.54 (Debian 13, Fedora 43/44, Arch). Deb users there have had it since their distribution moved to 2.54. AppImage users there got it in v0.1.913, when the AppImage started running on the host's WebKitGTK 2.54 (#15503); v0.1.912's bundled 2.50.4 renders. The "Off" setting, "On" below driver 610 and
UNSLOTH_WEBKIT_DISABLE_COMPOSITING=1all reached the same plan, so none of them helped.Fix
Every NVIDIA X11 path that turns compositing off now turns the DMA-BUF renderer off instead on WebKitGTK 2.54 and newer: Auto below driver 610, Off, On below 610, and
UNSLOTH_WEBKIT_DISABLE_COMPOSITING=1. This is theWEBKIT_DISABLE_DMABUF_RENDERER=1workaround the report confirmed. Below 2.54 those paths keep the shared-memory plan, which renders there and is what #10964 chose because disabling DMA-BUF could leave Debian and Ubuntu's patched WebKit without a transport. Wayland, non-NVIDIA hosts and NVIDIA X11 at driver 610 or newer are unchanged.A/B results
v0.1.912 and v0.1.913 release builds, and this branch before and after the follow-up commit, built with the Linux x64 steps of
release-desktop.yml, ran in Debian 13, Fedora 44 and Ubuntu 24.04 containers with NVIDIA's userspace on an Xvfb display, with a fake driver 595 version file for the below-610 paths. Without a compositor, the broken presentation shows as a window that stays blank rather than flickering.UNSLOTH_WEBKIT_DISABLE_COMPOSITING=1The first commit alone left On below 610 and
UNSLOTH_WEBKIT_DISABLE_COMPOSITING=1blank on 2.54.0 and 2.54.2. The v0.1.912 deb is blank on Debian 13's 2.54.0 as well.Disabling DMA-BUF also stays clear of the 580 leak. On a GeForce MX150 with driver 580.178.04, the same continuous-scroll workload grew the web process to 367
sync_filedescriptors in about 2 minutes with compositing on, and stayed at 0 for 5 minutes withWEBKIT_DISABLE_DMABUF_RENDERER=1, at 59 fps.Validation
studio/src-tauribinary tests pass, including a new case for each of the four paths on 2.50.4, 2.52.6, 2.54.0 and 2.54.2.verify-complete-appimage.shpassed on both A/B builds.