error corrupted size vs. prev_size in ros::spinOnce()

asked 2018-09-09 06:03:13 -0500

siyan gravatar image

Hi all,

Im running ros melodic with gazebo 9 in ubuntu 18. I use gazebo's kinect simulator in a virtual scene in Gazebo, generate depth images and publish them to ros topics. It works well. I can use rqt visualize the depth images by ros topic.

In my program, I subscribe the topic to get these images. When I use spinOnce() to call the callback function, sometime it works, sometimes it crash, error: corrupted size vs. prev_size.

Whats wrong?

edit retag flag offensive close merge delete

Comments

error: corrupted size vs. prev_size

Googling for this error shows that it's typically associated with memory (ie: heap/stack) corruption. Are you using any pointer arithmetic or array handling in your callback?

gvdhoorn gravatar image gvdhoorn  ( 2018-09-09 11:17:34 -0500 )edit