ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Invalid port mapping: port number(s) of out range

asked 2022-02-03 08:01:21 -0500

merosss gravatar image

updated 2022-02-04 03:30:38 -0500

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

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-02-03 09:35:05 -0500

merosss gravatar image

updated 2022-02-04 02:52:09 -0500

I don't think this is a solution, but switching the DDS solved the problem.

I added to my .bashrc file the following line, to switch from CycloneDDS to FastRTPS:

RMW_IMPLEMENTATION=rmw_fastrtps_cpp; export RMW_IMPLEMENTATION

and restarted my shell. After that, the nodes were running again.

Even if this solved the problem, it would be good to understand why CycloneDDS gave that problem.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-02-03 08:01:21 -0500

Seen: 172 times

Last updated: Feb 04 '22