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

crash on message send with Electron > 13.2.1 #24

Open
jaked opened this issue Oct 25, 2021 · 0 comments
Open

crash on message send with Electron > 13.2.1 #24

jaked opened this issue Oct 25, 2021 · 0 comments

Comments

@jaked
Copy link
Owner

jaked commented Oct 25, 2021

After reloading the renderer with command-R, message sends from main process to renderer fail with

Uncaught Exception:
Error: Render frame was disposed before WebFrameMain could be accessed
at Object.n.send (electron/js2c/browser_init.js:165:413)
at Object.b.send (electron/js2c/browser_init.js:161:2494)
at send (/Users/jake/github/programmable-matter/build/main.js:96:42)
at /Users/jake/github/programmable-matter/build/main.js:99:18
at MenuItem.click (electron/js2c/browser_init.js:73:1742)
at Object.a._executeCommand (electron/js2c/browser_init.js:81:2492)

so in particular menu actions (which send main -> renderer) fail.

Electron versions 13.2.1 and earlier don't have the issue. It seems to be related to these changes:

I can't reproduce this starting with electron-quick-start. Maybe it has to do with a native module? I also have a problem with the renderer crashing on reload (it recovers after a second reload) in earlier Electron versions, which I thought might have to do with NSFW.

I haven't tried Electron 14.x or 15.x.

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

No branches or pull requests

1 participant