homebridge-camera-ffmpeg: Crashes Homebridge: RangeError: Maximum call stack size exceeded

Describe The Problem: When I install this plugin, it crashes Homebridge, both with or without config details.

To Reproduce: Yes, everytime, ongoing.

Logs: RangeError: Maximum call stack size exceeded at Function.Array.from (/homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/collections/shim-array.js:31:22) at Function.Array.from (/homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/collections/shim-array.js:31:22) at Function.Array.from (/homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/collections/shim-array.js:31:22) at Function.Array.from (/homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/collections/shim-array.js:31:22) at Function.Array.from (/homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/collections/shim-array.js:31:22) at Function.Array.from (/homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/collections/shim-array.js:31:22) at Function.Array.from (/homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/collections/shim-array.js:31:22) at Function.Array.from (/homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/collections/shim-array.js:31:22) at Function.Array.from (/homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/collections/shim-array.js:31:22) at Function.Array.from (/homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/collections/shim-array.js:31:22) at Function.Array.from (/homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/collections/shim-array.js:31:22) at Function.Array.from (/homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/collections/shim-array.js:31:22) at Function.Array.from (/homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/collections/shim-array.js:31:22) at Function.Array.from (/homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/collections/shim-array.js:31:22) at Function.Array.from (/homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/collections/shim-array.js:31:22) at Function.Array.from (/homebridge/node_modules/homebridge-camera-ffmpeg/node_modules/collections/shim-array.js:31:22) [12/26/2021, 10:46:49 PM] Got SIGTERM, shutting down Homebridge…

Show the Homebridge logs here.
Remove any sensitive information.

Homebridge Config:

{ “mdns”: { “interface”: “192.168.3.20” }, “bridge”: { “name”: “", “username”: "”, “port”: 51600, “pin”: “****”, “bind”: [ “bond0” ] }, “accessories”: [], “platforms”: [ { “name”: “Config”, “port”: 8581, “platform”: “config” }, { “controllers”: [ { “address”: “192.168.3.1”, “password”: “*****”, “username”: “homebridge” } ], “verboseFfmpeg”: false, “platform”: “UniFi Protect” }, { “platform”: “CoolMasterTelnet”, “ip”: “192.168.3.52”, “accessories”: [ { “displayName”: “Samir’s Bedroom”, “uniqueId”: “001” }, { “displayName”: “Sahir’s Bedroom”, “uniqueId”: “002” }, { “displayName”: “Master Bedroom”, “uniqueId”: “003” } ] } ], “disabledPlugins”: [] }

Screenshots:

Environment:

  • Node.js Version:
  • NPM Version:
  • Homebridge Version:
  • Homebridge Camera FFmpeg Version:
  • Homebridge Config UI X Plugin Version:
  • Operating System:

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 21 (14 by maintainers)

Most upvoted comments

Fantastic. Glad we got that resolved.

Thanks for the assist on this, @dgreif, @NorthernMan54, and @NebzHB.

Looking thru the commit log on mqtt, collections was added as a dependency here https://github.com/mqttjs/MQTT.js/pull/1301/files

As I can recreate the issue, I’m going to try pinning the mqtt version to the one prior

@NebzHB “mqtt >= 2.18.8” will currently evaluate to mqtt 4.3.1.