Closed Hypothesis-Z closed 1 year ago
Perhaps outbag.flush()
should be called here.
https://github.com/ros/ros_comm/blob/030e132884d613e49a576d4339f0b8ec6f75d2d8/tools/rosbag/src/rosbag/rosbag_main.py#L392-L399
If not, the writer is possible to seek a wrong end. https://github.com/ros/ros_comm/blob/030e132884d613e49a576d4339f0b8ec6f75d2d8/tools/rosbag/src/rosbag/bag.py#L605-L606
I tested it in native Ubuntu OS and everything is ok. It is supposed to be a WSL issue.
Error occurs when writing messages to rosbag. It does not always happen and seems to be able to appear on writing any item of the bag. So I have to try several times until all items are completely writed at one time.
BTW, my bag size is very large (dozens or hundreds of GB without compression) though I am not sure if it is responsible.
Environment:
Simplified Code:
Error Traceback: