Skip to content

crash on message send with Electron > 13.2.1 #24

@jaked

Description

@jaked

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions