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

OpenGL does not work under NVIDIA wrappers, but works just fine under Intel ones. #177

Open
2goodAP opened this issue May 2, 2024 · 0 comments

Comments

@2goodAP
Copy link

2goodAP commented May 2, 2024

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

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

No branches or pull requests

1 participant