Closed rektide closed 5 years ago
Hey. I modified the package.json to make the install
script be debug (node-gyp rebuild --debug
), but the segfault stack-trace still looks the same.
Big leap, but this inuitively feel like it may be a Nan
bug, but I'll poke around in the openzwave-shared code a little & see if anything jumps out at me. Any help at getting better debugging would be sweet.
It seems to be fixed by adding parameters like this.
var zwave = new ZWave({ ConsoleOutput: false, Logging: false });
Confirmed that adding the parameter fixed it.
I'll try to pick up a little bit more about Node Addons to see if I can get this documented usage working.
bug confirmed - The code assumes a non-empty options object.Will fix that now...
https://github.com/OpenZWave/node-openzwave-shared/tree/bugfix/issue%23214-crash-on-empty-options committed, will merge once dear Mr. Travis gives us the green light
Having this same issue. jacksun101's fix worked for me.
Erm... forgot to merge this. Also seems that Travis was singing the blues so all build tests failed. Will look this up now
This issue is still occurring as of v1.4.8. Any progress on this?
Erm... forgot to merge this. Also seems that Travis was singing the blues so all build tests failed. Will look this up now
Is it Merged now ? it is sill occurring on 1.4.8 !
this is merged and released with 1.5.0
Hello. I was using this project fine about a year ago, with the latest of this lib and open-zwave, on whatever the latest Node 8 was. I just came back to this project, & got a crash trying to
var ozw = new (require("openzwave-shared"))()
The segfault looks like:
I have updated to the latest openzwave-shared addon and open-zwave library. I have high confidence the open-zwave library is properly installed (via a
sudo make install
). This is now Node 8.9.4.Is there anything I should do to get better debugging information in these stack traces? If I'm not compounding the work required to help out, it'd be great to know how to get debugging information such as line numbers in stack traces, if that's a thing.
Thank you so so much. This library is amazingly helpful. My humble apologies for raising this issue.