Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux kernel 6.12+: electron 34 apps fail to launch when using GPU #382612

Open
3 tasks done
michaelBelsanti opened this issue Feb 16, 2025 · 5 comments
Open
3 tasks done
Labels
0.kind: bug Something is broken

Comments

@michaelBelsanti
Copy link
Contributor

michaelBelsanti commented Feb 16, 2025

Nixpkgs version

  • Unstable (25.05)

Describe the bug

When using any kernel verson 6.12 and higher, many Electron apps are failing to start. I have tested this with Obsidian, Discord, Equibop, Vesktop and Legcord. apps using Electron 34 are failing to start. Apps using earlier Electron versions work fine.

I have confirmed that anything below 6.12 works as expected.

This occurs on my desktop using an AMD RX 7800XT, but not on my laptop which uses an AMD Radeon 760M.

Steps to reproduce

  1. Use any kernel after 6.12, I believe this is done by default on unstable.
  2. Launch an effected Electron app that uses GPU acceleration
  3. If it fails to launch, try again with --disable-gpu and see that it

Expected behaviour

The app launching with GPU acceleration.

Screenshots

No response

Relevant log output

[5899:0216/112650.076963:ERROR:angle_platform_impl.cc(44)] ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
ERR: ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
[5899:0216/112650.077021:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS
[5899:0216/112650.077049:ERROR:native_pixmap_egl_binding.cc(117)] Unable to initialize binding from pixmap
[5899:0216/112650.077079:ERROR:ozone_image_backing.cc(307)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[5899:0216/112650.077101:ERROR:shared_image_manager.cc(256)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[5899:0216/112650.077151:ERROR:gpu_service_impl.cc(1162)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[5764:0216/112650.193274:ERROR:gpu_process_host.cc(981)] GPU process exited unexpectedly: exit_code=8704
[5764:0216/112650.279832:ERROR:interface_endpoint_client.cc(725)] Message 6 rejected by interface blink.mojom.WidgetHost
[5764:0216/112650.279846:ERROR:interface_endpoint_client.cc(725)] Message 7 rejected by interface blink.mojom.WidgetHost
[5981:0216/112650.288680:ERROR:angle_platform_impl.cc(44)] ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
ERR: ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
[5981:0216/112650.288723:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS
[5981:0216/112650.288749:ERROR:native_pixmap_egl_binding.cc(117)] Unable to initialize binding from pixmap
[5981:0216/112650.288775:ERROR:ozone_image_backing.cc(307)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[5981:0216/112650.288796:ERROR:shared_image_manager.cc(256)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[5981:0216/112650.288835:ERROR:gpu_service_impl.cc(1162)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[5906:0216/112650.292625:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
[5764:0216/112650.294337:ERROR:gpu_process_host.cc(981)] GPU process exited unexpectedly: exit_code=8704
[6032:0216/112650.379589:ERROR:angle_platform_impl.cc(44)] ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
ERR: ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
[6032:0216/112650.379641:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS
[6032:0216/112650.379686:ERROR:native_pixmap_egl_binding.cc(117)] Unable to initialize binding from pixmap
[6032:0216/112650.379722:ERROR:ozone_image_backing.cc(307)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[6032:0216/112650.379749:ERROR:shared_image_manager.cc(256)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[6032:0216/112650.379813:ERROR:gpu_service_impl.cc(1162)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[5764:0216/112650.386158:ERROR:gpu_process_host.cc(981)] GPU process exited unexpectedly: exit_code=8704
[5906:0216/112650.446486:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

Additional context

No response

System metadata

  • system: "x86_64-linux"
  • host os: Linux 6.12.13, NixOS, 25.05 (Warbler), 25.05.20250213.2ff53fe
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Lix, like Nix) 2.92.0 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux, x86_64-v4-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/quasi/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/quasi/.local/share/flatpak/exports/etc/xdg/nix/nix.conf:/var/lib/flatpak/exports/etc/xdg/nix/nix.conf:/home/quasi/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/quasi/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/quasi/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/r7dh04pv6v6hc3w2v97423im7khkgd2s-lix-2.92.0/share
  • channels(root): "nixos"
  • channels(quasi): ""
  • nixpkgs: /nix/store/brjzz8wv5k09bq0yrvhc1j4hd8677k21-source

Notify maintainers

No response

I assert that this issue is relevant for Nixpkgs

Is this issue important to you?

Add a 👍 reaction to issues you find important.

@michaelBelsanti michaelBelsanti added the 0.kind: bug Something is broken label Feb 16, 2025
@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/electron-apps-not-launching-with-hardware-acceleration-using-linux-6-12/60401/1

@michaelBelsanti michaelBelsanti changed the title linux kernel 6.12+: some electron apps fail to launch when using GPU linux kernel 6.12+: electron 44 apps fail to launch when using GPU Feb 16, 2025
@michaelBelsanti michaelBelsanti changed the title linux kernel 6.12+: electron 44 apps fail to launch when using GPU linux kernel 6.12+: electron 34 apps fail to launch when using GPU Feb 16, 2025
@JohnRTitor
Copy link
Contributor

I think I can reproduce this with VSCode too, though I am on 6.13, not sure if this is a kernel bug though (probably a driver incompatibility with the new electron).

CC @K900

@michaelBelsanti
Copy link
Contributor Author

michaelBelsanti commented Feb 16, 2025

I think I can reproduce this with VSCode too, though I am on 6.13, not sure if this is a kernel bug though (probably a driver incompatibility with the new electron).

It does occur for me on 6.13 as well. I'm assuming some recent Electron bug. Mind sharing what GPU you have?

@K900
Copy link
Contributor

K900 commented Feb 16, 2025

Dupe of #334175?

@michaelBelsanti
Copy link
Contributor Author

michaelBelsanti commented Feb 17, 2025

I will double-check, but I believe the crashes still happened when using NIXOS_OZONE_WL=0. It also seems users in that thread have found it to be related to interfering Intel integrated graphics. I have a Ryzen processor that does not have integrated graphics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

4 participants