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

Too Many Listeners #19

Open
robbydek opened this issue Aug 19, 2021 · 1 comment
Open

Too Many Listeners #19

robbydek opened this issue Aug 19, 2021 · 1 comment

Comments

@robbydek
Copy link

robbydek commented Aug 19, 2021

(node:7075) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 characteristicsDiscover listeners added to [Service]. Use emitter.setMaxListeners() to increase limit

I think this has to be due to the number of devices that I have on my homebridge along with 5 switchmate devices (4 v3 switches and an outlet).
It appears to be affecting my ability to use my switchmate devices with HomeKit.

It looks like the number of listeners could be increased in the code to solve for this.

@robbydek
Copy link
Author

I got an error now. Here's the context:

(node:7075) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 characteristicsDiscover listeners added to [Service]. Use emitter.setMaxListeners() to increase limit
(node:7075) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 characteristicsDiscover listeners added to [Service]. Use emitter.setMaxListeners() to increase limit
(node:7075) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 characteristicsDiscover listeners added to [Service]. Use emitter.setMaxListeners() to increase limit
(node:7075) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 characteristicsDiscover listeners added to [Service]. Use emitter.setMaxListeners() to increase limit
(node:7075) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 characteristicsDiscover listeners added to [Service]. Use emitter.setMaxListeners() to increase limit
(node:7075) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 characteristicsDiscover listeners added to [Service]. Use emitter.setMaxListeners() to increase limit
[8/19/2021, 2:49:22 PM] TypeError: callback is not a function
at Switch3.updateBatteryLevel (/usr/lib/node_modules/homebridge-switchmate-ble/lib/Switch3.js:164:52)
at Timeout._onTimeout (/usr/lib/node_modules/homebridge-switchmate-ble/lib/Switch3.js:168:18)
at listOnTimeout (internal/timers.js:557:17)
at processTimers (internal/timers.js:500:7)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant