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

Crash on macOS during start #56

Open
arudnev opened this issue Apr 20, 2017 · 18 comments
Open

Crash on macOS during start #56

arudnev opened this issue Apr 20, 2017 · 18 comments

Comments

@arudnev
Copy link

arudnev commented Apr 20, 2017

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 nw@0.22.0-sdk
/usr/local/bin/nw -> /usr/local/lib/node_modules/nw/bin/nw

> nw@0.22.0-sdk postinstall /usr/local/lib/node_modules/nw
> node scripts/install.js

/usr/local/lib
└── nw@0.22.0-sdk
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
@zzeligg
Copy link

zzeligg commented Apr 21, 2017

Same error here with nw@0.22.0:

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

@conceptualspace
Copy link

+1

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

@arudnev
Copy link
Author

arudnev commented Apr 24, 2017

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 evshiron/nwjs-builder-phoenix#30

@matthew-dean
Copy link

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

@nurishi
Copy link

nurishi commented May 12, 2017

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!

@troylelandshields
Copy link

also experiencing this. Anyone have a workaround?

@funwithtriangles
Copy link

+1

@shama
Copy link
Contributor

shama commented May 28, 2017

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

@rohan-deshpande
Copy link

rohan-deshpande commented Jun 11, 2017

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?

@codekiln
Copy link

codekiln commented Jun 29, 2017

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
Copy link

It's been almost two weeks, bumping @Mithgol

@Mithgol
Copy link
Contributor

Mithgol commented Jul 12, 2017

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.

@alekseybobkov
Copy link

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!

@Mithgol
Copy link
Contributor

Mithgol commented Jul 13, 2017

Okay.

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

@Mithgol
Copy link
Contributor

Mithgol commented Aug 11, 2017

Nodody does.

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

@Mithgol Mithgol closed this as completed Aug 11, 2017
@robaweb
Copy link

robaweb commented Sep 5, 2017

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"

@Mithgol Mithgol reopened this Sep 12, 2017
@Mithgol
Copy link
Contributor

Mithgol commented Sep 12, 2017

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

pmelisko added a commit to pmelisko/pro-xy-ui that referenced this issue Dec 18, 2017
@lclc
Copy link

lclc commented May 16, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests