Python is Killed while reading a bag file using read_messages
I'm trying to read a .bag
file (which has about 150 MB of size) using the function read_messages
. I added a print
to my loop and I can see that a lot of messages are read, but then, all of a sudden, the script terminates with a "Killed" message, where the error message (retrieved using echo $?
from the terminal) is 137, which means that some other process killed my script. So, why would this happen? How can I solve this?
See here the specific part of the code I am using which is responsible for reading the bag file.
I have installed ROS Melodic on a VM (both with VirtualBox and VMWare Fusion 11). I am afraid that this could be a memory problem, but I am not sure.
Did you have any
visualization_msg/MarkerArray
messages in your bag? I ran into an out-of-memory issue reading bags with python until I excluded using topics with those (regularMarker
is suspect too). (I'd like to track it down and get the issue fixed but may not get to it)