npm-installer icon indicating copy to clipboard operation
npm-installer copied to clipboard

Crash on macOS during start

Open arudnev opened this issue 7 years ago • 18 comments

After upgrading to 0.22.0-sdk nw is crashing on start on macOS Sierra 10.12.4, showing the following dialog:

screenshot 2017-04-20 15 33 41

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

arudnev avatar Apr 20 '17 19:04 arudnev

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

zzeligg avatar Apr 21 '17 15:04 zzeligg

+1

perhaps the dir structure changed in .22 (working with a vanilla install)

conceptualspace avatar Apr 21 '17 19:04 conceptualspace

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

arudnev avatar Apr 24 '17 17:04 arudnev

I'm also getting this issue after upgrading to 0.22.0. NW.js apps will not run.

matthew-dean avatar Apr 30 '17 20:04 matthew-dean

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!

nurishi avatar May 12 '17 05:05 nurishi

also experiencing this. Anyone have a workaround?

troylelandshields avatar May 27 '17 05:05 troylelandshields

+1

funwithtriangles avatar May 28 '17 00:05 funwithtriangles

@funwithtriangles Click the reaction button instead of writing +1 so you don't send me a noisy pointless notification, thanks!

shama avatar May 28 '17 01:05 shama

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?

rohan-deshpande avatar Jun 11 '17 08:06 rohan-deshpande

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?

codekiln avatar Jun 29 '17 20:06 codekiln

It's been almost two weeks, bumping @Mithgol

codekiln avatar Jul 11 '17 20:07 codekiln

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.

Mithgol avatar Jul 12 '17 17:07 Mithgol

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!

alekseybobkov avatar Jul 13 '17 00:07 alekseybobkov

Okay.

Now, does anyone really need a v0.24.0-beta1sdk-1?

Mithgol avatar Jul 13 '17 17:07 Mithgol

Nodody does.

Okay, this is closed, there's nothing else to do.

Mithgol avatar Aug 11 '17 21:08 Mithgol

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"

robaweb avatar Sep 05 '17 14:09 robaweb

Since we are already using the download package version ^5.0.3, what else could go wrong? Any ideas?

Mithgol avatar Sep 12 '17 19:09 Mithgol

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.

lclc avatar May 16 '18 12:05 lclc