You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I managed to install nixGL and nixGLNvidia thanks to #165. But they still do not work. Here are some programs I attempted to run using the NVIDIA wrappers. Please note that all these errors are identical to the errors I get when running these programs without the nixGL prefix. Also note that all of these programs run just fine under nixGLIntel .
However, the Vulkan NVIDIA wrapper--nixVulkanNvidia--works well though, I ran both vulkaninfo and vkcube successfully using it.
Amazon Workspaces
$ nixGL workspacesclient
Gtk-Message: 17:36:19.252: Failed to load module "colorreload-gtk-module"
Gtk-Message: 17:36:19.252: Failed to load module "window-decorations-gtk-module"
Cannot get default EGL display: EGL_SUCCESS
** (workspacesclient:59127): WARNING **: 17:36:39.204: Disabled hardware acceleration because GTK failed to initialize GL: No GL implementation is available.
MESA-LOADER: failed to open nouveau: /run/opengl-driver/lib/dri/nouveau_dri.so: cannot open shared object file: No such file or directory (search paths /run/opengl-driver/lib/dri, suffix _dri)
MESA-LOADER: failed to open kms_swrast: /run/opengl-driver/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory (search paths /run/opengl-driver/lib/dri, suffix _dri)
MESA-LOADER: failed to open swrast: /run/opengl-driver/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /run/opengl-driver/lib/dri, suffix _dri)
Failed to create GBM device for render device: /dev/dri/renderD129: No such file or directory
Gtk-Message: 17:36:39.421: Failed to load module "colorreload-gtk-module"
Gtk-Message: 17:36:39.421: Failed to load module "window-decorations-gtk-module"
Slack
$ nixGL slack
[59754:0502/173759.807754:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
[59754:0502/173759.807908:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
[59754:0502/173759.807969:ERROR:gl_display.cc(786)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
[59754:0502/173759.808231:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: glXQueryExtensionsString returned NULL
[59754:0502/173759.808285:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: glXQueryExtensionsString returned NULL
[59754:0502/173759.808332:ERROR:gl_display.cc(786)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[59754:0502/173759.808382:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed.
[59754:0502/173759.808433:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
glxinfo/glxgears
$ nixGL glxinfo
name of display: :0
Error: couldn't find RGB GLX visual or fbconfig
Alacritty
$ nixGL alacritty
Error: Error { raw_code: None, raw_os_message: None, kind: NotSupported("provided display handle is not supported") }
Nixpkgs version: cfd6b5fc90b15709b780a5a1619695a88505a176 (nixpkgs-unstable) Nix version: 2.13.3 Host OS: Ubuntu 24.04 NVIDIA Driver version: 550.67 (Same for both Host and nixGL) Desktop Manager: KDE Plasma 5 Display Server: Wayland
The text was updated successfully, but these errors were encountered:
I had a similar issue, and discovered it may be linked to the NVIDIA On-Demand PRIME profile, which tries to balance X rendering between CPU graphics and GPU for power efficiency. Setting the PRIME Profile to "NVIDIA (Performance Mode)" fixed the issue for me.
However I believe that this can be fixed in NixGL to force GPU rendering when a GPU is detected using these env variables. The following worked for me even in NVIDIA On-Demand mode.
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia nix run --impure github:nix-community/nixGL -- <myapp>
So, I managed to install
nixGL
andnixGLNvidia
thanks to #165. But they still do not work. Here are some programs I attempted to run using the NVIDIA wrappers. Please note that all these errors are identical to the errors I get when running these programs without thenixGL
prefix. Also note that all of these programs run just fine undernixGLIntel
.However, the Vulkan NVIDIA wrapper--
nixVulkanNvidia
--works well though, I ran bothvulkaninfo
andvkcube
successfully using it.Amazon Workspaces
Slack
glxinfo/glxgears
Alacritty
Nixpkgs version:
cfd6b5fc90b15709b780a5a1619695a88505a176
(nixpkgs-unstable)Nix version: 2.13.3
Host OS: Ubuntu 24.04
NVIDIA Driver version: 550.67 (Same for both Host and
nixGL
)Desktop Manager: KDE Plasma 5
Display Server: Wayland
The text was updated successfully, but these errors were encountered: