fix(linux): detect NVIDIA GPU and work around EGL_BAD_ALLOC on Wayland#446
Merged
fix(linux): detect NVIDIA GPU and work around EGL_BAD_ALLOC on Wayland#446
Conversation
Linux users with NVIDIA proprietary drivers on Wayland report crashes: "Could not create surfaceless EGL display: EGL_BAD_ALLOC. Aborting..." WebKitGTK's web process calls eglGetPlatformDisplay with the EGL_PLATFORM_SURFACELESS_MESA platform, which fails with NVIDIA's EGL implementation and triggers abort(). WEBKIT_DISABLE_DMABUF_RENDERER=1 (already set) only controls buffer sharing, not EGL initialization. Detect NVIDIA via /proc/driver/nvidia and: - Set __NV_DISABLE_EXPLICIT_SYNC=1 to prevent Wayland flickering - Force GDK_BACKEND=x11 on NVIDIA+Wayland (user can override) Also bumps version to 2.5.19. Refs: tauri-apps/tauri#9394, gitbutlerapp/gitbutler#5282
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
facusturla
pushed a commit
to facusturla/worldmonitor
that referenced
this pull request
Feb 27, 2026
koala73#446) Linux users with NVIDIA proprietary drivers on Wayland report crashes: "Could not create surfaceless EGL display: EGL_BAD_ALLOC. Aborting..." WebKitGTK's web process calls eglGetPlatformDisplay with the EGL_PLATFORM_SURFACELESS_MESA platform, which fails with NVIDIA's EGL implementation and triggers abort(). WEBKIT_DISABLE_DMABUF_RENDERER=1 (already set) only controls buffer sharing, not EGL initialization. Detect NVIDIA via /proc/driver/nvidia and: - Set __NV_DISABLE_EXPLICIT_SYNC=1 to prevent Wayland flickering - Force GDK_BACKEND=x11 on NVIDIA+Wayland (user can override) Also bumps version to 2.5.19. Refs: tauri-apps/tauri#9394, gitbutlerapp/gitbutler#5282
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
/proc/driver/nvidiaat startup__NV_DISABLE_EXPLICIT_SYNC=1to prevent Wayland explicit sync flickering/crashesGDK_BACKEND=x11on NVIDIA + Wayland to avoid surfaceless EGL failures (user can override withGDK_BACKEND=wayland)Context
Linux users with NVIDIA proprietary drivers on Wayland report:
WebKitGTK's web process calls
eglGetPlatformDisplay(EGL_PLATFORM_SURFACELESS_MESA, ...)which fails with NVIDIA's EGL implementation and triggersabort(). The existingWEBKIT_DISABLE_DMABUF_RENDERER=1only controls buffer sharing, not EGL initialization itself.Same issue reported across Tauri ecosystem: tauri-apps/tauri#9394, gitbutlerapp/gitbutler#5282, spacedriveapp/spacedrive#2541.
Test plan
cargo check)/proc/driver/nvidia)GDK_BACKEND=waylandoverride works for NVIDIA users who want native Wayland