concept crash report in category electron

appears as: crash reports, crash report, crash reports, The crash report
Electron in Action

This is an excerpt from Manning's book Electron in Action.

These concerns are all valid. The good news is that Electron has you covered on each front. In this chapter, we cover how to collect crash reports and—in the event you receive an unexpectedly large number of them—how to push an update to all of the users that currently have the application installed on their system.

15.1.2. Setting up a server to receive crash reports

We can send crash reports—but where? We can trigger a crash by typing process.crash() into the Developer Tools in the renderer process. As shown in figures 15.3 and 15.4, doing so results in the following: the page crashing, the Developer Tools locking up, and the main process logging an error.

Figure 15.3. Triggering a crash in the render process requires a reload of the UI.
Figure 15.4. Electron attempts to send the crash report but cannot find the server.
Listing 15.5. An example of the JSON metadata from a crash report
{
  "_companyName": "Electron in Action",
  "_productName": "Fire Sale",
  "_version": "1.0.0",
  "guid": "46cecb8f-f2de-4159-a235-dc8713f8393f",
  "platform": "darwin",                              #1
  "process_type": "renderer",                        #2
  "prod": "Electron",
  "ver": "2.0.4",                                    #3
  "filename": "a51d2ca2e13cad25cea6c2bd15ae4d4d"     #4
}