8000 ros2 bag reindex does not recreate message index · Issue #2003 · ros2/rosbag2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

ros2 bag reindex does not recreate message index #2003

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
peci1 opened this issue May 8, 2025 · 1 comment
Open

ros2 bag reindex does not recreate message index #2003

peci1 opened this issue May 8, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@peci1
Copy link
peci1 commented May 8, 2025

Description

ros2 bag reindex does not recreate message index in bags whose recording was terminated forcefully.

Expected Behavior

When reindex successfully finishes, I'd expect the bag to be 100% usable, same as bags recorded fully.

Actual Behavior

$ ros2 bag reindex rosbag2_2025_05_08-14_09_36                                                                                                                                                              
[INFO] [1746706244.158341159] [rosbag2_cpp]: Beginning reindexing bag in directory: "rosbag2_2025_05_08-14_09_36"       
[WARN] [1746706244.207632544] [rosbag2_storage_mcap]: attempted to read in receive timestamp order with no message index                                                                                    
[WARN] [1746706244.207654755] [rosbag2_cpp]: Could not set read order on open(), falling back to file order                                                                                                 
[INFO] [1746706244.216940004] [rosbag2_cpp]: Reindexing complete.                                                                                                                                           
$ ros2 run rqt_bag rqt_bag rosbag2_2025_05_08-14_09_36                                                                                                                                                      
Qt: Session management error: None of the authentication protocols specified are supported                                                                                                                  
[WARN] [1746706250.787082517] [rosbag2_storage_mcap]: attempted to read in receive timestamp order with no message index                                                                                    
[WARN] [1746706250.862940743] [rosbag2_storage_mcap]: attempted to read in receive timestamp order with no message index                                                                                    
[WARN] [1746706250.866858055] [rosbag2_storage_mcap]: attempted to read in receive timestamp order with no message index                                                                                    
[WARN] [1746706250.870472811] [rosbag2_storage_mcap]: attempted to read in receive timestamp order with no message index
[WARN] [1746706250.875138264] [rosbag2_storage_mcap]: attempted to read in receive timestamp order with no message index
[WARN] [1746706250.881880333] [rosbag2_storage_mcap]: attempted to read in receive timestamp order with no message index      

To Reproduce

  1. Play a well working bag
  2. ros2 bag record -a in another console
  3. kill -9 the recording node
  4. ros2 bag reindex $bag
  5. ros2 run rqt_bag rqt_bag $bag

System (please complete the following information)

  • OS: Ubuntu Noble
  • ROS 2 Distro: Jazzy
  • Install Method: APT
  • Version: release

Additional context

Bag recording can be forcefully terminated for various reasons, e.g. voltage spikes on power distribution which reboot the PC, batteries running out etc.

@peci1 peci1 added the bug Something isn't working label May 8, 2025
@MichaelOrlov
Copy link
Contributor
MichaelOrlov commented May 24, 2025

@peci1 Can you please try to use mcap recover bag_file from the https://mcap.dev/guides/cli before running ros2 bag reindex $bag command?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants
0