Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Renderer process uses high CPU while main process crashes #35944

Closed
3 tasks done
haoxi911 opened this issue Oct 7, 2022 · 1 comment
Closed
3 tasks done

[Bug]: Renderer process uses high CPU while main process crashes #35944

haoxi911 opened this issue Oct 7, 2022 · 1 comment
Labels

Comments

@haoxi911
Copy link

haoxi911 commented Oct 7, 2022

Preflight Checklist

Electron Version

20.3.0

What operating system are you using?

macOS

Operating System Version

macOS Monterey 12.6

What arch are you using?

x64

Last Known Working Electron version

N/A

Expected Behavior

All Electron processes will crash and quit, CPU usage should be normal even if the renderer process can't quit itself.

Actual Behavior

Renderer process stays with a very high CPU usage, after main process crashed.

Testcase Gist URL

No response

Additional Information

Here are the reproducible steps, it should be applicable to any Electron apps:

  • Find a USB flash drive, load an Electron app onto the drive.
  • Open the Electron app, unplug the USB flash drive.
  • Observe a crash of the app.
  • Open Activity Monitor, look for the renderer process and observe a high CPU usage.

Screen Shot 2022-10-07 at 10 31 58 AM

More seriously, I am not able to force quit this renderer process, the only way I can get rid of it is rebooting the system.

@haoxi911
Copy link
Author

Closed. It only happens when crashReporter is enabled, I believe the root cause was the chrome_crashpad_handler process as it was a part of the app bundle and stored on the USB flash drive too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant