Electron dying without any information, what now?

Viewed 2143

The app I'm building, when I compile it for distribution packing it with electron-builder, every now and then, dies, showing a blank screen and a disconnected devtools:

enter image description here

Any ideas what's going on or how to start figuring out what's happening here?

2 Answers

This can be caused by several different serious faults in the renderer process (out of memory, for example). To fix it, you really have to get your hands on the error.

See https://www.electronjs.org/docs/tutorial/application-debugging#v8-crashes for more details. Specifically, I would recommend settings the ELECTRON_ENABLE_LOGGING environment variable to true before launching the electron process, this should result in the error showing up in the console from which you launch the main process (NOT the chrome devtools console).

Related