question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

My C++ module works on node 6.2.2 but it crashes on nwjs 0.15.4 for Linux

See original GitHub issue

Hi,

Thanks for great work with nwjs.

I am trying to use 0.15.4 for my project. My module written in C++ and wrapped using node-ffi works well with nodejs 6.2.2 but when I tried to use it with nwjs 0.15.4, it crashed (I only tested on Linux)

In the console, it says

nw: ../../nan/nan.h:679: Nan::MaybeLocal<v8::Object> Nan::NewBuffer(char*, size_t, node::Buffer::FreeCallback, void*): Assertion `length <= imp::kMaxLength && "too large buffer"' failed.

Dump file dump.zip

The simple sample code to reproduce the crash https://github.com/cuongle121/nwjs-demo-0.15.4-crash

Thanks! Cuong.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
cuongleqqcommented, Jul 7, 2016

Thank you very much for the quick response!

0reactions
rogerwangcommented, Jul 7, 2016

close as duplicate of #5025

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crashed on loading app after updating NWJS #6854 - GitHub
I updated my node version to match nwjs. I reinstalled all dependencies via npm ci and it still crashes. I also confirmed that...
Read more >
Use Native Node Modules - NW.js Documentation
Make sure you rebuilt all native modules. Or you will meet various issues, even crashes. Once manually rebuild don't work for you, try...
Read more >
NW.JS failed to load grpc binary module - Stack Overflow
P.S. It works prefectly fine if I run node server.js command in cmd and then run the nwjs. I am developing on windows...
Read more >
NW.js Build Executable File for Windows
Lets you build your NW.js apps for mac, win and linux via cli. ... First of all, install the node-webkit-builder module globally using:....
Read more >
Node - CVE - Search Results
IBM WebSphere Application Server 8.5, and 9.0 is vulnerable to cross-site scripting. This vulnerability allows users to embed arbitrary JavaScript code in the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found