LightHandler warning

Each time I restart NR, I have these warnings:

(node:432) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 update listeners added to [LightHandler]. Use emitter.setMaxListeners() to increase limit
(node:432) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 new listeners added to [LightHandler]. Use emitter.setMaxListeners() to increase limit
(node:432) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 update listeners added to [LightHandler]. Use emitter.setMaxListeners() to increase limit
(node:432) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 new listeners added to [LightHandler]. Use emitter.setMaxListeners() to increase limit
(node:432) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 update listeners added to [LightHandler]. Use emitter.setMaxListeners() to increase limit
(node:432) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 new listeners added to [LightHandler]. Use emitter.setMaxListeners() to increase limit
(node:432) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 update listeners added to [LightHandler]. Use emitter.setMaxListeners() to increase limit
(

What is "LightHandler" and how to troubleshoot this?

MaxListenersExceededWarning is a common warning message.

One of your node types attaches to the LightHandler event variable - which means you potentially have 11 nodes from the same palette.

This is not a problem in itself, you can contact the author of the palette so that he can increase or remove this limit.

...and how to get the right palette? Should I look only for palettes with more than 11 nodes? I have a lot of palettes with more than 11 nodes...

This is the first step indeed, try to disable at least one and you will see if the number decreases. (I cannot remember if the message disappears below 10)

Share with us the palettes you use, I will see if I can find.

This is package.json:

{
  "name": "node-red-project",
  "description": "A Node-RED Project",
  "version": "0.0.1",
  "dependencies": {
    "alexa-remote2": "github:Apollon77/alexa-remote",
    "bcryptjs": "^2.4.3",
    "moment-timezone": "^0.5.33",
    "monaco-editor": "^0.34.0",
    "node-red-contrib-alexa-cakebaked": "~4.0.3",
    "node-red-contrib-countdown": "~1.3.2",
    "node-red-contrib-cron-plus": "~2.1.0",
    "node-red-contrib-email-out": "~0.1.1",
    "node-red-contrib-looptimer-advanced": "~0.0.8",
    "node-red-contrib-node-hue": "~0.9.5",
    "node-red-contrib-simple-gate": "~0.5.2",
    "node-red-contrib-simpletime": "~2.11.0",
    "node-red-contrib-tado-client": "~0.10.11",
    "node-red-contrib-ui-artless-gauge": "~0.3.12",
    "node-red-contrib-ui-led": "~0.4.11",
    "node-red-contrib-ui-level": "~0.1.46",
    "node-red-contrib-virtual-smart-home": "~4.4.0",
    "node-red-dashboard": "~3.6.5",
    "node-red-node-ping": "~0.3.3",
    "node-red-node-smooth": "~0.1.2"
  }
}

It's node-red-contrib-node-hue

The issue could depend upon the number of nodes connected to the palette, or the number of Hue groups/lamps?

I would say the number of in/out nodes

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.