I installed ubuntu 24.04 and installed ros2 jazzy
when I type "rviz2" at the terminal, it does not work
- ubuntu version: 24.04
- ros2 version: jazzy
- hardware: intel nuc & raspberry pi 5 (I tried both hardwares and they crashed with the same error)
error code:
abc@abc-desktop:~$ rviz2
QSocketNotifier: Can only be used with threads started with QThread
[INFO] [1716564885.402155305] [rviz2]: Stereo is NOT SUPPORTED
[INFO] [1716564885.402365477] [rviz2]: OpenGl version: 3.1 (GLSL 1.4)
[ERROR] [1716564885.487098451] [rviz2]: rviz::RenderSystem: error creating render window: RenderingAPIException: Invalid parentWindowHandle (wrong server or screen) in GLXWindow::create at ./.obj-aarch64-linux-gnu/ogre_vendor-prefix/src/ogre_vendor/RenderSystems/GLSupport/src/GLX/OgreGLXWindow.cpp (line 246)
[ERROR] [1716564885.487502091] [rviz2]: rviz::RenderSystem: error creating render window: RenderingAPIException: Invalid parentWindowHandle (wrong server or screen) in GLXWindow::create at ./.obj-aarch64-linux-gnu/ogre_vendor-prefix/src/ogre_vendor/RenderSystems/GLSupport/src/GLX/OgreGLXWindow.cpp (line 246)
... (same error code) ...
[ERROR] [1716564885.503710931] [rviz2]: rviz::RenderSystem: error creating render window: RenderingAPIException: Invalid parentWindowHandle (wrong server or screen) in GLXWindow::create at ./.obj-aarch64-linux-gnu/ogre_vendor-prefix/src/ogre_vendor/RenderSystems/GLSupport/src/GLX/OgreGLXWindow.cpp (line 246)
[ERROR] [1716564885.503799340] [rviz2]: rviz::RenderSystem: error creating render window: RenderingAPIException: Invalid parentWindowHandle (wrong server or screen) in GLXWindow::create at ./.obj-aarch64-linux-gnu/ogre_vendor-prefix/src/ogre_vendor/RenderSystems/GLSupport/src/GLX/OgreGLXWindow.cpp (line 246)
[ERROR] [1716564885.503824193] [rviz2]: Unable to create the rendering window after 100 tries
terminate called after throwing an instance of 'std::runtime_error'
what(): Unable to create the rendering window after 100 tries
Aborted (core dumped)