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

Doesn't respond occasionally - MaxListenersExceededWarning #24

Open
matchett808-gh opened this issue Dec 28, 2020 · 0 comments
Open

Doesn't respond occasionally - MaxListenersExceededWarning #24

matchett808-gh opened this issue Dec 28, 2020 · 0 comments

Comments

@matchett808-gh
Copy link

(node:30862) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 handleWrite14 listeners added to [Peripheral]. Use emitter.setMaxListeners() to increase limit
    at _addListener (events.js:389:17)
    at Peripheral.addListener (events.js:405:10)
    at Peripheral.once (events.js:436:8)
    at Peripheral.writeHandle (/home/pi/am43-ctrl/node_modules/@abandonware/noble/lib/peripheral.js:182:10)
    at Peripheral.handleDeviceConnected (/home/pi/am43-ctrl/src/am43.js:198:29)
    at Object.onceWrapper (events.js:421:26)
    at Peripheral.emit (events.js:314:20)
    at Noble.onConnect (/home/pi/am43-ctrl/node_modules/@abandonware/noble/lib/noble.js:209:16)
    at NobleBindings.emit (events.js:314:20)
    at NobleBindings.onLeConnComplete (/home/pi/am43-ctrl/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:224:8)

I have this running node v12.18 and v12.20, both on a rpi and with noble 1.9.2-10

Both of these devices work 75% of the time, but the above error occurs the times when it doesn't.

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