ros-visualization/rviz

Rviz Gtk-Critical errors when viewing URDF Config

Closed this issue · 1 comments

Some background first, I have been developing my project using an x86 Ubuntu system with Noetic and am attempting to port over my project to a RPi 4. I have used rviz to visualize my robots urdf on my x86 machine but have trouble loading in the meshes on my RPi. Starting rviz rosrun rviz rviz works fine, but attempting to load in the config for my robot causes the program to freeze up and crash after 30 seconds, after printing these errors to the screen.

qt5ct: D-Bus global menu: no
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile

(rviz:31952): GLib-GObject-WARNING **: 00:03:29.507: cannot register existing type 'GtkStyle'

(rviz:31952): GLib-GObject-WARNING **: 00:03:29.507: cannot add private field to invalid (non-instantiatable) type '<invalid>'

(rviz:31952): GLib-CRITICAL **: 00:03:29.507: g_once_init_leave: assertion 'result != 0' failed

(rviz:31952): Gtk-CRITICAL **: 00:03:29.507: gtk_paint_box_gap: assertion 'GTK_IS_STYLE (style)' failed

I have not modified my Qt / openGL / gtk install since flashing the OS, so I think its maybe a versioning issue? I did recently install freeglut3-dev and liglew-dev using apt.

I have also experienced a similar set of errors when attempting to add the MoveIt motion planning to rviz and when attempting to use the moveit setup assistant. I can post those if needed.

Your environment

  • OS Version: Raspberry Pi Buster 32 bit
  • ROS Distro: Noetic]
  • RViz, Qt, OGRE, OpenGl version as printed by rviz:
[ INFO] [1648104738.838094249]: rviz version 1.14.14   
[ INFO] [1648104738.838314432]: compiled against Qt version 5.11.3  
[ INFO] [1648104738.838359561]: compiled against OGRE version 1.9.0 (Ghadamon)  
[ INFO] [1648104738.895971173]: Forcing OpenGl version 0.  
[ INFO] [1648104739.615431271]: Stereo is NOT SUPPORTED  
[ INFO] [1648104739.615607324]: OpenGL device: V3D 4.2  
[ INFO] [1648104739.615720990]: OpenGl version: 2.1 (GLSL 1.2).

echo "$LANG $LC_NUMERIC": en_US.UTF-8

Googling the (first) error message yields several hits. I'm closing here, as this is not related to rviz.