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

Quiet crash when using native modules #37

Closed
justmoon opened this issue Aug 29, 2012 · 7 comments
Closed

Quiet crash when using native modules #37

justmoon opened this issue Aug 29, 2012 · 7 comments
Labels

Comments

@justmoon
Copy link

The following app stop executing without any error message whatsoever:

https://gist.github.com/3508168

The native module is loaded fine (require('buffertools');), but when you use it, execution simply stops. The only other visible symptom is that the node-webkit window is grey instead of white. There are no log messages or errors of any kind.

Tested on Linux x64, node-webkit 0.2.3.

Edit: Looks like this affects all native modules for me. Loading them works fine, but once you try to call any of their methods, the above bug is triggered.

@justmoon
Copy link
Author

Issue still present in node-webkit 0.2.4.

@zcbenz
Copy link
Contributor

zcbenz commented Sep 5, 2012

Fixed in 0.2.5

@zcbenz zcbenz closed this as completed Sep 5, 2012
@justmoon
Copy link
Author

I've tested a couple modules with 0.2.5 (on linux x64) - node-buffertools and node-leveldb seem to work now, but I still get the same symptoms when trying to use node-bignum. :(

Test case:
https://gist.github.com/3689523

@zcbenz
Copy link
Contributor

zcbenz commented Sep 10, 2012

Confirmed, I'll looking into it.

@zcbenz zcbenz reopened this Sep 10, 2012
@halfnelson
Copy link

also happening on windows x86. node modules with native bindings, originally it was throwing error because of the node x64 modules, but now running and recompiled for node 0.8.9 x86 I just get a grey window and no errors in the devtools etc. Devtools network tab says it is downloading my main js file (which does the includes) modules I am using are ffi and ref.

What version of node is this built against? maybe I just need to recompile with whichever node headers node-webkit expects?

Just tried recompiling my modules with node 8.8 (i think that is the one that node-webkit 0.2.5 uses) but still same grey screen.

@zcbenz
Copy link
Contributor

zcbenz commented Sep 14, 2012

It seems node-webkit has problems of using native modules on Windows platform, I opened a new issue #47 for this one, it will be fixed in v0.2.6.

@zcbenz
Copy link
Contributor

zcbenz commented Sep 14, 2012

@justmoon the OpenSSL's symbols are not exported, which caused failing of bignum module, I'll fix it in v0.2.6.

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

3 participants