Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Homebridge is reporting a memory leak with this plugin [v1.6.0] #103

Open
SawkeeReemo opened this issue Mar 8, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@SawkeeReemo
Copy link

Describe The Bug:
Upon starting Homebridge, I'm seeing a MemoryLeak error from this plugin.

To Reproduce:
Restart Homebridge.

Expected behavior:
No memory leaks.

Logs:

(node:13690) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 message listeners added to [Socket]. Use emitter.setMaxListeners() to increase limit
    at _addListener (node:events:591:17)
    at Socket.addListener (node:events:609:10)
    at UdpDiscoveryNetworkFactory.createRawMessages (/homebridge/node_modules/homebridge-playstation/node_modules/playactor/dist/discovery/udp.js:132:16)
    at UdpDiscoveryNetworkFactory.createMessages (/homebridge/node_modules/homebridge-playstation/node_modules/playactor/dist/discovery/udp.js:113:21)
    at UdpDiscoveryNetworkFactory.createDevices (/homebridge/node_modules/homebridge-playstation/node_modules/playactor/dist/discovery/udp.js:148:21)
    at /homebridge/node_modules/homebridge-playstation/node_modules/playactor/dist/discovery/standard.js:16:99
    at Array.map (<anonymous>)
    at Object.createDevices (/homebridge/node_modules/homebridge-playstation/node_modules/playactor/dist/discovery/standard.js:16:76)
    at Discovery.discover (/homebridge/node_modules/homebridge-playstation/node_modules/playactor/dist/discovery.js:22:45)

Plugin Config:

{
    "pollInterval": 5000,
    "overrides": [
        {
            "name": "PlayStation5"
        }
    ],
    "platform": "playstation",
    "_bridge": {
        "username": <username>,
        "port": <port#>
    }
}

Screenshots:
N/A

Environment:

  • Plugin Version: v1.6.0
  • Homebridge Version: v1.7.0 · UI v4.55.1
  • Node.js Version: v18.19.0
  • NPM Version: 10.2.3
  • Operating System: Docker
@SawkeeReemo SawkeeReemo added the bug Something isn't working label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant