Robotics StackExchange | Archived questions

Bug in rosbag with compressed files?

Hello all,

I have recorded a fairly long rosbag file (~8.5Mb).

However, when I try to play it I get:

[FATAL] [1441050519.918179421]: size of the compressed data exceeds *destLen

Here is rosbag info:

path:         M200-0211.bag
version:      2.0
duration:     10hr 47:10s (38830s)
start:        Aug 28 2015 14:28:56.45 (1440786536.45)
end:          Aug 29 2015 01:16:06.82 (1440825366.82)
size:         8.1 MB
messages:     175484
compression:  bz2 [26/26 chunks; 30.41%]
uncompressed: 19.3 MB @ 0.5 KB/s
compressed:    5.9 MB @ 0.2 KB/s (30.41%)
types:        batmon/bat_data   [bdfbbcf4c50a2392913c2601912adfc3]
              rosgraph_msgs/Log [acffd30cd6b6de30f120938c17c593fb]
              std_msgs/UInt8    [7c8164229e7d2c17eb95e9231617fdee]
topics:       /B1                5 msgs    : std_msgs/UInt8   
              /B2             6569 msgs    : std_msgs/UInt8   
              /BATMON       155755 msgs    : batmon/bat_data  
              /rosout         6583 msgs    : rosgraph_msgs/Log (6 connections)
              /rosout_agg     6572 msgs    : rosgraph_msgs/Log

The file itself is here, though it needs custom message type from: https://github.com/ibaranov-cp/batmon

Asked by IliaBaranov on 2015-08-31 14:54:46 UTC

Comments

Answers

It looks like it's throwing here: https://github.com/ros/ros_comm/blob/ace5b9c11af766564441bad2cb08f5fca5b73784/tools/rosbag_storage/src/bz2_stream.cpp#L151

My guess is that there's a maximum number of supported elements in the bag which this is violating since this is a lot of small messages the 2Gb chunking sizes doesn't keep the number of messages low.

Asked by tfoote on 2015-08-31 20:02:01 UTC

Comments