sebj / homebridge-mac-temperature-light

Homebridge accessories to estimate room temperature, and room ambient light from Mac sensors.
7 stars 1 forks source link

Segmentation fault after temperature accessory update timer #3

Open williamli opened 6 years ago

williamli commented 6 years ago

Runs into segmentation fault every few minutes once MacTemperature is added as accessory.

MacOS v10.13.4 Node v9.10.1

sebj commented 6 years ago

Sorry about this, just tested and found the same, occurring after the 4 min update timer just for the temperature accessory.. SIGSEGV (Address boundary error).

Problem must lie somewhere in the native code in src/Temperature.mm. I'll try and track this bug down, but assembling the native code was a somewhat piecemeal effort.

(Anyone checking out the repo, appreciate any help! 😄 )

I'll push out a package update disabling the temperature accessory for now, to avoid breaking any Homebridge server.