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

Unstable behavior of std::bad_alloc #420

Open
AssemSadek opened this issue Sep 27, 2023 · 2 comments
Open

Unstable behavior of std::bad_alloc #420

AssemSadek opened this issue Sep 27, 2023 · 2 comments

Comments

@AssemSadek
Copy link

AssemSadek commented Sep 27, 2023

Bug report

Required Info:

  • Operating System:
    • Ubuntu 20.04.5 LTS
    • Docker version 20.10.21
    • Jetson Xavier AGX with jetpack 5.1
  • Installation type: docker image on arm64v8/ros:foxy-ros1-bridge-focal
  • DDS implementation: Fast-RTPS

Steps to reproduce issue

  1. docker run -it --rm --net host arm64v8/ros:foxy-ros1-bridge-focal bash
  2. source ros_entrypoint.sh
  3. ros2 run ros1_bridge dynamic_bridge --bridge-all-topics

Expected behavior

Actual behavior

terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc

Additional Information

This behavior is not reproduced at each time. But it happens frequently at unexpected moments. But I noticed some triggers:

  1. at the moment of launching the node
  2. at the moment of a new subscriber to a topic. The same topic can have already other subscribers or zero subscribers before this new subscription. Therefore, the number of subscribers is not an indicator.
  3. whether I use the flag --bridge-all-topics or not, the behavior can pop out in both scenarios. Therefore, the number of bridges done is not also an indicator.
@F1iX
Copy link

F1iX commented Dec 18, 2023

For us, the std::bad_alloc problem appeared when using a ROS2 Foxy bridge to transfer sensor_msgs/NavSatFix messages from a ROS2 Iron container. Looks like the ROS2 versions are not necessarily compatible.

@gavanderhoorn
Copy link

Iron is not compatible with anything else IIRC. Mostly/largely because of ros2/rmw_dds_common#68.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants