electron: Electron App crashes on startup on Catalina

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

Electron app crashes on startup with the helpful message … quit unexpectedly.

  • Electron Version:: That’s the problem …

  • Operating System:: MacOS 10.15.2 Catalina

  • Last Known Working Electron version:: 5.0.13

Expected Behavior

Not crashing … ?

Actual Behavior

After a few seconds, the application quits without ever showing a window. The OS message is … quit unexpectedly.

To Reproduce

Start application

Additional Information

I am using electron-packager to compile the application. Using npm start is fine.

I have tried the following:

  • Comment out all of the code in main.js and in index.html
  • Using electron-rebuild to recompile node modules
  • Various versions of electron before and after 5.0.13

I have also used electron-log and logged messages from main.js. Up to 5.0.13, of course, everything is fine. After that version, the main script runs, but anything from app.on or ipcMain.on doesn’t get triggered.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 5
  • Comments: 23 (4 by maintainers)

Most upvoted comments

This happens to me too regardless of the mac target I use. I have these installed: “electron”: “^8.3.0”, “electron-builder”: “^22.6.0”,

I have just tested this with electron-builder version 22.6.0, and the issue is still present.

I actually fixed it by updating electron-builder: 21.2.0