ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

RViz memory leak?

asked 2013-11-11 23:53:02 -0600

Okke gravatar image

updated 2014-02-14 02:03:23 -0600

Hello all,

I noticed that after a long time (hours) my memory was stuffed full when working with our robot. When closing RViz this memory is released. I suspect that there is a memory leak in RViz.

To replicate this error, I recorded a bag file, which is rather large (350MB) and can thus be found we.tl/Qba0dJdPqc, or you can use we.tl/2x6yPrGhBH smaller bag file.

The used config file for RViz is included.

To replicate: Launch rviz with the provided config file and play the bag file. You will see your memory usage increasing over time. This bag file is not long enough to actually fill my memory(6GB) but you get the idea. Now if you remove the green Gridcells display, the one that displays the '/move_base/local_costmap/inflated_obstacles' topic, there is no memory leak (or it is happening much slower).

Is this a problem on my end and/or did anyone else notice this problem? Does anyone have a solution?

The robot is running electric, RViz is ran on a pc running hydro, could this be causing the problem? I noticed that the new move_base/local_costmap in hydro uses a occupancy grid instead of the girdcells.

I know electric is quite old already and therefore we are upgrading the robot to hydro shortly, but just wanted to share this observation with you.

With kind regards,

Okke Hendriks

Rose B.V. - www.robot-rose.nl

edit retag flag offensive close merge delete

Comments

+1 for sharing .bag file. During the entire last week, I kept running RViz to exhibit a robot all day long and once (but only once) I saw memory leaked to 15GB. Though I haven't replicated it, a customer keeps mentioning about that single occurrence and thus I'd like to know more about this issue.

130s gravatar image 130s  ( 2013-11-12 00:05:16 -0600 )edit
4

See https://github.com/ros-visualization/rviz/issues/695 for another instance of a severe memory leak in rviz on hydro. It appears the maintainers are very busy atm, as there has been no reaction to posted issues in quite some time.

Stefan Kohlbrecher gravatar image Stefan Kohlbrecher  ( 2013-11-12 02:58:16 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
6

answered 2014-02-14 02:03:43 -0600

Okke gravatar image

This memory leak has been fixed, see https://github.com/ros-visualization/...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-11-11 23:53:02 -0600

Seen: 1,593 times

Last updated: Feb 14 '14