Skip to content
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

foxy-desktop: rviz2 errors not finding shared libraries #460

Closed
russkel opened this issue Sep 26, 2020 · 2 comments
Closed

foxy-desktop: rviz2 errors not finding shared libraries #460

russkel opened this issue Sep 26, 2020 · 2 comments

Comments

@russkel
Copy link

russkel commented Sep 26, 2020

Seems to be something up with the image:

$ docker run --rm -it osrf/ros:foxy-desktop
root@85599ff73d47:/# rviz2
rviz2: error while loading shared libraries: libconsole_bridge.so.1.0: cannot open shared object file: No such file or directory
@mikaelarguedas
Copy link
Contributor

to be able to run rviz2 (or other graphical tools) you need to give X11 access to your container, ideally using nvidia docker too to be able to leverage graphical hardware.

There are many ways of doing so https://answers.ros.org/question/313786/running-ros-and-its-gui-tools-through-a-docker-image/


However the library issue you're facing seems unrelated to the graphical environment and is likely due to an rviz2 issue that has been fixed but the foxy image is not up to date (pending docker-library/official-images#8786)

If you run an apt upgrade in your container it should work:

$ docker pull osrf/ros:foxy-desktop
$ rocker --x11 osrf/ros:foxy-desktop
# rviz2
rviz2: error while loading shared libraries: libconsole_bridge.so.1.0: cannot open shared object file: No such file or directory
# ldd /opt/ros/foxy/lib/rviz2/rviz2 | grep consol
	libconsole_bridge.so.1.0 => not found
	libconsole_bridge.so.0.5 => /opt/ros/foxy/lib/libconsole_bridge.so.0.5 (0x00007f68c9a61000)

If you upgrade:

# apt update && apt upgrade -y
# ldd /opt/ros/foxy/lib/rviz2/rviz2 | grep consol
	libconsole_bridge.so.1.0 => /opt/ros/foxy/lib/libconsole_bridge.so.1.0 (0x00007ff4e39c8000)
# rviz2
[INFO] [1601221583.409704360] [rviz2]: Stereo is NOT SUPPORTED
[INFO] [1601221583.409867589] [rviz2]: OpenGl version: 3.1 (GLSL 1.4)
[INFO] [1601221583.450979317] [rviz2]: Stereo is NOT SUPPORTED

@russkel
Copy link
Author

russkel commented Sep 27, 2020

viz2 issue that has been fixed but the foxy image is not up to date

Great, just wanted to make sure this was a known and reported issue.

Thanks for the solution.

@russkel russkel closed this as completed Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants