Skip to content

Error when attempting logging during Renderer crash #348

Answered by douglassllc
douglassllc asked this question in Q&A
Discussion options

You must be logged in to vote

@megahertz The call that is throwing the error is in electronApi.js file.

function sendIpc(channel, message) {
  if (process.type === 'browser') {
    sendIpcToRenderer(channel, message);  // <-- THIS LINE IS ATTEMPTING TO SEND TO THE CRASHED RENDERER
  } else if (process.type === 'renderer') {
    sendIpcToMain(channel, message);
  }
}

Should I attempt to update to v5 beta or is their away in my current version to disable attempts to log message in the renderer if the renderer is crashing?

I was thinking that maybe I should be disabling the console transport when the renderer crashes and re-enable it when the renderer has been respawned.

Also of note is that I have only been working in …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@megahertz
Comment options

@douglassllc
Comment options

Answer selected by douglassllc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants