-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
NW2: Crashing renderer shows Aw, Snap! #7339
Comments
Also as addition if a frameless window is used, then the Aw Snap window can never be closed! |
Before providing new API for error page customization, I'll disable the 'reload' button, probably replacing it with 'close'. |
actually I think the API already exists in the form of chrome.processes From there we can monitor if a tab "exited" - died (exit code != 0) or "hung": The question is only where to add this monitoring hook? As on crash/hung seems both the background and the browser devtools/scripts die. At least both devtools gets immediately disconnected... Maybe in the separate bg-script background page entered at the manifest? |
Thanks for the link. Those APIs are supposed to be available in NW. But NW uses a different process model -- web pages lives in the same process unless the window is created with |
The nightly build for this issue is available at https://dl.nwjs.io/live-build/nw44/20200125-162000/5925084b5 |
With nw1, when testing a renderer crash with |
@bodo22 please file another issue. I'll make the behavior the same as nw1. Thanks. |
NWJS Version : 0.43.6
Operating System : Windows 10 and MacOS
Expected behavior
When the renderer process crashes, the NWJS App should end.
Actual behavior
Now when the render process crashes an d "Aw, Snap!" page is shown with option to retry - but retry doesn't work.
after retry:

Also if an endless loop or heavy duty JS tasks are busy, after 25 secs a dialog shows that the page is busy:
Also on Mac in the console errors appear:
[0124/170204.391511:WARNING:system_snapshot_mac.cc(42)] sysctlbyname kern.nx: No such file or directory (2)
Same behavior is shown on Windows as well.
How to reproduce
Use the supplied test case:
test_crash.zip
When NW2 is disabled then - the rendere crash just closes NWJS.
Ideal crash reporting
@rogerwang We love the NW2 and it's great that it has the Chrome build in error reporting, we just need a better way to handle them. Ideally we would like to popup a window for error reporting allowing the user to submit a error report for the crash.
Maybe something like:
https://www.electronjs.org/docs/api/crash-reporter
and also integration with Sentry that we already use for our NWJS error reporting:
https://docs.sentry.io/platforms/javascript/electron/
Currently we get the minidump reports, but only on browser crash and not renderer. And there is no way for the user to enter additional info. NWJS just dies which is a very bad UX.
Also besides the minidump - we can submit additional state data, like collected JS stack trace, which will be really useful.
The text was updated successfully, but these errors were encountered: