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

Steward fails on LiFX #220

Closed
webchickbot opened this issue May 8, 2014 · 10 comments
Closed

Steward fails on LiFX #220

webchickbot opened this issue May 8, 2014 · 10 comments
Assignees
Labels

Comments

@webchickbot
Copy link
Contributor

My LiFX bulb was manually turned off and when I turned it back on it caused the steward to fail. I have reinstalled the steward and it still generates the same error -

LIFX connected.
Assertion failed: (handle->InternalFieldCount() > 0), function Unwrap, file ../src/node_object_wrap.h, line 61.
./run.sh: line 102: 23578 Abort trap: 6           node index.js
@mrose17
Copy link
Member

mrose17 commented May 9, 2014

interesting. that sounds like node is corrupted on your system. let's start by unplugging the LIFX bulb and starting the steward and seeing if it crashes… thanks!

@mrose17 mrose17 added this to the V1.8 "Barbecue Ribs" milestone May 9, 2014
@mrose17 mrose17 self-assigned this May 9, 2014
@webchickbot
Copy link
Contributor Author

Yes - if I turn it off the light switch again manually, the steward comes up fine (I prefer not to remove it from the socket because it takes a ladder and a plank to physically reach it ... :-) )

@mrose17
Copy link
Member

mrose17 commented May 12, 2014

cc: @aallan

@webchickbot - according to martynsmith/node-irc#178 we need to try running node v0.10.24, so try this:

    % nvm install v0.10.24
    % nvm alias default v0.10.24

and then restart the steward and see if you get a crash. thanks!

@mrose17 mrose17 added bug and removed diagnostics labels May 12, 2014
@webchickbot
Copy link
Contributor Author

module.js:340
    throw err;
          ^
Error: Cannot find module 'glob'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object. (/Users/Cobwebs/Desktop/steward/steward/core/utility.js:2:19)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
Press ^C to exit or wait 10 seconds to restart

(LiFX is turned off)

@mrose17
Copy link
Member

mrose17 commented May 12, 2014

After doing a'git pull', there is also the 'npm -l install' one layer below.. (-;

/mtr via iPhone

On May 12, 2014, at 10:14, Rebecca Malamud [email protected] wrote:

module.js:340
throw err;
^
Error: Cannot find module 'glob'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/Users/Cobwebs/Desktop/steward/steward/core/utility.js:2:19)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
Press ^C to exit or wait 10 seconds to restart

(LiFX is turned off)


Reply to this email directly or view it on GitHub.

@webchickbot
Copy link
Contributor Author

gak - I knew that. Not enough coffee.

Should I change the docs here to include the newer version of node.js?
http://thethingsystem.com/dev/Bootstrapping-on-OS-X.html

@webchickbot
Copy link
Contributor Author

Hold the phone … I turned on the LiFX and I still get

LIFX connected.
Assertion failed: (handle->InternalFieldCount() > 0), function Unwrap, file ../src/node_object_wrap.h, line 61.
./run.sh: line 102:  9014 Abort trap: 6           node index.js
Press ^C to exit or wait 10 seconds to restart

@mrose17
Copy link
Member

mrose17 commented May 12, 2014

i defer to @aallan as to whether to update the docs for the new version. perhaps when we do the next release, we should do that.

with respect to the crash. this is in the node internals, and although the upgrade worked for at least one person, it's not working for you. i doubt that i can put together a simple test case to reliably get a failure, so you may have to live without lifx for a while until we can track it down… sorry!

@mrose17
Copy link
Member

mrose17 commented May 20, 2014

unable to reproduce, etc.

@mrose17 mrose17 closed this as completed May 20, 2014
@mrose17 mrose17 reopened this May 21, 2014
@mrose17
Copy link
Member

mrose17 commented May 21, 2014

it turns out that this (sometimes) happens in mavericks because of "use strict" in the node-clone module. until they get a fix, we'll use a different deep cloning module in the lifx module...

@mrose17 mrose17 closed this as completed May 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants