Skip to content

fix: use ozone-platform-hint=auto to fix Linux white screen - #44

Merged
affectioned merged 3 commits into
mainfrom
fix/gtk3-arch-white-screen
Aug 27, 2026
Merged

affectioned merged 3 commits into
mainfrom
fix/gtk3-arch-white-screen

Conversation

@affectioned

@affectioned affectioned commented Aug 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Add --ozone-platform-hint=auto on Linux so Chromium picks a working Ozone backend instead of the default that paints white on some distros.
  • No other flags — the reporter confirmed gtk-version=3, disable-features=Vulkan, and disable-gpu-sandbox don't fix the issue and break in-game canvas rendering.

Why

Original theory (GTK4 paint failure / GPU zygote sandbox) didn't hold up in testing. The reporter (@jojo989) on CachyOS AppImage confirmed:

  • Full flag set → still white screen
  • Sandbox drop → still white screen
  • Just ozone-platform-hint=auto → works, and the game canvas renders correctly

Sandbox stays fully enabled. See electron/electron#33690.

Test plan

  • Reporter confirmed on CachyOS AppImage
  • Sanity-check Windows/macOS still no-op on the Linux block
  • Confirm Discord RPC still connects after render

Fixes #43

🤖 Generated with Claude Code

Electron's GTK4 renderer paints the window white on many Arch-based
distros (CachyOS reported in #43). The main process still starts, so
Discord RPC connects, but the network service crashes and the renderer
never shows content. The existing Vulkan/Ozone workarounds handle
Wayland but not this GTK4 rendering bug.

Force GTK3 via --gtk-version=3, following the fix confirmed in Arch BBS
#306492. Sandbox stays enabled.

Fixes #43

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@jojo989

jojo989 commented Aug 19, 2026

Copy link
Copy Markdown

this commit still gives me white scren when i build it D:

The GTK3/Vulkan-disable fix got the app past init, but the network service
still crashes ~20s after launch on Arch/CachyOS AppImages (works fine under
yarn start). Root cause is the zygote-spawned GPU child not inheriting
Wayland/DRM flags inside the AppImage squashfs mount (electron/electron#50462),
which cascades into the net service dying.

--disable-gpu-sandbox is the narrow fix: only the GPU process runs
unsandboxed, renderer sandbox stays on. Safer than --no-sandbox and safer
than --in-process-gpu (which is reported to break networking).

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@affectioned

Copy link
Copy Markdown
Owner Author

this commit still gives me white scren when i build it D:

try again, but you are right it seems to be an issue related to the chromium sandbox on linux

@jojo989

jojo989 commented Aug 24, 2026

Copy link
Copy Markdown

still not fixed D:

~/Descargas/ynodesktop-fix-gtk3-arch-white-screen/dist 1m 48s ❯ ./YNOdesktop-1.3.1-linux-x86_64.AppImage --enable-logging (node:34649) [DEP0040] DeprecationWarning: The punycodemodule is deprecated. Please use a userland alternative instead. (Useynodesktop --trace-deprecation ... to show where the warning was created) [34649:0824/135607.635667:WARNING:ui/ozone/platform/wayland/common/wayland_object.cc:119] Binding to wl_shm version 1 but version 2 is available. [34649:0824/135607.635781:WARNING:ui/ozone/platform/wayland/common/wayland_object.cc:119] Binding to zwp_pointer_gestures_v1 version 1 but version 3 is available. [34649:0824/135607.635850:WARNING:ui/ozone/platform/wayland/common/wayland_object.cc:119] Binding to wp_cursor_shape_manager_v1 version 1 but version 2 is available. [34649:0824/135607.635913:WARNING:ui/ozone/platform/wayland/common/wayland_object.cc:119] Binding to org_kde_kwin_appmenu_manager version 1 but version 2 is available. [34649:0824/135607.636014:WARNING:ui/ozone/platform/wayland/common/wayland_object.cc:119] Binding to wp_color_manager_v1 version 1 but version 2 is available. [34649:0824/135607.636052:WARNING:ui/ozone/platform/wayland/common/wayland_object.cc:119] Binding to zwp_linux_dmabuf_v1 version 4 but version 5 is available. [34649:0824/135621.766235:WARNING:ui/ozone/platform/wayland/host/wayland_surface.cc:170] Server doesn't support zcr_alpha_compositing_v1. [34649:0824/135621.766299:WARNING:ui/ozone/platform/wayland/host/wayland_surface.cc:185] Server doesn't support overlay_prioritizer. Discord Rich Presence connected! [34649:0824/135640.370770:ERROR:content/browser/network_service_instance_impl.cc:721] Network service crashed or was terminated, restarting service.

@jojo989

jojo989 commented Aug 24, 2026 •

Copy link
Copy Markdown

YO, compiling it with tar.gz now works, its appimage issue
edit: not really, the games dont render but ig i can fix it by removing some flags
imagen

@jojo989

jojo989 commented Aug 24, 2026

Copy link
Copy Markdown

it works with only // See: electron/electron#33690 (GTK4), electron/electron#50462 (GPU zygote). if (process.platform === 'linux') { app.commandLine.appendSwitch('ozone-platform-hint', 'auto'); } but idk cuz the first time i opened Yume nikki it didnt load but it does now lel so probably flags doesnt matter

Reporter on CachyOS AppImage confirmed the GTK3, Vulkan-disable, and
GPU-sandbox flags don't resolve the white screen (and the extra flags
broke in-game canvas rendering). Only ozone-platform-hint=auto is
required.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@affectioned affectioned changed the title fix: force GTK3 on Linux to prevent white screen on Arch/CachyOS fix: use ozone-platform-hint=auto to fix Linux white screen Aug 27, 2026
@affectioned
affectioned merged commit 658c119 into main Aug 27, 2026
2 checks passed
@affectioned
affectioned deleted the fix/gtk3-arch-white-screen branch August 27, 2026 16:12
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.

White screen on Arch linux (cachyos)

2 participants