arachnetech / homebridge-mqttthing

A plugin for Homebridge allowing the integration of many different accessory types using MQTT.
Apache License 2.0
462 stars 104 forks source link

Maximum call stack size exceeded #524

Closed fearlesschicken closed 2 years ago

fearlesschicken commented 2 years ago

This chunk pop up for a few times in a row when restarting homebridge and causes homebridge to crash and restart. After that I see this again and homebridge stabilizes. It might crash again when this chunk of error messages pops up again.

Error occurred handling incoming (on eth0) dns query packet: RangeError: Maximum call stack size exceeded at Function.Array.from (/usr/local/lib/node_modules/homebridge-mqttthing/node_modules/collections/shim-array.js:34:5) at Function.Array.from (/usr/local/lib/node_modules/homebridge-mqttthing/node_modules/collections/shim-array.js:35:22) at Function.Array.from (/usr/local/lib/node_modules/homebridge-mqttthing/node_modules/collections/shim-array.js:35:22) at Function.Array.from (/usr/local/lib/node_modules/homebridge-mqttthing/node_modules/collections/shim-array.js:35:22) at Function.Array.from (/usr/local/lib/node_modules/homebridge-mqttthing/node_modules/collections/shim-array.js:35:22) at Function.Array.from (/usr/local/lib/node_modules/homebridge-mqttthing/node_modules/collections/shim-array.js:35:22) at Function.Array.from (/usr/local/lib/node_modules/homebridge-mqttthing/node_modules/collections/shim-array.js:35:22) at Function.Array.from (/usr/local/lib/node_modules/homebridge-mqttthing/node_modules/collections/shim-array.js:35:22) at Function.Array.from (/usr/local/lib/node_modules/homebridge-mqttthing/node_modules/collections/shim-array.js:35:22) at Function.Array.from (/usr/local/lib/node_modules/homebridge-mqttthing/node_modules/collections/shim-array.js:35:22)

This happens on .38 and .37. Currently downgraded to .36 to stop this from happening.

OS: Debian 11 Node: 16.13.1 Homebridge: 1.3.9

NorthernMan54 commented 2 years ago

Please see #518 for more details and a workaround for this issue.

fearlesschicken commented 2 years ago

Ah, I see the workaround. Thanks for the fast reply