Brandawg93 / homebridge-nest-cam_old

Use your Nest Cam as IP camera in HomeKit.
Apache License 2.0
89 stars 14 forks source link

Crash when trying to open camera #8

Closed ikolsteren closed 6 years ago

ikolsteren commented 6 years ago

When I try to open either one of the cameras I get a crash /usr/local/lib/node_modules/homebridge-nest-cam/lib/streamer.js:139 requestBuffer = Buffer.concat([requestBuffer, Buffer.from(buffer)]);

TypeError: this in not a typed array

I have useOMX false and installed ffmpeg not sure what I am missing I am running on Ubuntu VM

KhaosT commented 6 years ago

What’s the node version?

Sent from my iPhone

On Nov 29, 2017, at 1:12 PM, ikolsteren notifications@github.com wrote:

When I try to open either one of the cameras I get a crash /usr/local/lib/node_modules/homebridge-nest-cam/lib/streamer.js:139 requestBuffer = Buffer.concat([requestBuffer, Buffer.from(buffer)]);

TypeError: this in not a typed array

I have useOMX false and installed ffmpeg not sure what I am missing I am running on Ubuntu VM

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

ikolsteren commented 6 years ago

I assume via node -v then v4.2.6

KhaosT commented 6 years ago

This plugin has a minimal node dependency of 8.x …

Sent from my iPhone

On Nov 29, 2017, at 4:21 PM, ikolsteren notifications@github.com wrote:

I assume via node -v then v4.2.6

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

ikolsteren commented 6 years ago

Ok just added the source and upgraded to 8 Now I get the following and homebridge dies /usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:35 throw ex; ^

KhaosT commented 6 years ago

Node module binding is version dependent. After update node, you need to make sure to rebuild those modules.

Sent from my iPhone

On Nov 29, 2017, at 4:57 PM, ikolsteren notifications@github.com wrote:

Ok just added the source and upgraded to 8 Now I get the following and homebridge dies /usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:35 throw ex; ^

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

JJJ commented 6 years ago

After update node, you need to make sure to rebuild those modules.

In other words, anytime you upgrade Node you'll need to go through the HomeBridge installation steps again. Once you do this, everything should hopefully start working for you.

ikolsteren commented 6 years ago

Looks like I got figured out last night and is working well