Skip to content

Open File Leak #151

@P3TE

Description

@P3TE

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):

  • Unity Version: [e.g. Unity 2021.2.18f1]
  • Unity machine OS + version: [e.g. Ubuntu 18.04]
  • ROS machine OS + version: [e.g. Ubuntu 18.04, ROS Melodic]
  • ROS–Unity communication: [e.g. Bare Metal]
  • Branch or version: [e.g. v idk lol probably a little old]

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions