Closed Apollon77 closed 6 years ago
I think the crash happens in https://github.com/ioBroker/ioBroker.s7/blob/master/test/lib/s7Server.js
On Windows for node 4 (on Appveyor) it just hangs (and Appveyor kills the test after 1h) basically at the same place in code where it brings that error on MacOS (I assume) It works fine on the other nodejs versions
Need to correct myself again: also happens on Linux. So it is nodejs 4 on all platforms where this problem exists.
On Linux the error is:
node: ../node_modules/nan/nan_object_wrap.h:55: void Nan::ObjectWrap::Wrap(v8::Local
Additonal Link to the Travis-ci/Appveyor tests for my project where you can see this:
Linux: https://travis-ci.org/ioBroker/ioBroker.s7/jobs/326887620#L840 MacOS: https://travis-ci.org/ioBroker/ioBroker.s7/jobs/326887626#L452 Windows: https://ci.appveyor.com/project/Apollon77/iobroker-s7/build/test-65/job/egcig2l9pa98cd63#L266 ( you only see that there is no output anymore and Appveyor killed it after 1h
@Apollon77 I'm currently searching for the reason, but I don't have any idea yet :confused:
Thank you in any case for your efforts! Hope you find the "holy gral" soon :-) I'm no C/C++ guy else I would offer help. But you can reproduce it?
Yes I could, thanks for reporting. If I google that error I see several issues but no real solution. I will ask in nodejs/help if I can't find a cause.
Should be fixed by e0ef6406b9aa4666946ab788f5e6d2f7324a6bdd. I will release a new version this weekend.
Cool! As soon as it is released I will update the dep in my project and verify it!
@Apollon77 You can try 1.0.0
now :)
Verified. Tests show green!! Thank you very much
Hi,
we use node-snap7 in a project and in our Travis-CI tests on MacOS the node process crashed immediately when starting with:
Assertion failed: (object->InternalFieldCount() > 0), function Wrap, file ../node_modules/nan/nan_object_wrap.h, line 55.
https://travis-ci.org/ioBroker/ioBroker.s7/jobs/326705863#L456 I tried also "build from source", same happens there.
Any idea what causes this?