-
Notifications
You must be signed in to change notification settings - Fork 86
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
humble.rviz2 not working, Unable to create glx visual #299
Comments
There seems to be at least two problems:
|
Thanks for your reply! I fixed 2 and tried nixGL, but $ QT_XCB_GL_INTEGRATION=none nix run --impure --override-input nixpkgs nixpkgs/nixos-unstable github:guibou/nixGL -- rviz2
Unable to create glx visual
[ERROR] [1694099755.698413320] [rviz2]: RenderingAPIException: Invalid parentWindowHandle (wrong server or screen) in GLXWindow::create at /build/rviz-release-release-humble-rviz_ogre_vendor-11.2.7-1/build/ogre-v1.12.1-prefix/src/ogre-v1.12.1/RenderSystems/GLSupport/src/GLX/OgreGLXWindow.cpp (line 257)
[ERROR] [1694099755.698475136] [rviz2]: rviz::RenderSystem: error creating render window: RenderingAPIException: Invalid parentWindowHandle (wrong server or screen) in GLXWindow::create at /build/rviz-release-release-humble-rviz_ogre_vendor-11.2.7-1/build/ogre-v1.12.1-prefix/src/ogre-v1.12.1/RenderSystems/GLSupport/src/GLX/OgreGLXWindow.cpp (line 257)
... This might be related to Nvidia driver NixOS/nixpkgs#85866 (comment) |
I have the same error if I don't have |
I've exported $ nix run --impure --override-input nixpkgs nixpkgs/nixos-unstable github:guibou/nixGL -- gl
xinfo
warning: not writing modified lock file of flake 'github:guibou/nixGL':
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/441dc5d512153039f19ef198e662e4f3dbb9fd65' (2022-08-15)
→ 'github:NixOS/nixpkgs/0bffda19b8af722f8069d09d8b6a24594c80b352' (2023-09-06)
name of display: :0
Error: couldn't find RGB GLX visual or fbconfig |
In this case I'd need more information to help. What's your Linux distribution, which GPU (and drivers) do you have and which desktop environment do you use? Also, does accelerated graphics (e.g. glxgears) work in the underlaying distro? |
Thank you very much for your help. Should I raise an issue on guibou/nixGL instead of this? $ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.3.13_1, Void, noversion, nobuild`
- multi-user?: `no`
- sandbox: `yes`
- version: `nix-env (Nix) 2.17.0` $ glxgears
Running synchronized to the vertical refresh. The framerate should be
approximately the same as the monitor refresh rate.
1544 frames in 5.0 seconds = 308.755 FPS
1501 frames in 5.0 seconds = 300.012 FPS $ glxinfo -B
name of display: :0
display: :0 screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
Vendor: AMD (0x1002)
Device: AMD Radeon Graphics (renoir, LLVM 15.0.7, DRM 3.52, 6.3.13_1) (0x1638)
Version: 23.1.3
Accelerated: yes
Video memory: 512MB
Unified memory: no
Preferred profile: core (0x1)
Max core profile version: 4.6
Max compat profile version: 4.6
Max GLES1 profile version: 1.1
Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
VBO free memory - total: 70 MB, largest block: 70 MB
VBO free aux. memory - total: 7503 MB, largest block: 7503 MB
Texture free memory - total: 70 MB, largest block: 70 MB
Texture free aux. memory - total: 7503 MB, largest block: 7503 MB
Renderbuffer free memory - total: 70 MB, largest block: 70 MB
Renderbuffer free aux. memory - total: 7503 MB, largest block: 7503 MB
Memory info (GL_NVX_gpu_memory_info):
Dedicated video memory: 512 MB
Total available memory: 8219 MB
Currently available dedicated video memory: 70 MB
OpenGL vendor string: AMD
OpenGL renderer string: AMD Radeon Graphics (renoir, LLVM 15.0.7, DRM 3.52, 6.3.13_1)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 23.1.3
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL version string: 4.6 (Compatibility Profile) Mesa 23.1.3
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 23.1.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20 |
I no longer work on a nvidia machine, closing this issue |
Do I need to install nixgl? qt5.base can't be installed manually
my
flake.nix
:rviz2 output:
The text was updated successfully, but these errors were encountered: