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

NWJS 0.24.3 crashes on OSX 10.9 #6108

Closed
oaleynik opened this issue Aug 18, 2017 · 25 comments
Closed

NWJS 0.24.3 crashes on OSX 10.9 #6108

oaleynik opened this issue Aug 18, 2017 · 25 comments
Assignees
Labels

Comments

@oaleynik
Copy link
Contributor

Hi there!

We have two users reported that our latest app version has been crashing upon startup. Both users are on OSX 10.9.5. Not sure is that a real cause of the problem, but rollback to 0.21.6 has fixed the problem. Just wanna double check with the team behind NWJS is that still true that NWJS 0.24.3 can be used on OSX 10.9+

NWJS Version : 0.24.3
Operating System : OSX 10.9.5

Expected behavior

App should start without crashing

Actual behavior

App crashes before showing anything

How to reproduce

Not sure.

@oaleynik
Copy link
Contributor Author

Attaching system report from one of our users:

https://gist.github.com/oaleynik/afc98ab339049961231f4020aa755d06

@Christywl
Copy link
Contributor

I try a simple case on Mac 10.12.6 with nwjs-sdk-v0.24.3. No crash happens. Maybe it's related to Mac version or the specific case. Is there a test case to reproduce this issue?

@Blatman
Copy link

Blatman commented Aug 21, 2017

I think this needs to be tested on 10.9 (if it is still supported) - this is the same as #6051.
I have attached a simple project out of the nwjs suite. On my machine I built the app with 0.24.3-sdk and it runs fine on 10.11 and 10.10 but crashes on start with 10.9 with duplicate services error.
Cheers

MavTest.zip

@Christywl
Copy link
Contributor

The attached sample also works fine on my Mac 10.12.6, but I don't have 10.9 device to double check. If there are some crash dump files in your device, please upload here. Thanks.

@Blatman
Copy link

Blatman commented Aug 21, 2017

Attached is the dmp file from Mavericks for MavTest ....

fc756c7d-2963-455a-9162-c3c8d3762f13.dmp.zip

@rogerwang
Copy link
Member

@oaleynik could you please provide the crash dump file?

@rogerwang
Copy link
Member

@Blatman the dump file of yours shows that it crashes in system lib libxpc.dylib in an OSX 10.9.2 system. Could you please try with 10.9.5?

@rogerwang
Copy link
Member

@oaleynik I managed to get more information from the trace you provided. No need to ask the users for crash dump file for now...

@Blatman
Copy link

Blatman commented Aug 21, 2017

@Roger -
just upgraded to 10.9.5 - new dump for MavTest

130b595d-2539-48d5-b9ab-e8791b7255e5.dmp.zip

@rogerwang
Copy link
Member

@Blatman and all: I don't have 10.9 system for now. Does the official binary start and show the default NW.js screen without any app? (Just download the official binary, don't use any package tool). And make sure that there is symlink in directory nwjs.app/Contents/Versions/60.0.3112.101/nwjs Framework.framework/Versions (not 2 directories)

@Blatman
Copy link

Blatman commented Aug 22, 2017

@rogerwang Well, tried the 0.24.3-sdk nwjs binary itself and it also fails in the same manner - have attached screenshots of the folder structure in the framework package.

raw-nwjs.zip

@josh83abc
Copy link

I just double checked, all 3 cases of this crash report we got from our users are with MacOS 10.9.x
https://github.com/nwjs/nw.js/issues/6112

@shamun
Copy link

shamun commented Aug 23, 2017

On OSX - 10.12.5

  • package.json is not getting used

$ --version
nwjs-v0.24.3-osx-x64
$ ls
nwjs.app	package.json
$ cat package.json 
{
  "name": "Hello!!!",
  "main": "https://codepen.io/matt-west/full/wGzuJ",
}
$ ./nwjs.app/Contents/MacOS/nwjs .
[0823/095412.545671:WARNING:chrome_main_delegate.cc(590)] final extension: 
[21629:34051:0823/095412.902386:ERROR:browser_gpu_channel_host_factory.cc(103)] Failed to launch GPU process.

@rogerwang
Copy link
Member

rogerwang commented Aug 24, 2017

@Blatman the error msg says about "duplicate service", so I guess there may be another app or NW binary in the system. Would you change the bundle ID from "io.nwjs.nwjs.*" to something else or make sure there is no other NW binaries in the system and try again? I found these files contain the official bundle ID in the binary:

./Contents/Info.plist
./Contents/Resources/io.nwjs.nwjs.manifest/Contents/Resources/io.nwjs.nwjs.manifest
./Contents/Versions/60.0.3112.101/nwjs Framework.framework/Resources/app_mode_loader.app/Contents/Info.plist
./Contents/Versions/60.0.3112.101/nwjs Framework.framework/Resources/Info.plist
./Contents/Versions/60.0.3112.101/nwjs Framework.framework/Versions/A/Resources/app_mode_loader.app/Contents/Info.plist
./Contents/Versions/60.0.3112.101/nwjs Framework.framework/Versions/A/Resources/Info.plist
./Contents/Versions/60.0.3112.101/nwjs Framework.framework/Versions/A/XPCServices/AlertNotificationService.xpc/Contents/Info.plist
./Contents/Versions/60.0.3112.101/nwjs Framework.framework/Versions/Current/Resources/app_mode_loader.app/Contents/Info.plist
./Contents/Versions/60.0.3112.101/nwjs Framework.framework/Versions/Current/Resources/Info.plist
./Contents/Versions/60.0.3112.101/nwjs Framework.framework/Versions/Current/XPCServices/AlertNotificationService.xpc/Contents/Info.plist
./Contents/Versions/60.0.3112.101/nwjs Framework.framework/XPCServices/AlertNotificationService.xpc/Contents/Info.plist
./Contents/Versions/60.0.3112.101/nwjs Helper.app/Contents/Info.plist

@rogerwang
Copy link
Member

@Blatman forget it. I just get a 10.9 system and will see it.

@rogerwang
Copy link
Member

A workaround is to add --disable-features=NativeNotifications to the command line.

@shamun
Copy link

shamun commented Aug 24, 2017

YES - it works by adding the parameter in OSX.

image

@oaleynik
Copy link
Contributor Author

@rogerwang thanks for a hint to workaround this! Should we expect official fix for this? We were kinda excited for native notifications..

@rogerwang
Copy link
Member

Yeah. I'll try to workaround the system xpcd issue, which is apparently fixed in later macOS versions: from system.log you can see that the same XPC service from NW is scanned twice and reported as duplication...

@oaleynik
Copy link
Contributor Author

@rogerwang no prob. Just let us know if there is no quick fix for this. Thanks a lot!

@rogerwang
Copy link
Member

This is fixed in git and will be available in the next nightly build.

@musigo-http
Copy link

how and where to install nw.js for mac os x 10.9.5?

@ayushmanchhabra
Copy link
Contributor

https://dev.to/thejaredwilcurt/guide-to-nw-js-versions-5d38
@neymar57 this might help

@musigo-http
Copy link

@ayushmanchhabra and where to find the version available for download of nw.js for mac os x 10.9?

@ayushmanchhabra
Copy link
Contributor

@neymar57 As the article says, "OSX support is not well-documented". Start with v0.29.x, download and check if it runs. If it doesn't, try other versions.

Since this is a closed issue, could you ask further questions via Discord or Gitter?

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

8 participants