Closed farfromrefug closed 7 years ago
@farfromrefug Did you rebuild noble-uwp after switching from node v6 to node v7? Node addons are not binary-compatible across node major versions. (I'm actually part of a working group that is fixing that problem, but it's a longer-term solution.)
If that's not the problem, then this would likely be a NodeRT issue. It might be one more reason to not use NodeRT in this project.
@jasongin Yes that issue appears while noble-uwp is actually built with node v7 by doing
npm rebuild --runtime-electron --target=1.6.6 --arch=x64 --rebuild
But when did you actually create the project? (cpp files). It seems that node rt made some fixes for Electron And it seems like you use files generated with nodeRT. maybe they are not up to date?
I last generated the files with the latest NodeRT maybe a month or two ago, so it was long after those linked electron fixes.
I'll try to investigate with Node version 7, and open bugs against NodeRT depending on what I find.
@jasongin i can do it too if you don't have time ;) Is there s like an easy command to generate the sources from nodert? Thanks
I probably won't have time to work on this for at least a few days, so go for it!
The NodeRT code-generation commands are saved at https://github.com/jasongin/noble-uwp/blob/master/uwp/generate-uwp.cmd
Note I had to manually patch the generated code in one place to fix a build error. I still need to open a bug against NodeRT for that...
I think re-generating the code is unlikely to fix anything, since I don't see any recent updates to NodeRT.
@jasongin thanks will try. Even if it does not fix anything at least i can report saying we tried with the latest build!
Hi @jasongin and @farfromrefug , I believe that the issue here was due to a change in the memory management policy in the v8 versions that node 7.* picks up and it did cause a dormant bug in NodeRT to appear. I just fixed it in the latest NodeRT release (2.0.5) (in https://github.com/NodeRT/NodeRT/commit/b51321c3e861b448fb36dd6b2ed61af0e06de3c4), and I have a good reason to believe that it should fix this issue as well.
I didn't have the chance to reproduce this exact issue, but in case you guys can verify that this issue is now fixed, that would be super helpful :)
Thanks @nadavbar! @farfromrefug or I will verify that this is fixed.
Thanks @nadavbar ! @jasongin do i just need to build or do we need to re generate the project? Actually i see now that i need to re-generate ;) Will try when i have time THanks
@farfromrefug - Another option is just to replace the NodeRTUtils.cpp file in all of the modules (each NodeRT module has it's own version) and then rebuild. You can grab it from here: https://github.com/NodeRT/NodeRT/blob/master/src/NodeRTLib/ProjectFiles/NodeRtUtils.cpp
@nadavbar that's a lot easier ;) Thanks Will try today then
@jasongin @nadavbar It works! I dont see anymore crash using noble-uwp Thanks a lot!
I merged the fix here:https://github.com/jasongin/noble-uwp/commit/2ba36a460b6632afa251dc30fbd75eb804e6ed8d
@jasongin thanks! will close my PR then
With the latest nodejs,
noble-uwp
crashes every time It works with the same test on 6.x. Could you update the uwp projects for node 7.x ? I think it might solve the issue. Thanks