error corrupted size vs. prev_size in ros::spinOnce()
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?
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?