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

NW crash when do debugging on NWJC snapshot #6160

Closed
xcmaya opened this issue Sep 15, 2017 · 12 comments
Closed

NW crash when do debugging on NWJC snapshot #6160

xcmaya opened this issue Sep 15, 2017 · 12 comments
Assignees

Comments

@xcmaya
Copy link

xcmaya commented Sep 15, 2017

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

NWJS Version : 0.25
Operating System : macOS 10.12.6

Expected behavior

I compiled the source code to binary using NWJC. The app can run properly. But when I do debugging in the devTool, the whole app will crash immediately.

The output on the terminal is the following:

Received signal 11 SEGV_MAPERR 00053f39f045 [0x000109f8d55c] [0x000109f8d451] [0x7fffb6a74b3a] [0x053f4d702311] [0x0001092c124e] [end of stack trace] .....

How to reproduce

  1. Load an app which uses a binary snapshot generated from NWJC
  2. Open Devtool.
  3. Try move mouse to hover a variable to check it's value (or type some class names in the console), the app will crash.
@Christywl
Copy link
Contributor

Seem it works fine on my Mac with nwjs-sdk-v0.25.0. Could you please upload your tests to reproduce your issue?

@noviwiden
Copy link

Can it be related to this? #6061

@Christywl
Copy link
Contributor

Use the codes in #6061 (comment), I can reproduce the crash issue on Mac with nwjs-sdk-v0.25.2. i think they'are similar.

@rogerwang
Copy link
Member

merge with #6061

@xcmaya
Copy link
Author

xcmaya commented Oct 8, 2017

Hello Roger,

I found that the crash issue is still there. Attached please find the source files to reproduce the crash.

Step 1. Run nwjs to load the application.
Step 2. Open the DevTool and type "TestCrash." in the console. It will crash.

(I just tested the latest nw.js v0.25.4 on macOS 10.13. If you still cannot reproduce it, I will upload a video after.)

Thank you!

nwjs_crash_bug.zip

@xcmaya
Copy link
Author

xcmaya commented Oct 10, 2017

Hello, could we re-open this issue? Or need I open a new issue?

@rogerwang rogerwang reopened this Oct 10, 2017
@Christywl
Copy link
Contributor

I use your attached zip file and can't reproduce this issue on my Mac 10.13 with nwjs-sdk-v0.25.4. The app doesn't crash.
screen shot 2017-10-11 at 10 27 19 am

@noviwiden
Copy link

I tested the attached zip on Windows 10 with NW.js 0.25.4-sdk and can't reproduce it here either. The functions from the TestCrash class are running as expected.
Is the binary compiled with the 0.25.4-sdk version of nwjc ?

@xcmaya
Copy link
Author

xcmaya commented Oct 12, 2017

The binary is built with the 0.25.4-sdk version of nwjc. Now it crashes whenever typing the 'TestCrash' in the console. The following screenshot shows some output in the terminal.

Since Roger mentioned that it could be fixed in the next release, I will test it on next release.

Thank you.

screen shot 2017-10-12 at 7 33 08 pm

@rogerwang
Copy link
Member

@xcmaya we couldn't reproduce with your case. Could you please provide the crash dump file?

@rogerwang rogerwang added P2 and removed P1 labels Oct 17, 2017
@rogerwang
Copy link
Member

close until more information is available

@xcmaya
Copy link
Author

xcmaya commented Oct 25, 2017

I confirm that this issue has been fixed in the v0.26. 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

4 participants