npm-installer
npm-installer copied to clipboard
Crash on macOS during start
After upgrading to 0.22.0-sdk nw is crashing on start on macOS Sierra 10.12.4, showing the following dialog:

Here is what I have in the console:
npm install -g [email protected]
/usr/local/bin/nw -> /usr/local/lib/node_modules/nw/bin/nw
> [email protected] postinstall /usr/local/lib/node_modules/nw
> node scripts/install.js
/usr/local/lib
└── [email protected]
nw --version
dlopen /usr/local/lib/node_modules/nw/nwjs/nwjs.app/Contents/MacOS/../Versions/58.0.3029.81/nwjs Framework.framework/nwjs Framework: dlopen(/usr/local/lib/node_modules/nw/nwjs/nwjs.app/Contents/MacOS/../Versions/58.0.3029.81/nwjs Framework.framework/nwjs Framework, 257): no suitable image found. Did find:
/usr/local/lib/node_modules/nw/nwjs/nwjs.app/Contents/MacOS/../Versions/58.0.3029.81/nwjs Framework.framework/nwjs Framework: file too short
/usr/local/lib/node_modules/nw/nwjs/nwjs.app/Contents/Versions/58.0.3029.81/nwjs Framework.framework/nwjs Framework: file too short
Same error here with [email protected]
:
I have a package.json
like this:
{
"name":"hello",
"version":"1.0.0",
"devDependencies":{
"nw":"^0.22.0",
"nw-builder":"^3.2.0"
},
"scripts":{
"dev":"nw src/",
"prod":"nwbuild --platforms win32,win64,osx64,linux32,linux64 --buildDir dist/ src/"
}
}
I run: npm install
which installs the (local) node modules properly.
Since I defined a script called dev
, I then run: npm run dev
(from the root of my project) which returns this:
dlopen /Users/me/hello/node_modules/nw/nwjs/nwjs.app/Contents/MacOS/../Versions/58.0.3029.81/nwjs Framework.framework/nwjs Framework: dlopen(/Users/me/hello/node_modules/nw/nwjs/nwjs.app/Contents/MacOS/../Versions/58.0.3029.81/nwjs Framework.framework/nwjs Framework, 257): no suitable image found. Did find:
/Users/me/hello/node_modules/nw/nwjs/nwjs.app/Contents/MacOS/../Versions/58.0.3029.81/nwjs Framework.framework/nwjs Framework: file too short
/Users/me/hello/node_modules/nw/nwjs/nwjs.app/Contents/Versions/58.0.3029.81/nwjs Framework.framework/nwjs Framework: file too short
+1
perhaps the dir structure changed in .22 (working with a vanilla install)
I think it probably has something to do with switch to symbolic links instead of actual content in 0.22. I've added a bit more details about dir structure change in https://github.com/evshiron/nwjs-builder-phoenix/issues/30
I'm also getting this issue after upgrading to 0.22.0. NW.js apps will not run.
This is due to dependent download library issue not respecting symlinks which is already solved on their end. I have created a PR(#58) to simply update it. Hope it works!
also experiencing this. Anyone have a workaround?
+1
@funwithtriangles Click the reaction button instead of writing +1 so you don't send me a noisy pointless notification, thanks!
Wanted to update my nwjs CLI to pull the latest version of nw
but doing so lead to this error when attempting to run the app
dlopen /Users/rohandeshpande/app/node_modules/nw/nwjs/nwjs.app/Contents/MacOS/../Versions/59.0.3071.86/nwjs Framework.framework/nwjs Framework: dlopen(/Users/rohandeshpande/app/node_modules/nw/nwjs/nwjs.app/Contents/MacOS/../Versions/59.0.3071.86/nwjs Framework.framework/nwjs Framework, 257): no suitable image found. Did find:
/Users/rohandeshpande/app/node_modules/nw/nwjs/nwjs.app/Contents/MacOS/../Versions/59.0.3071.86/nwjs Framework.framework/nwjs Framework: file too short
Have to downgrade back to 0.20.1
to make it work. Can someone please approve @nurishi's PR to get this sorted?
Still encountering this in "nw": "0.23.5-sdk"
:
$ ./node_modules/nw/nwjs/nwjs.app/Contents/MacOS/nwjs
dlopen ./node_modules/nw/nwjs/nwjs.app/Contents/MacOS/../Versions/59.0.3071.115/nwjs Framework.framework/nwjs Framework: dlopen(./node_modules/nw/nwjs/nwjs.app/Contents/MacOS/../Versions/59.0.3071.115/nwjs Framework.framework/nwjs Framework, 257): no suitable image found. Did find:
./node_modules/nw/nwjs/nwjs.app/Contents/MacOS/../Versions/59.0.3071.115/nwjs Framework.framework/nwjs Framework: file too short
./node_modules/nw/nwjs/nwjs.app/Contents/Versions/59.0.3071.115/nwjs Framework.framework/nwjs Framework: file too short
[1] 36728 abort ./node_modules/nw/nwjs/nwjs.app/Contents/MacOS/nwjs
Can someone please approve @nurishi's PR?
It's been almost two weeks, bumping @Mithgol
Thanks for reminding me. A fix is published in v0.23.6-1 (and in v0.23.6-sdk-1) and now I need a macOS user to confirm or deny the results.
I tried both v0.23.6-1 and in v0.23.6-sdk-1 on macOS and can confirm that they work. Thanks for the fix!
Okay.
Now, does anyone really need a v0.24.0-beta1sdk-1?
Nodody does.
Okay, this is closed, there's nothing else to do.
It's still happens on mac os with versions 0.23.7, 0.24.*, only 0.25.0 from live-build works well
dlopen /Users/robaweb/work/jivoapp/nwjs/sdk/nwjs-sdk-v0.23.7-osx-x64/nwjs.app/Contents/MacOS/../Versions/59.0.3071.115/nwjs Framework.framework/nwjs Framework: dlopen(/Users/robaweb/work/jivoapp/nwjs/sdk/nwjs-sdk-v0.23.7-osx-x64/nwjs.app/Contents/MacOS/../Versions/59.0.3071.115/nwjs Framework.framework/nwjs Framework, 257): no suitable image found. Did find: /Users/robaweb/work/jivoapp/nwjs/sdk/nwjs-sdk-v0.23.7-osx-x64/nwjs.app/Contents/MacOS/../Versions/59.0.3071.115/nwjs Framework.framework/nwjs Framework: file too short /Users/robaweb/work/jivoapp/nwjs/sdk/nwjs-sdk-v0.23.7-osx-x64/nwjs.app/Contents/Versions/59.0.3071.115/nwjs Framework.framework/nwjs Framework: file too short ./run-mac: line 3: 96052 Abort trap: 6 sdk/nwjs-sdk-v0.23.7-osx-x64/nwjs.app/Contents/MacOS/nwjs "app"
Since we are already using the download
package version ^5.0.3
, what else could go wrong? Any ideas?
I run in to the same error message, but only on OSX, using 0.30.4.
We want to use NWJS with Python (and PyInstaller). Here is our small PoC where we are trying the setup: https://github.com/Feathercoin-Foundation/pywebpoc
You can run it by creating a pipenv and build it with the script:
pipenv install
pipenv shell
./build.sh
./dist/pywebpoc
This is the error:
runtime process (0x1142427f0) stopped (-6), stdout:
dlopen /Users/lucas/Library/Application Support/webruntime/temp_apps/nw_1526472028_1~20020/pywebpoc-ui.app/Contents/MacOS/../Versions/66.0.3359.170/nwjs Framework.framework/nwjs Framework: dlopen(/Users/lucas/Library/Application Support/webruntime/temp_apps/nw_1526472028_1~20020/pywebpoc-ui.app/Contents/MacOS/../Versions/66.0.3359.170/nwjs Framework.framework/nwjs Framework, 257): no suitable image found. Did find:
/Users/lucas/Library/Application Support/webruntime/temp_apps/nw_1526472028_1~20020/pywebpoc-ui.app/Contents/MacOS/../Versions/66.0.3359.170/nwjs Framework.framework/nwjs Framework: file too short
/Users/lucas/Library/Application Support/webruntime/temp_apps/nw_1526472028_1~20020/pywebpoc-ui.app/Contents/Versions/66.0.3359.170/nwjs Framework.framework/nwjs Framework: file too short
^C[20019] LOADER: Back to parent (RC: 1)
Any input is welcome. Downgrading didn't help.