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

crashed when load addon #8179

Closed
1 task
xueqino1 opened this issue Apr 21, 2024 · 3 comments
Closed
1 task

crashed when load addon #8179

xueqino1 opened this issue Apr 21, 2024 · 3 comments
Labels

Comments

@xueqino1
Copy link

Issue Type

Before opening an issue, please search and see if it has already been raised.

Bug Report

  • Successfully reproduced against the latest version of NW.js?
    yes

Current/Missing Behavior

I compiled iohook addon with command "cmake-js rebuild --runtime=nw --runtimeVersion=0.37.3 --arch=x64", it works fine in nwjs 0.37.3.
now I need to update nwjs to 0.63.1, and I compiled iohook with command "cmake-js rebuild --runtime=nw --runtimeVersion=0.63.1 --arch=x64", it's finished without any errors and generated iohook.node uiohook.dll successfully . but when nwjs 0.63.1 loads iohook, nwjs crashed. I also tested some other nwjs versions, 0.37.4 works, but 0.58.0 0.69.1 0.86.0 are all crashed. it seems all versions upper than 0.37.4 don't work. I tested some node versions (V17.8.0 , V15.14.0 etc) with compile command "cmake-js rebuild --runtime=node --runtimeVersion=x.x.x --arch=x64", it works fine.

test step:
run nw.exe, F12 open devtools, input 'const a = require("iohook") ' in console, then the devtools window quit, and the main window show crashed.

I got the crashpad file, but I don't have enough knowledge to analyze it.could you take a look? thanks so much.76f65f70-ca57-4c4a-b95d-5f530f99c7ec.dmp

Expected/Proposed Behavior

Additional Info

  • Operating System:windows 10
  • NW.js Version: 0.63.1
  • Repro Link:
  • Code snippet:
  • Crash report:
    a1
    a2
@ayushmanchhabra
Copy link
Contributor

I think this should be opened as an issue on the CMake.js repo.

@ayushmanchhabra
Copy link
Contributor

NW.js Node addons are compiled by using custom headers. My guess is that CMake.js is not downloading those custom headers for versions above 0.37.3. The headers can be downloaded using this format https://dl.nwjs.io/v{VERSION}/nw-headers-v{VERSION}.tar.gz

@xueqino1
Copy link
Author

NW.js Node addons are compiled by using custom headers. My guess is that CMake.js is not downloading those custom headers for versions above 0.37.3. The headers can be downloaded using this format https://dl.nwjs.io/v{VERSION}/nw-headers-v{VERSION}.tar.gz

thanks for your reply, but I don't think so. first , it works normally in nwjs0.37.4 which I use for the first time too. second, when cmake compiles for other nwjs versions, I can see it downloads the hearder files in the log

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

2 participants