-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Sudden nwjs process exit when my native node module calls node::AtExit() #6047
Comments
If you run with
is what I get... and just removing my call to node::AtExit() allows my addon to work... |
cc @Christywl |
I can reproduce this issue, try on Windows 10 with Visual Studio 2015:
var addon = nw.require(String.raw`C:\\nwjs\\bugs\\6047\\build\\Debug\\addon.node`);
Step 3: Run |
This is fixed in git and will be available in the next nightly build. |
When my add-on calls
node::AtExit(myCallback, NULL);
nwjs just exits suddenly:This occurs for nwjs v.
0.23.6
and0.24-rc1 nightly
. It has worked fine before (i.e. in nwjs0.22.3
).So I assume it may be related to Node.js
v.8
? But that I have not verified since my dev machine still runs Node.js0.6.9.something
.I build and run the add-on on Windows 7 Professional 32-Bit using VS Studio 2015.
The test setup is the simplest Node add-on possible:
binding.gyp
Building the add-on is by the book:
Next you run
nw.exe
(the SDK build), attach the VS Debugger to thenw.exe
process (the first in the process list), and when you load the add-on from the dev console withthe debugger stops at the breakpoint. Stepping over it will then quit the whole process.
Has anyone encountered issues with
node::AtExit
?The text was updated successfully, but these errors were encountered: