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

Mac osx 64 NWJS game unexpectedly quitting #6606

Closed
sonyamusk opened this issue May 9, 2018 · 11 comments
Closed

Mac osx 64 NWJS game unexpectedly quitting #6606

sonyamusk opened this issue May 9, 2018 · 11 comments
Labels

Comments

@sonyamusk
Copy link

======== TEMPLATE BUG FORM ========

NWJS Version : 66.0.3359.139
Operating System : Mac

Expected behavior

<!- What do you think should happen? ->
For some reason the Mac visual novel game i build using NWJS Builder to generate it through npm only works on my Mac, but when I upload it to google drive and let friends download the NWJS game it unexpectedly quits. At first it was just saying that the it was an unrecognized developer, but my friends went into the security settings and disabled that and it then unexpectedly quits and crashes.

Actual behavior

<!- What actually happens? ->
On the Mac that I build the NWJS game using my Mac, it plays and opens just fine. However, when uploaded to google drive and my friends try to open it on their macbooks it unexpectedly crashes.

How to reproduce

Try these games here i uploaded to google drive, they ALL crash:
https://drive.google.com/open?id=1CSSYsNb7V6T0h_Hp8QyJ0lVyTg74Uo6S
https://drive.google.com/open?id=1HVJXz7-zIBkcR1h3hhtV6M4Mhg5jOmsr
https://drive.google.com/open?id=18To1wx-iHCPGACWUB_4N13YyDdjdGu5X
https://drive.google.com/open?id=15r8lVzCEu4Iv-oA2HMA5HNqWJj-aRDQS

All of them unexpectedly quit. I don't know what's wrong, all the windows NWJS games work just fine, just the Mac ones don't work.

I also went to the apple store to test it out on fresh mac computers and all of the games unexpectedly crash. Yes I have already tested them in new environments.

Please help!!
<!-

  • Detail a step by step guide to reproduce the issue
  • A copy of your code would help. Include: JS, HTML.
  • If you have a crash report, copy it in.
  • Test your steps on a fresh environment to see if you still have an issue
  • Post!

->

@Christywl
Copy link
Contributor

I download and try it on Mac:

 $ ./VNosx-x64/VisualNovel.app/Contents/MacOS/nwjs 
dlopen /Users/test/nwjs/bugs/6606/./VNosx-x64/VisualNovel.app/Contents/MacOS/../Versions/66.0.3359.139/nwjs Framework.framework/nwjs Framework: dlopen(/Users/test/nwjs/bugs/6606/./VNosx-x64/VisualNovel.app/Contents/MacOS/../Versions/66.0.3359.139/nwjs Framework.framework/nwjs Framework, 257): image not found
Abort trap: 6

@Blatman
Copy link

Blatman commented May 10, 2018

FWIW I tried the first link (relentless) with 0.30.3-sdk and it failed - I noticed that the symlinks in the nwjs Framework.framework package are all unix executables instead. I tried the app.nw from the faulty package in a good build package and it works fine and if I use the nwjs Framework.framework package from a standard good build in the faulty package it also works fine. The faulty package appears to have been built with nwjs-builder.
Hope this helps.

@rogerwang
Copy link
Member

@Blatman thanks!

@sonyamusk
Copy link
Author

@Blatman Which one is the faulty package, sorry I am new to this. Specifically what do I replace, do I replace the framework.frame file with another file? Where can I get this other file to replace it with?

@sonyamusk
Copy link
Author

@Blatman Can you give me a working example of what you said you did, the one you said you replaced the framework.framework? I just need a working example.

@Blatman
Copy link

Blatman commented May 10, 2018

@cloudnovel
Take for example 1st link which is relentless.zip which contains relentless.app
On Mac do right-click - Show package Contents and drill down to nwjs Framework.framework bundle.
(relentless.app>Contents>Versions>66.0.3359.139>nwjs Framework.framework)
Replace nwjs Framework.package in relentless.zip bundle with one from same version of nwjs package that your app uses - downloads are https://dl.nwjs.io/v0.30.3/
Your app specific files are located in - relentless.app>Contents>Resources>app.nw

I suspect that the build process is somehow messing with the framework package - usually these are just copied as is by the build process.

@sonyamusk
Copy link
Author

sonyamusk commented May 10, 2018

@Blatman Okay I did exactly what you said and uploaded this to google drive: https://drive.google.com/file/d/1-I7Q_Wl9rQ8lQ8p5J6BGf4gAtaDyXoY_/view?usp=sharing

Does it work for you?? Thank you so much for helping me!

@Blatman
Copy link

Blatman commented May 10, 2018

@cloudnovel
Ah no - still crashes and if I look at the framework package the symlinks are still unix executables.
Again if I use a good nwjs Framework.framework package it is fine.

Plan B would be to take your app.nw folder out of the relentless.app package and insert into a good downloaded nwjs package - it goes in the Resources folder and can be done with cut/paste - don't use any builders for this test.
BTW - if the relentless.app is being created on a Windows platform rather than OSX then be wary - I am making a builder and have found that building OSX on Windows(10) has all sorts of issues with permissions and symlinks.

Cheers.

@sonyamusk
Copy link
Author

sonyamusk commented May 10, 2018

@Blatman Okay I'll go home later on this after noon and try assembling it on my mac. Is there a chance uploading it to google drive messes with the framework?
What I did yesterday was generate it using nw-builder on my mac, but then I went to the mac store and try and open in a new mac environment it crashes. I used nw-builder on Mac to build it, but when I tried to upload it to google drive to let my friends download the game, it crashes/quits too when they downloaded it (and it didn't touch a Windows environment).

Could uploading to google drive also be a possible problem?

@Blatman
Copy link

Blatman commented May 10, 2018

@cloudnovel
Pass - I don't use Google Drive so don't know what it does.

On my Mac I just simply cut and paste the nwjs Framework.framework in order to prove.
Try Plan B with no builders and go from there because the downloaded nwjs package should be good and can be run before and after the app.nw folder is transplanted. Before will show the NWJS wobbly splash screen and after should show the novel. If cut/paste works then try the builder and then check the built package before uploading to Google Drive and so on ...
I happen to use nw-builder within my HB-GUI but there are a lot of forks out there.

@sonyamusk
Copy link
Author

HI SO DOING WHAT @Blatman did solved it, and my friends can now download the working visual novel just fine!

Thank you for all your help, this can be closed now (I don't know how to close this issue)

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

4 participants