Currently, I’m trying to use Rviz2 with GPU by settings the following environment variable __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia, however i got these errors on docker container /tmp/.X11-unix and /tmp/.docker.xauth volume mounted.
ai@ubuntu:~$ __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia rviz2
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-ai'
[ERROR] [1756109491.419668382] [rviz2]: rviz::RenderSystem: error creating render window: basic_string::_M_construct null not valid
[ERROR] [1756109491.419858655] [rviz2]: InvalidParametersException: Window with name 'OgreWindow(0)' already exists in GLRenderSystem::_createRenderWindow at ./.obj-aarch64-linux-gnu/ogre-v1.12.1-prefix/src/ogre-v1.12.1/RenderSystems/GL/src/OgreGLRenderSystem.cpp (line 1061)
[ERROR] [1756109491.419906367] [rviz2]: rviz::RenderSystem: error creating render window: InvalidParametersException: Window with name 'OgreWindow(0)' already exists in GLRenderSystem::_createRenderWindow at ./.obj-aarch64-linux-gnu/ogre-v1.12.1-prefix/src/ogre-v1.12.1/RenderSystems/GL/src/OgreGLRenderSystem.cpp (line 1061)
[ERROR] [1756109491.419930496] [rviz2]: InvalidParametersException: Window with name 'OgreWindow(0)' already exists in GLRenderSystem::_createRenderWindow at ./.obj-aarch64-linux-gnu/ogre-v1.12.1-prefix/src/ogre-v1.12.1/RenderSystems/GL/src/OgreGLRenderSystem.cpp (line 1061)
[ERROR] [1756109491.419984576] [rviz2]: rviz::RenderSystem: error creating render window: InvalidParametersException: Window with name 'OgreWindow(0)' already exists in GLRenderSystem::_createRenderWindow at ./.obj-aarch64-linux-gnu/ogre-v1.12.1-prefix/src/ogre-v1.12.1/RenderSystems/GL/src/OgreGLRenderSystem.cpp (line 1061)
Does anyone know how to use Rviz2 with gpu? since it use a lot of CPU load.
Currently I’m using Jetpack 5.1.2 (L4T 35.4.1) due to camera driver problem.
I have the same problem. In my case, I try to display rviz2 inside Isaac ROS docker container from a remote Jetson AGX Orin machine via SSH in my ubuntu workstation.
I am able to display xclock and xeyes from inside Isaac Ros container in my workstation successfully but cannot make it for rviz2. I got similar error from the post.
Here is my jetson info from jetson_release command:
- Model: NVIDIA Jetson AGX Orin Developer Kit
- L4T: 36.4.4
Serial Number: [XXX Show with: jetson_release -s XXX]
Hardware:
- Module: Check with sudo
Platform:
- Distribution: Ubuntu 22.04 Jammy Jellyfish
- Release: 5.15.148-tegra
jtop:
- Version: 4.3.2
System has not been booted with systemd as init system (PID 1). Can't operate.
Failed to connect to bus: Host is down
- Service: Inactive
Libraries:
- CUDA: 12.6.68
- cuDNN: 9.10.2.21
- TensorRT: 10.7.0.23
- VPI: 3.2.4
- OpenCV: 4.5.4 - with CUDA: NO
Please make sure you have launched the container with --runtime nvidia.
This plugin will mount the essential driver to allow the container to access the GPU.