You are not logged in.

#1 2025-06-19 17:13:37

m0r4a
Member
Registered: 2023-02-02
Posts: 3

Electron apps (e.g. Obsidian) crash on Wayland + NVIDIA with EGLImage

Hardware

  • CPU: Intel Core i7-13650HX

  • GPU: NVIDIA GeForce RTX4060


Software & Drivers

  • NVIDIA driver: 575.64

  • Hyprland: 0.49.0

  • egl-gbm: 1.1.2.1-1

  • egl-wayland: 4:1.1.19-1

  • egl-x11: 1.0.2-1

  • eglexternalplatform: 1.2.1-1

Kernel modules (in /etc/mkinitcpio.conf)

MODULES=(btrfs nvidia nvidia_modeset nvidia_uvm nvidia_drm)

Boot options (in /boot/loader/entries/_linux.conf)

options root=PARTUUID=1b09524d-5fa8-4ca1-aa0e-a4437417204c zswap.enabled=0 rootflags=subvol=@ rw rootfstype=btrfs nvidia_drm.modeset=1

Hyprland NVIDIA env vars

env = LIBVA_DRIVER_NAME,nvidia
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
env = NVD_BACKEND,direct
env = GBM_BACKEND,nvidia-drm

Problem description
When launching any Electron-based app under Wayland (even via Flatpak), the GPU process repeatedly crashes. Logs:

obsidian --enable-features=UseOzonePlatform --ozone-platform=wayland
2025-06-19 17:09:56 Loading main app package /usr/lib/obsidian/obsidian.asar
2025-06-19 17:09:56 Checking for update using Github
2025-06-19 17:09:56 Success.
2025-06-19 17:09:56 Latest version is 1.8.10
2025-06-19 17:09:56 App is up to date.
[ERROR:angle_platform_impl.cc(44)] ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
ERR: ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
[ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS
[ERROR:native_pixmap_egl_binding.cc(117)] Unable to initialize binding from pixmap
[ERROR:ozone_image_backing.cc(307)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[ERROR:shared_image_manager.cc(256)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[ERROR:gpu_service_impl.cc(1162)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[ERROR:gpu_process_host.cc(981)] GPU process exited unexpectedly: exit_code=8704
... (repeated)
[ERROR:wayland_event_watcher.cc(47)] libwayland: warning: queue destroyed while proxies still attached

After blacklisting the Intel i915 driver or disabling Intel modesetting, Electron apps work but laptop audio stops (I think the Intel driver handles speakers).

Steps already tried

  1. Reinstalling the Electron apps

  2. Switching between NVIDIA proprietary, open-dkms and open-beta drivers

  3. Adjusting GPU priority in Hyprland

  4. Blacklisting Intel driver (i915)

  5. Disabling Intel modesetting

Question
What else can I try to get Electron apps working on Wayland with both NVIDIA and Intel GPUs enabled (so audio remains functional)? Are there specific kernel parameters, Hyprland/NVIDIA configuration tweaks, or patches for EGL/GBM that I’m missing?

I really don't need the iGPU but audio is a pretty big deal for me.

Last edited by m0r4a (2025-06-19 17:29:51)

Offline

#2 2025-06-21 11:33:20

airbus777neo
Member
Registered: 2025-06-03
Posts: 35

Re: Electron apps (e.g. Obsidian) crash on Wayland + NVIDIA with EGLImage


Just a computer fanatic finally beginning to etch out of his shell in experience
"The man who chases two rabbits catches none." — Confucius

Offline

#3 2025-06-21 15:02:57

m0r4a
Member
Registered: 2023-02-02
Posts: 3

Re: Electron apps (e.g. Obsidian) crash on Wayland + NVIDIA with EGLImage

I've tried using the flags on the config file, directly when running the apps, as an env var on my .zshrc and on my hyprland config and still no luck

Offline

Board footer

Powered by FluxBB