homebridge-miio icon indicating copy to clipboard operation
homebridge-miio copied to clipboard

TimeoutOverflowWarning with Node 9.10.0

Open Bankaifan opened this issue 7 years ago • 12 comments

After Upgrading to 9.10.0 I had to remove Homebridge-miio since it wrote this message ever millisecond to the log (node:8662) TimeoutOverflowWarning: Infinity does not fit into a 32-bit signed integer. Timeout duration was set to 1.

Bankaifan avatar Mar 29 '18 18:03 Bankaifan

I have the same problem. Is there any solution?

mensa84 avatar Feb 09 '19 15:02 mensa84

I have no idea, I'm using node 11.6 in my home. Is there a compelling reason why this software needs to support such outdated versions of node js?

Bluebie avatar Feb 09 '19 15:02 Bluebie

I tried with 10 and 11 and that error is appearing on both.

mensa84 avatar Feb 09 '19 16:02 mensa84

I recently setup a test installation to see if i could reproduce this, aside from my regular home setup, and i'm not seeing it. Can you provide more information about your setups?

Bluebie avatar Feb 09 '19 16:02 Bluebie

It's a fresh install on debian 9. Only homebridge + requirements + node are installed.

mensa84 avatar Feb 09 '19 16:02 mensa84

It seems as if this error is only appearing if the homebridge directories "accessories" and "persist" are EMPTY at startup of homebridge with a newer NodeJS version. I can't say which file or entry makes that problem. Maybe that helps you to find?

mensa84 avatar Feb 09 '19 16:02 mensa84

Is it required, that additionally miio is installed? https://www.npmjs.com/package/miio

mensa84 avatar Feb 09 '19 17:02 mensa84

It's absolutely required - it's an npm dependancy, so if you installed homebridge-miio via npm, it will have installed miio along with it.

Bluebie avatar Feb 09 '19 17:02 Bluebie

I installed now by that command: npm install -g --unsafe-perm homebridge-miio How can I check if miio is really installed?

mensa84 avatar Feb 09 '19 17:02 mensa84

This is still a major issue -- totally kills my raspberry pi's logs. Avoid this and all packages dependent on it.

psolin avatar Jun 04 '19 00:06 psolin

i have the same problem but that wasn't the case with pi3. now I'm on a pi4 with node -v v12.16.1

and npm -v 6.14.1

phenomeus avatar Mar 01 '20 09:03 phenomeus

I meet the same issue. I'm using: pi4 node v14.17.5 npm v6.14.14

Blindingend avatar Aug 19 '21 15:08 Blindingend