Discord clients freezing while loading

Hello,
on my newest NixOS installation, I tried installing vesktop and equibop (a vesktop fork with some extra features)
the problem I have, is that I cannot use them. They launch but they just freeze before loading anything.
Is there something I need to do with my graphic settings? Or does anybody have the same issue?
The Vesktop log:

Vesktop v1.5.8
Enabled Chromium features: WaylandWindowDecorations
Disabled Chromium features: WinRetrieveSuggestionsOnlyOnDemand, HardwareMediaKeyHandling, MediaSessionService
[11144:1013/215209.615603:ERROR:angle_platform_impl.cc(49)] ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
ERR: ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
[11144:1013/215209.615663:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS
[11144:1013/215209.615694:ERROR:native_pixmap_egl_binding.cc(114)] Unable to initialize binding from pixmap
[11144:1013/215209.615722:ERROR:ozone_image_backing.cc(319)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[11144:1013/215209.615737:ERROR:shared_image_manager.cc(408)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[11144:1013/215209.615785:ERROR:gpu_service_impl.cc(1182)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[11008:1013/215209.621603:ERROR:gpu_process_host.cc(953)] GPU process exited unexpectedly: exit_code=8704
[arRPC > ipc] listening at /run/user/1000/discord-ipc-0
[arRPC > websocket] listening on 6463
[arRPC > process] started
[11249:1013/215209.701404:ERROR:angle_platform_impl.cc(49)] ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
ERR: ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
[11249:1013/215209.701464:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS
[11249:1013/215209.701482:ERROR:native_pixmap_egl_binding.cc(114)] Unable to initialize binding from pixmap
[11249:1013/215209.701504:ERROR:ozone_image_backing.cc(319)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[11249:1013/215209.701520:ERROR:shared_image_manager.cc(408)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[11249:1013/215209.701563:ERROR:gpu_service_impl.cc(1182)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[11008:1013/215209.706280:ERROR:gpu_process_host.cc(953)] GPU process exited unexpectedly: exit_code=8704
[11309:1013/215209.786805:ERROR:angle_platform_impl.cc(49)] ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
ERR: ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
[11309:1013/215209.786841:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS
[11309:1013/215209.786857:ERROR:native_pixmap_egl_binding.cc(114)] Unable to initialize binding from pixmap
[11309:1013/215209.786873:ERROR:ozone_image_backing.cc(319)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[11309:1013/215209.786885:ERROR:shared_image_manager.cc(408)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[11309:1013/215209.786915:ERROR:gpu_service_impl.cc(1182)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[11008:1013/215209.793933:ERROR:gpu_process_host.cc(953)] GPU process exited unexpectedly: exit_code=8704
[11164:1013/215209.850739:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
^C[11008:1013/215218.495811:ERROR:wayland_event_watcher.cc(47)] libwayland: warning: queue 0x1a240089f5c0 destroyed while proxies still attached:

[11008:1013/215218.495861:ERROR:wayland_event_watcher.cc(47)] libwayland:   wl_shm_pool#48 still attached

The Equibop Terminal output:

Update checking is disabled. Skipping...
Equibop v2.1.4
Another instance holds the lock, skipping keybinds initialization
(node:11469) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 did-stop-loading listeners added to [WebContents]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit
(Use `electron --trace-warnings ...` to show where the warning was created)
[arRPC > ipc] listening at /run/user/1000/discord-ipc-0
[arRPC > websocket] listening on 6463
[arRPC > process] started
[11609:1013/215334.073012:ERROR:angle_platform_impl.cc(49)] ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
ERR: ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
[11609:1013/215334.073089:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS
[11609:1013/215334.073108:ERROR:native_pixmap_egl_binding.cc(114)] Unable to initialize binding from pixmap
[11609:1013/215334.073129:ERROR:ozone_image_backing.cc(319)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[11609:1013/215334.073165:ERROR:shared_image_manager.cc(408)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[11609:1013/215334.073220:ERROR:gpu_service_impl.cc(1182)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[11469:1013/215334.143610:ERROR:gpu_process_host.cc(953)] GPU process exited unexpectedly: exit_code=8704
[11698:1013/215334.222629:ERROR:angle_platform_impl.cc(49)] ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
ERR: ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
[11698:1013/215334.222673:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS
[11698:1013/215334.222689:ERROR:native_pixmap_egl_binding.cc(114)] Unable to initialize binding from pixmap
[11698:1013/215334.222708:ERROR:ozone_image_backing.cc(319)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[11698:1013/215334.222722:ERROR:shared_image_manager.cc(408)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[11698:1013/215334.222765:ERROR:gpu_service_impl.cc(1182)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[11469:1013/215334.227375:ERROR:gpu_process_host.cc(953)] GPU process exited unexpectedly: exit_code=8704
[11758:1013/215334.303454:ERROR:angle_platform_impl.cc(49)] ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
ERR: ImageEGL.cpp:112 (operator()): eglCreateImage failed with 0x00003009
[11758:1013/215334.303502:ERROR:scoped_egl_image.cc(23)] Failed to create EGLImage: EGL_SUCCESS
[11758:1013/215334.303517:ERROR:native_pixmap_egl_binding.cc(114)] Unable to initialize binding from pixmap
[11758:1013/215334.303537:ERROR:ozone_image_backing.cc(319)] OzoneImageBacking::ProduceSkiaGanesh failed to create GL representation
[11758:1013/215334.303550:ERROR:shared_image_manager.cc(408)] SharedImageManager::ProduceSkia: Trying to produce a Skia representation from an incompatible backing: OzoneImageBacking
[11758:1013/215334.303585:ERROR:gpu_service_impl.cc(1182)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
[11469:1013/215334.308181:ERROR:gpu_process_host.cc(953)] GPU process exited unexpectedly: exit_code=8704
[11615:1013/215334.369193:ERROR:command_buffer_proxy_impl.cc(125)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
^C[11469:1013/215718.133094:ERROR:wayland_event_watcher.cc(47)] libwayland: warning: queue 0xa6c008a53c0 destroyed while proxies still attached:

[11469:1013/215718.133166:ERROR:wayland_event_watcher.cc(47)] libwayland:   wl_shm_pool#41 still attached

Thanks for any help

Ok. ChatGPT found the answer now. I need to set the environment variable ELECTRON_OZONE_PLATFORM_HINT to “x11” so that They start using x11 and xwayland and not using normal wayland.

FWIW, I’m not running into this issue on GNOME on nixos-unstable.

It might be something with your wayland compositor, but using xwayland is a good workaround. Does this happen with other electron applications that should run on wayland?

I am using Niri at the moment as my wm. I think steam is also an electron app and works perfect.
The only problem I still have with both discord clients is that they do not load messages. I think eventually I just install flatpak and install them whith that.
Do you have your nix config on github? Or do you know someone with gnome who has? Then I could look if there are some default settings like drivers which are not set because I installed it without DE first.

Now I got it to work perfectly, I just switched from nixpkgs-25.05 to nixpkgs-unstable (I also switched from niri to hyprland so I do not know if there also was a problem with niri)