-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
electron renderer process crash #663
Comments
Could you try with 6.0.8? |
nodejs 20.12.2 electron 32.0.0, i upgrade to 6.0.8 , the problem still exists , although it is not very serious error and only needs to be close manually, but it was really annoying before. |
We are also having this issue on Electron 12.1.0 (Node 14.16.0) with ZeroMQ 6.1.2 (v5-compat). It is likely caused by how reloading creates a fresh Chromium context but not a new process. As far as I can tell we're closing sockets manually before refreshing and somehow still get the issue. This comment would indicate that this shouldn't be an issue, however I'm not sure if any cleanup is actually happening when a context closes. Line 120 in 9f1172d
I'll see about creating a minimal repo to reproduce. |
Repo with bare minimum to reproduce the issue: https://github.com/diefbell-grabcad/ZeroMQ-Electron-Refresh-Crash-Repro I've even tried to close the socket I've created on window refresh. |
Thanks for the reproduction! That allows me to look into the issue. |
I've found that opening a socket isn't even required to cause the crash, just importing |
On ZeroMQ v5, importing This of course doesn't answer the issue of why v6 fails just from import alone. |
Describe the bug
when create server in electron render process , youmust close the server before reload the page(or load else page) , if not closed manually, the renderer process will crash without any error message
after that, the page will have a white screen, and a "DevTools was disconnected from the page..." alert will pop up, but it can be close,after closing, press F5 again, and the page will reload, and so on.
Reproducing
Expected behavior
Tested on
The text was updated successfully, but these errors were encountered: