Skip to content
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

Warning when using rosbag2 mcap on humble: No storage plugin found with id 'mcap' #1195

Closed
ajayvohra2005 opened this issue Dec 3, 2022 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@ajayvohra2005
Copy link

Description

When I open a rosbag2 recorded with mcap in a Python client, I get the warning below:
[rosbag2_storage]: No storage plugin found with id 'mcap'

Other than the warning, it appears to work fine and I see no other errors.

Expected Behavior

Do not expect to see no [rosbag2_storage]: No storage plugin found with id 'mcap' warning.

Actual Behavior

[WARN] [1670089642.967771980] [rosbag2_storage]: No storage plugin found with id 'mcap'

To Reproduce

** Steps to reproduce the behavior, e.g.

>>> import rosbag2_py
>>> bag_path= # set to your rosbag2 directory
>>> reader = rosbag2_py.SequentialReader()
>>> storage_options=rosbag2_py.StorageOptions(uri=bag_path, storage_id='mcap', storage_preset_profile="zstd_fast")
>>> converter_options = rosbag2_py.ConverterOptions(input_serialization_format='cdr',output_serialization_format='cdr')
>>> reader.open(storage_options, converter_options)
[WARN] [1670089642.967771980] [rosbag2_storage]: No storage plugin found with id 'mcap'.
>>>

System (please complete the following information)

  • OS: Ubuntu Jammy
  • ROS 2 Distro: Humble
  • Version: [release, branch, or commit hash]

Additional context

** Add any other context about the problem here **

@ajayvohra2005 ajayvohra2005 added the bug Something isn't working label Dec 3, 2022
@emersonknapp
Copy link
Collaborator

emersonknapp commented Dec 4, 2022

I'm not 100% certain - everything is working OK, it just prints this unexpected warning? Or, it is not working properly?

@MichaelOrlov
Copy link
Contributor

@james-rms james-rms self-assigned this Dec 6, 2022
@wep21
Copy link
Contributor

wep21 commented Dec 7, 2022

// try all registered ReadOnly plugins first
auto instance = get_interface_instance(
read_only_class_loader_, storage_options);
// try ReadWrite plugins if no ReadOnly plugin was found
if (instance == nullptr) {
instance = get_interface_instance<ReadWriteInterface, storage_interfaces::IOFlag::READ_ONLY>(
read_write_class_loader_, storage_options);
}
if (instance == nullptr) {
if (storage_options.storage_id.empty()) {
ROSBAG2_STORAGE_LOG_ERROR_STREAM(
"No storage id specified, and no plugin found that could open URI");
} else {
ROSBAG2_STORAGE_LOG_ERROR_STREAM(
"Could not load/open plugin with storage id '" << storage_options.storage_id << "'");
}
}

I guess when opening a read only interface, read-only plugins are explored first, so no storage plugin warnings are always coming up because sqlite3 or mcap is a read write plugin.

@MichaelOrlov
Copy link
Contributor

Ahh, - if you are just worry about those warning and everything else works as expected. Then yes we have fixed those warning on rolling in the scope of the

@emersonknapp
Copy link
Collaborator

Anyway as alternative we can just remove those logging warning in

I thing we should just do this - the messaging was always misleading.

@emersonknapp
Copy link
Collaborator

Fixed in #1219

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

5 participants