Why rosout node costs more than a thousand file descriptors.With lsof -p <pid of rosout>
, nearly a thousand FD are "can't identify protocol", any solutions?
Robot Operating System(ROS), ROSOUT leak file descriptors
105 views Asked by Exia At
1
The problem is caused by a ros node shut down by exception.
I test a very simple code snippet:
I found that each time the code is executed, a leak of file descriptor is created, thus I assume that the reason is a node is shutdown before the socket connection between the node with the "rosout" node completed. The following code(might a bit of tricky) fixed the mentioned bug: