This error doesn't seem to do anything but just shows up when a node is closing because of the FAST DDS middleware.
Switching to Cyclone DDS fixes the issue.
cannot publish data, at ./src/rmw_publish.cpp:62 during '__function__' [ERROR] [1683253430.994510851] [trajectory_test_node.rclcpp]: Error in destruction of rcl subscription handle: Failed to delete datareader, at ./src/subscription.cpp:52, at ./src/rcl/subscription.c:183 cannot publish data, at ./src/rmw_publish.cpp:62 during '__function__' Fail in delete datareader, at ./src/rmw_service.cpp:104 during '__function__' [ros2run]: Segmentation fault
This error doesn't seem to do anything but just shows up when a node is closing because of the FAST DDS middleware.
Switching to Cyclone DDS fixes the issue.
cannot publish data, at ./src/rmw_publish.cpp:62 during '__function__' [ERROR] [1683253430.994510851] [trajectory_test_node.rclcpp]: Error in destruction of rcl subscription handle: Failed to delete datareader, at ./src/subscription.cpp:52, at ./src/rcl/subscription.c:183 cannot publish data, at ./src/rmw_publish.cpp:62 during '__function__' Fail in delete datareader, at ./src/rmw_service.cpp:104 during '__function__' [ros2run]: Segmentation fault