rviz does not work properly within Autoware.Auto ADE
Conclusion: https://gitlab.com/AutowareAuto/AutowareAuto/issues/49#conclusion
Description
The prebuilt rviz
package experiences segfaults and otherwise does not behave as expected.
Building rviz
from source in ADE is non-trivial due to OpenGL library linking.
To avoid confusion, this issue should focus on the segfaulting issue. The building from source comment is mentioned for completeness.
This issue was discovered and initially reported here: https://gitlab.com/AutowareAuto/AutowareAuto/merge_requests/26#note_133126822
The issue may stem from system packages that differ between Ubuntu 16.04 and 18.04, as indicated by William from OSRF in this issue: https://github.com/ros-visualization/rviz/issues/1000
Additionally, when rviz
is built from source there are issues with the expected versions of system libraries within ADE, which makes it a non-trivial workaround.
How to Reproduce
- Install ROS 1 Melodic http://wiki.ros.org/melodic/Installation/Ubuntu
- Start rviz
$ ade enter
ade$ source /opt/ros/melodic/setup.bash
ade$ rviz
Notice that rviz cannot load the default.rviz
file, so there are no panels on the main window.
Notice that if a keyboard key is pressed, rviz
segfaults.
Current Behavior
rviz
cannot load a style / layout sheet, and segfaults on keyboard press.
Expected behavior
rviz
doesn't segfault, and style / layout sheets can be loaded on startup, or manually.
Conclusion
See the last two comments of this issue: