Invalid port mapping: port number(s) of out range
I just updated my ROS2 version, from foxy to galactic, and I am getting this error in all my nodes:
1643896270.439717 [0] my_ros_node: Invalid port mapping: port number(s) of out range: multicast discovery 0000000000, multicast data 0000000000, unicast discovery 0000000000, unicast data 0000000000
It looks to me like a DDS problem. I already checked if the multicast was working correctly with ros2 multicast send/receive
and I had no problems.
I cannot find anything online regarding this problem, and it seems quite obscure to me, any hints?
I'm running Ros galatic, with the CycloneDDS on Ubuntu 20.04 inside VirtualBox on Win10 host machine.
GDB error stack:
Thread 1 "kinematic_contr" received signal SIGSEGV, Segmentation fault.
0x00007ffff69f00e3 in config_fini () from /opt/ros/galactic/lib/x86_64-linux-gnu/libddsc.so.0
(gdb) backtrace
#0 0x00007ffff69f00e3 in config_fini ()
from /opt/ros/galactic/lib/x86_64-linux-gnu/libddsc.so.0
#1 0x00007ffff6a34a6f in ?? () from /opt/ros/galactic/lib/x86_64-linux-gnu/libddsc.so.0
#2 0x00007ffff6a35010 in dds_create_domain ()
from /opt/ros/galactic/lib/x86_64-linux-gnu/libddsc.so.0
#3 0x00007ffff6ae54aa in ?? () from /opt/ros/galactic/lib/librmw_cyclonedds_cpp.so
#4 0x00007ffff6ae5ee8 in rmw_create_node () from /opt/ros/galactic/lib/librmw_cyclonedds_cpp.so
#5 0x00007ffff7d782e4 in rcl_node_init () from /opt/ros/galactic/lib/librcl.so
#6 0x00007ffff7ed7738 in rclcpp::node_interfaces::NodeBase::NodeBase(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::shared_ptr<rclcpp::Context>, rcl_node_options_t const&, bool, bool) () from /opt/ros/galactic/lib/librclcpp.so
#7 0x00007ffff7ecfa24 in rclcpp::Node::Node(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, rclcpp::NodeOptions const&) ()
from /opt/ros/galactic/lib/librclcpp.so
In-depth debug info: https://github.com/ros2/ros2/issues/1238