swri-robotics / mapviz

Modular ROS visualization tool for 2D data.
BSD 3-Clause "New" or "Revised" License
390 stars 149 forks source link

mapviz hangs and crashes on ROS melodic #648

Open daniel-dsouza opened 5 years ago

daniel-dsouza commented 5 years ago

When using mapviz on Ubuntu Budgie or Ubuntu Mate 18.04, adding some plugins including the pointcloud and odometry plugins will cause mapviz to hang, and crash a few seconds later. This occurs whether building from source or using mapviz from the ROS package repo.

The error differs between distros, although in both case mapviz complains in the terminal that it cannot find the GTK_STYLE, and attaching gdb, mapviz seems to hang when painting a line.

Mapviz appears to work fine with the stock DE. Another symptom of the problem is that the color picker for the background does not indicate the current color.

MrSurfinbird commented 4 years ago

Hi, had the same problem and almost gave up until I found that the following works for me. By changing to gtk3.0 before running mapviz by running the following:

export QT_QPA_PLATFORMTHEME=gtk3
export QT_STYLE_OVERRIDE=gtk3

If you can't start mapviz you can always remove the config file with the following: rm ~/.mapviz_config

Hope this helps even though I'm a year late.