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

0.17.0-beta2 is crashing on OS X #5229

Closed
oaleynik opened this issue Aug 21, 2016 · 9 comments
Closed

0.17.0-beta2 is crashing on OS X #5229

oaleynik opened this issue Aug 21, 2016 · 9 comments
Assignees

Comments

@oaleynik
Copy link
Contributor

oaleynik commented Aug 21, 2016

Crash report

@oaleynik
Copy link
Contributor Author

#5193 may be related

@Blatman
Copy link

Blatman commented Aug 21, 2016

Yup - I get the same error myself when I use 0.17.0b2 with a project that uses Mac menus. When I got the good 0.17.0b1 build to work OK (as in #5193) I was using another project (PHP-POST-Test) without the menus - I will try to get a pared down example shortly which may help.

EDIT: Did a quick pare down of a project and in the following code (with all succeeding code removed) -

   nativeMenuBar = new nw.Menu({

// type: 'menubar'
});
if type: 'menubar' was commented out then the project would at least start so something is not right in the menuing area ...

@rogerwang
Copy link
Member

@oaleynik Could you please send the spec of your mac system including the CPU model? We'll check whether it's due to lacking AVX support as in #5193.

@oaleynik
Copy link
Contributor Author

@rogerwang I've sent you email with the full system report.

@Blatman
Copy link

Blatman commented Aug 22, 2016

Here is a basic project which demonstrates the crash - just place 0.17b2 into folder.
If line 31 of appbasic.js is remmed out crash will not occur (type: 'menubar'). This same code line is causing the crash on a more complicated project of mine.
017CrashTest.zip

@oaleynik
Copy link
Contributor Author

@Blatman confirmed! Without custom menu 0.17.0-beta2 can start. /cc @rogerwang

@rogerwang rogerwang self-assigned this Aug 23, 2016
ghostoy pushed a commit to ghostoy/nw.js that referenced this issue Aug 23, 2016
These two files provided util APIs for storing & retrieving NW menu
objects within `NSMenu`. Added them for GN build to prevent crashes
when creating menubar on Mac.

* test case: test/sanity/issue5229-menubar-crash
* fixed nwjs#5229
@rogerwang
Copy link
Member

@oaleynik
Copy link
Contributor Author

@rogerwang live build 0.17.0-rc1 works

@Blatman
Copy link

Blatman commented Aug 23, 2016

@rogerwang - live build fine, thanks

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

No branches or pull requests

3 participants