Ar-Ray-code / rpi-bullseye-ros2

ROS2-Jazzy for Raspbian-bookworm
https://zenn.dev/array/books/5efdb438cf8be3
MIT License
76 stars 17 forks source link

RenderSystem: error creating render window #22

Open JohnFarl opened 2 weeks ago

JohnFarl commented 2 weeks ago

I have installed jazzy on Raspberry Pi 4 (Raspberry Pi OS Bookworm 64 bit). When I launch rviz2 I get this error: [rviz2]: rviz::RenderSystem: error creating render window: RenderingAPIException: Invalid parentWindowHandle (wrong server or screen) in GLXWindow::create at /ros2_ws/build/rviz_ogre_vendor/ogre_vendor-prefix/src/ogre_vendor/RenderSystems/GLSupport/src/GLX/OgreGLXWindow.cpp (line 246)

Ar-Ray-code commented 2 weeks ago

Have you switched to x11 mode? rpi-bookworm is wayland by default and Rviz will not work in this environment.

Open the configuration screen with sudo raspi-config and follow the steps in the image below

image

JohnFarl commented 2 weeks ago

Thanks for the reply. I haven't tried to switch to old x11 mode. Isn't possible to make it work on wayland?

Ar-Ray-code commented 2 weeks ago

As indicated in the following issue, ROS-pkg's dependencies depend on the corresponding Ubuntu-enabled libraries.

https://github.com/ros2/rviz/issues/847

I have not yet tracked Ubuntu 24.04 support, but Wayland support for RaspberryPi requires Wayland (debian12/arm64) specific source code.

If there is useful information on transplantation, it would be incorporated into future development plans.

nathanshankar commented 6 days ago

I've already changed it from Wayland to X11, however I have a headless setup and I keep getting this issue when I've connected using vnc:

pi@raspberrypi:~ $ rviz2 qt.qpa.xcb: QXcbConnection: XCB error: 148 (Unknown), sequence: 192, resource id: 0, major code: 140 (Unknown), minor code: 20 Segmentation fault