Open AssemSadek opened 9 months ago
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.
Iron is not compatible with anything else IIRC. Mostly/largely because of https://github.com/ros2/rmw_dds_common/pull/68.
Bug report
Required Info:
Steps to reproduce issue
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.