bug in eventemitter2
Posted: 17 Dec 2023 19:11
Hello,
I need someone who knows what's going on:
There seems to be a bug in eventemitter2. Sometimes it throws an exception together with its warning
I found this warning printed at 2 places in the code. On one place it throws this exception.
The text proposes to use emitter.setMaxListeners() to increase the limit. Does anybody know how to do that? I want to get rid of this exception.
I need someone who knows what's going on:
There seems to be a bug in eventemitter2. Sometimes it throws an exception together with its warning
Code: Select all
[2023-12-17 14:48:07.626] [I] [core] (node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit. 11
[2023-12-17 14:48:07.647] [E] [core] Callback execution error: TypeError: undefined is not a function
at EventEmitter.on [as addListener] (automation/lib/eventemitter2.js:392:29)
at _.extend.on (automation/classes/DevicesCollection.js:203:37)
The text proposes to use emitter.setMaxListeners() to increase the limit. Does anybody know how to do that? I want to get rid of this exception.