Ask Your Question

ROS2/rviz2 cannot load pixmaps

asked 2019-10-15 04:37:26 -0600

xbaelus gravatar image

Hello! New to ROS/RViz so please bear with me :) After installing ROS2 dashing package, I am getting these errors after starting RViz2 (in docker):

[ERROR] [rviz2]: Could not load pixmap package://rviz_common/icons/rotate.svg
[ERROR] [rviz2]: Could not load pixmap package://rviz_common/icons/rotate.svg-- using default cursor instead.

These files are present in ROS2 installation path:

find /opt/ros/ -name rotate.svg

The command I'm running:

ros2 run rviz2 rviz2 -l

Environment variables:



Linux 5.0.0-31-generic #33~18.04.1-Ubuntu x86_64 GNU/Linux

Ogre log:

Could anyone help me with this issue?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-10-19 08:35:25 -0600

ignacio gravatar image

In this issue it has been said :

"I had the same problem, due to a corrupted Qt5 installation. You could try setting the following environmental variable: export QT_DEBUG_PLUGINS=1 and then running rviz in the same terminal. In my case the debug prints said: Cannot load library /usr/lib/x86_64-linux-gnu/qt5/plugins/imageformats/ ( cannot open shared object file: No such file or directory). So I solved the issue by reinstalling the related Qt plugin (sudo apt-get --reinstall install libqt5svg5)."

edit flag offensive delete link more


Already checked that, no problems from Qt reported in log

xbaelus gravatar image xbaelus  ( 2019-10-21 02:26:43 -0600 )edit

I have to take my words back, it seems the issue for me was that svg library for Qt was not even installed (hence no debug print about it). Installing it fixes the problem :)

xbaelus gravatar image xbaelus  ( 2019-10-21 09:25:30 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-10-15 04:36:50 -0600

Seen: 213 times

Last updated: Oct 19 '19