micro-ROS / micro-ROS-Agent

ROS 2 package using Micro XRCE-DDS Agent.
Apache License 2.0
101 stars 58 forks source link

Agent crashes with Not enough memory in the buffer stream #173

Closed chrisjaxy closed 2 years ago

chrisjaxy commented 2 years ago

Describe the bug The agent crashes when I send a small amount of incorrect data to the agent port.

To Reproduce Steps to reproduce the behaviour:

  1. ros2 run micro_ros_agent micro_ros_agent udp4 --port 8888
  2. echo "1" > /dev/udp/10.211.55.3/8888

Expected behaviour The agent is running normally.

System information (please complete the following information):

Additional context image

chrisjaxy commented 2 years ago

I tested on humble and found the same problem.

pablogs9 commented 2 years ago

Working on it

pablogs9 commented 2 years ago

Working on it here: https://github.com/eProsima/Micro-XRCE-DDS-Agent/pull/314

chrisjaxy commented 2 years ago

I did a simple test and the problem didn't happen again.