Skip to content

Bag recorder sometimes loses/skips data on bag split #2108

@RMichaelSwan

Description

@RMichaelSwan

Description

The bag recorder seems to skip recording some data when large bag file splits (~4-5 GB) are saved. This behavior does not seem to occur for smaller split sizes. It is important to note that this occurred when using an external hard drive for storage.

Expected Behavior

Bag recorder would not lose data it is able to capture.

Actual Behavior

Data is missing for 1 minute every ~10 minutes (time it takes for us to record 4.7GB on our robot). In previous recording tests with smaller splits (~50MB) this does not occur. The bag recorder node does not give any error in the logs.

To Reproduce

  1. Record bag with large split (e.g. 5GB)
  2. After 1 or more splits occur, end recording
  3. Review data timestamps, look for gaps

System (please complete the following information)

  • OS: Ubuntu Noble
  • ROS 2 Distro: Jazzy
  • Install Method: APT
  • Version: 0.26.6 (latest on Jazzy apt as of 2025-04-02)

Additional context

We were directing the recorder to save to an external hard drive like this one which has a USB 3.1 Gen 2 link rate. My guess is that the file writer took long enough that it held up the recorder from continuing to capture data. I suppose that this kind of issue could be partially alleviated by the proposal from #2007 though a more robust solution would be preferred if possible. Additional error messaging if this is not logically resolveable without changing settings/environment would be helpful .

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions