Open Timple opened 5 months ago
The failure is very strange.
It turns out that we already have KeyboardInterrupt
handler in the relevant relay_field.py
https://github.com/ros-tooling/topic_tools/blob/cefac4787f10a706d4bacf115c628b95f5033461/topic_tools/topic_tools/relay_field.py#L217-L227
Also according to the call stack, the failure happened inside node.destroy_node()
call on the self.__node.destroy_when_not_in_use()
.
It might be that SIGINT
arrived twice. i.e., the second time when we were already in the final stage in the self.__node.destroy_when_not_in_use()
. Need to reproduce and debug this issue.
Description
KeyboardInterrupt
exception on shutdownExpected Behavior
Clean shutdown
Actual Behavior
To Reproduce
** Steps to reproduce the behavior, e.g.
ros2 topic pub /chatter std_msgs/String "{}"
ros2 run topic_tools relay_field /chatter /chatter2 std_msgs/String "{data: m.data}"
System (please complete the following information)