Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nest Pluging Failling with std::bad_alloc #205

Open
chanomie opened this issue Jul 7, 2019 · 0 comments
Open

Nest Pluging Failling with std::bad_alloc #205

chanomie opened this issue Jul 7, 2019 · 0 comments

Comments

@chanomie
Copy link

chanomie commented Jul 7, 2019

After doing some upgrades, homebridge is crashing and I've narrowed it down to homebridge-nest plugin. If I have homebridge-nest in my config.json then homebridge crashes with std::bad_alloc otherwise it works for me.

node - 12.5.0 (I upgraded this)
homebridge - 0.4.50 (I upgraded this from 0.4.49)
homebridge-nest - 2.1.4

I uninstalled an re-installed all the homebridge packages and it did not resolve.
My config:

{
"bridge": {
"name": "Homebridge",
"username": "AC:22:3D:E3:CE:3A",
"port": 51826,
"pin": "031-00-000"
},
"platforms": [
{
"platform": "Nest",
"token": "c.xxx",
"clientId": "xxx",
"clientSecret": "xxx",
"username" : "xxx",
"password" : "xxx"
}
]
}

The startup log:

homebridge
[7/6/2019, 9:23:05 PM] Loaded config.json with 0 accessories and 1 platforms.
[7/6/2019, 9:23:05 PM] ---
[7/6/2019, 9:23:07 PM] Loaded plugin: homebridge-nest
[7/6/2019, 9:23:07 PM] Registering platform 'homebridge-nest.Nest'
[7/6/2019, 9:23:08 PM] ---
[7/6/2019, 9:23:08 PM] Loading 1 platforms...
[7/6/2019, 9:23:08 PM] [Nest] Initializing Nest platform...
[7/6/2019, 9:23:08 PM] [Nest] Fetching Nest devices.
homebridge(72961,0x7fffa34de380) malloc: *** mach_vm_map(size=1432663650996224) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc
Abort trap: 6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant