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

nwjc crashed on macOS 10.13.2 #6319

Open
cxa opened this issue Dec 8, 2017 · 5 comments

Comments

Projects
None yet
2 participants
@cxa
Copy link

commented Dec 8, 2017

NWJS Version : 0.27.0
Operating System : macOS 10.13.2

Expected behavior

compile successful.

Actual behavior

<unknown>:1510427: Invalid asm.js: Unexpected token
Received signal 11 SEGV_MAPERR 000000000010

==== C stack trace ===============================

 [0x00010b928f34]
 [0x7fff7863df5a]
 [0x7fab39413320]
 [0x7fff783bc115]
[end of stack trace]
[1]    21482 segmentation fault

How to reproduce

nwjc some.js some.bin

@rogerwang

This comment has been minimized.

Copy link
Member

commented Dec 8, 2017

Could you please provide a sample? It works for me.

@rogerwang rogerwang added the needinfo label Dec 8, 2017

@cxa

This comment has been minimized.

Copy link
Author

commented Dec 8, 2017

Try this: https://github.com/mbebenita/Broadway/blob/master/Player/Decoder.js

Works on 0.25.x, crash since 0.26.0.

@rogerwang

This comment has been minimized.

Copy link
Member

commented Dec 8, 2017

This is because there is asm.js to wasm compilation in the source file, which v8 doesn't support when it does serialization:
https://bugs.chromium.org/p/chromium/issues/detail?id=643595
https://codereview.chromium.org/2573193002

At least we'll add this to the documentation of nwjc.

@rogerwang rogerwang added documentation and removed needinfo labels Dec 8, 2017

@rogerwang

This comment has been minimized.

Copy link
Member

commented Dec 8, 2017

You could try adding this argument: --no-validate-asm

@cxa

This comment has been minimized.

Copy link
Author

commented Dec 8, 2017

Thanks, --no-validate-asm works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.