Unity-Technologies / ROS-TCP-Endpoint

ROS package used to create an endpoint to accept ROS messages sent from a Unity scene using the ROS TCP Connector scripts
Apache License 2.0
177 stars 118 forks source link

Open File Leak #151

Open P3TE opened 2 years ago

P3TE commented 2 years ago

Describe the bug So I was running my simulator in a stop start fashion for a while with the ROS_TCP_Endpoint running in the background and after a while I noticed some additional errors in the console: [ERROR] [1652857378.828228]: Exception: [Errno 24] Too many open files

To Reproduce Steps to reproduce the behavior:

  1. Register publishers & subscribers, a lot

Console logs / stack traces

[INFO] [1652857997.679180]: Disconnected from 127.0.0.1
[INFO] [1652857999.689510]: Connection from 127.0.0.1
[INFO] [1652857999.690933]: RegisterSubscriber(/tf, <class 'tf2_msgs.msg._TFMessage.TFMessage'>) OK
[ERROR] [1652857999.691834]: Exception: [Errno 24] Too many open files
[INFO] [1652857999.692657]: Disconnected from 127.0.0.1
[INFO] [1652858000.695326]: Connection from 127.0.0.1
[INFO] [1652858000.702791]: RegisterSubscriber(/tf, <class 'tf2_msgs.msg._TFMessage.TFMessage'>) OK
[ERROR] [1652858000.703683]: Exception: [Errno 24] Too many open files
{Repeat Every Two Seconds Indefinitely}

Environment (please complete the following information, where applicable):

Additional context It's possible that it's been encountered before and been fixed (I am a little behind on the version at the moment). What I might do is update my version of ROS_TCP_Connector and ROS_TCP_Endpoint and see if I can still replicate the issue.