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

crashpad_handler running at 90% CPU on Mac OS #315

Closed
stfnhh opened this issue Dec 20, 2017 · 39 comments
Closed

crashpad_handler running at 90% CPU on Mac OS #315

stfnhh opened this issue Dec 20, 2017 · 39 comments

Comments

@stfnhh
Copy link
Contributor

stfnhh commented Dec 20, 2017

After installing version 62 crashpad_handler is using up to 56% cpu on two cores, causing a system wide slowdown and my fans sound like a jumbo jet taking off. Let me know what I can do to help debug.

@tectiv3
Copy link
Contributor

tectiv3 commented Dec 22, 2017

yep, I have it too. Killing it won't get it started again.

@Eloston Eloston added this to the 63.x.x.x milestone Dec 22, 2017
@stolendata
Copy link

Can confirm same problem when running on 10.11.6. Also noticed that the mds/mdworker metadata daemons for Spotlight were running haywire during this - probably indicating high disk output by the crashpad_handler processes - though I couldn't locate exactly what or where.

@Eloston
Copy link
Member

Eloston commented Jan 5, 2018

63 is ready for testing. If this is still a problem, please report here.

@tectiv3
Copy link
Contributor

tectiv3 commented Jan 6, 2018

Still there...

@Eloston
Copy link
Member

Eloston commented Jan 6, 2018

Could you guys report what arguments are passed into crashpad_handler? What's the parent process? Is there an instance of run_with_crashpad anywhere?

@Eloston
Copy link
Member

Eloston commented Jan 6, 2018

For reference, here's documentation for Crashpad: https://chromium.googlesource.com/crashpad/crashpad

@tectiv3
Copy link
Contributor

tectiv3 commented Jan 7, 2018

user           77256  50.4  0.0  2437952   6168   ??  R     1:09AM   0:16.72 /Applications/Chromium.app/Contents/Versions/63.0.3239.132/Chromium Framework.framework/Helpers/crashpad_handler --no-periodic-tasks --monitor-self-annotation=ptype=crashpad-handler --database=/Users/user/Library/Application Support/Chromium/Crashpad --annotation=plat=OS X --annotation=prod=Chromium_Mac --annotation=ver=63.0.3239.132 --handshake-fd=4
user           77254  50.3  0.0  2457936   6308   ??  S     1:09AM   0:16.68 /Applications/Chromium.app/Contents/Versions/63.0.3239.132/Chromium Framework.framework/Helpers/crashpad_handler --monitor-self --monitor-self-annotation=ptype=crashpad-handler --database=/Users/user/Library/Application Support/Chromium/Crashpad --metrics-dir=/Users/user/Library/Application Support/Chromium --annotation=plat=OS X --annotation=prod=Chromium_Mac --annotation=ver=63.0.3239.132 --handshake-fd=9

Quitting those two processes won't bring them back (until chromium restart)
no run_with_crashpad spotted.

@Eloston
Copy link
Member

Eloston commented Jan 7, 2018

@tectiv3 Do those processes have any parents or children that should be noted?

@tectiv3
Copy link
Contributor

tectiv3 commented Jan 7, 2018

No children, parent is launchd, process group - Chromium.
Actually I was wrong, sending them SIGTERM will quit that stuck process and re-spawn a normal one:

user           77256   0.0  0.0  2438976   5384   ??  S     1:09AM   0:24.01 /Applications/Chromium.app/Contents/Versions/63.0.3239.132/Chromium Framework.framework/Helpers/crashpad_handler --no-periodic-tasks --monitor-self-annotation=ptype=crashpad-handler --database=/Users/user/Library/Application Support/Chromium/Crashpad --annotation=plat=OS X --annotation=prod=Chromium_Mac --annotation=ver=63.0.3239.132 --handshake-fd=4
user           77254   0.0  0.0  2457936   5496   ??  S     1:09AM   0:27.29 /Applications/Chromium.app/Contents/Versions/63.0.3239.132/Chromium Framework.framework/Helpers/crashpad_handler --monitor-self --monitor-self-annotation=ptype=crashpad-handler --database=/Users/user/Library/Application Support/Chromium/Crashpad --metrics-dir=/Users/user/Library/Application Support/Chromium --annotation=plat=OS X --annotation=prod=Chromium_Mac --annotation=ver=63.0.3239.132 --handshake-fd=9

@tectiv3
Copy link
Contributor

tectiv3 commented Jan 7, 2018

Even better, sending them SIGTERM will just stop them using all CPU without restarting a process :/
Notice the same PID.
BTW after that quitting Chromium won't quit those two crashpad_handler processes. They have to be killed with SIGKILL.

@Eloston
Copy link
Member

Eloston commented Jan 7, 2018

Hmm, well it seems none of the debugging options will be easy. Either we look through the code and patches, do a debug build/make modifications and debug at runtime, or both. I haven't worked with this area of Chromium before so I have no ideas.

@tectiv3
Copy link
Contributor

tectiv3 commented Jan 8, 2018

Can we just disable it all-together?

@Eloston
Copy link
Member

Eloston commented Jan 8, 2018

I was thinking about it, but I'm not sure how integrated the crashpad client (or the whole client module) is in Chromium. It may not be that straight-forward to remove. That can cause some more unintended side-effects.

It's an option we can take if we aren't able to fix crashpad_handler.

@Eloston
Copy link
Member

Eloston commented Jan 12, 2018

Could you guys check to see if dbf4c0e changes anything? I doubt this is the cause, but I'd like to be certain.

@tectiv3
Copy link
Contributor

tectiv3 commented Jan 15, 2018

OK, I will try it a bit later.

@kelvinq
Copy link

kelvinq commented Feb 10, 2018

This happens on my machine too.

@stfnhh
Copy link
Contributor Author

stfnhh commented Feb 16, 2018

@Eloston any progress on this bug?

@stolendata
Copy link

I have nothing to add as dbf4c0e unfortunately refuses to build on my El Capital setup. I'm too swamped with work right now to get enough time to dig into it. @tectiv3, have perhaps you gotten around to building it?

@Eloston
Copy link
Member

Eloston commented Feb 16, 2018

@stfnhrrs I just finished up major rework to the build system. I'm starting development on 64, so we can test again once I merge everything in.

@Eloston Eloston modified the milestones: 63.x.x.x, 64.x.x.x Feb 16, 2018
@tectiv3
Copy link
Contributor

tectiv3 commented Feb 17, 2018

@stolendata nope, it refuses to build for me too.

Eloston added a commit that referenced this issue Feb 27, 2018
Patch for disabling crashpad handler on macOS

Fixes #315
@Eloston Eloston closed this as completed Feb 27, 2018
Wyse- pushed a commit to Wyse-/ungoogled-chromium that referenced this issue Jul 29, 2018
Patch for disabling crashpad handler on macOS

Fixes ungoogled-software#315
@sebvargo
Copy link

I experienced this problem as well. I left my computer overnight to upload videos to a cloud using Google Chrome and my fans started to sound very loud to the point that they woke me up.

After checking Activity Monitor, crashpad_handler was taking 199% CPU. Please see image below.

image

How can this be troubleshooted?

Thank you

@arutr
Copy link
Contributor

arutr commented Feb 28, 2019

@sebvargo That process shouldn't be active. Maybe the patch is no longer valid

@Eloston
Copy link
Member

Eloston commented Mar 2, 2019

@sebvargo If you experience this with 72.0.3626.109-1, please create a new issue. Thanks.

@KimPG
Copy link

KimPG commented Apr 15, 2019

yep, I have it too. Killing it won't get it started again.

thanks a lot.I thought my MacBook would bomb with the problem.

@simmerlee
Copy link

apple is shit! mac is shit! crap!

@datacode384
Copy link

any solution ? crashpad_han running at 192 % cpu for me as well

@kramred
Copy link
Contributor

kramred commented Jan 12, 2020

@krishnadamarla, are you using the current version? Try updating first if you're still on an older version.

If the issue persists try a new profile:
∙ make sure (ungoogled) Chromium is not running
∙ make a backup of your profile folder (should be ~/Library/Application Support/Chromium/Default ) and then delete it, or simply rename it
∙ restart (ungoogled) Chromium

If this resolved it start migrating your settings/bookmarks etc. (always with Chromium not running)

If it still persists, please open a new issue in the macOS repo.

Remember to always have a backup first...

@JaZZim
Copy link

JaZZim commented Jun 19, 2020

End the process with the command:
kill -KILL {PID}

@aybarsyildiz
Copy link

after ending the kernel_task from activity monitor, it fixed this situation for me

@acorello
Copy link

acorello commented Dec 17, 2020

This happened to me today, macOS Big Sur (11.1). The open files of this process suggest Visual Studio Code uses it.

/private/var/folders/gc/📁/T/AppTranslocation/📁/d/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Helpers/chrome_crashpad_handler
/Users/🏠/Library/Application Support/Code/CrashpadMetrics-active.pma
/Users/🏠/Library/Application Support/Code/CrashpadMetrics-active.pma

I decided to reboot and, so far, it's behaving. Note: I don't have Chromium or Chrome installed. HTH

@exgs
Copy link

exgs commented Dec 25, 2020

This happened to me too. mac Big Sur (11.1). Fanning is running crazy. So Force quit "Chrome crashpad_handler" in Activity Monitor

@Eloston
Copy link
Member

Eloston commented Jan 2, 2021

I've been hearing a number of applications breaking under Big Sur, so it could be a Chromium issue. Please open an issue on ungoogled-chromium-macos if this is a problem for you instead of posting on this old issue.

@skypiea0
Copy link

This happened to me today, macOS Big Sur (11.1). The open files of this process suggest Visual Studio Code uses it.

/private/var/folders/gc/📁/T/AppTranslocation/📁/d/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Helpers/chrome_crashpad_handler
/Users/🏠/Library/Application Support/Code/CrashpadMetrics-active.pma
/Users/🏠/Library/Application Support/Code/CrashpadMetrics-active.pma

I decided to reboot and, so far, it's behaving. Note: I don't have Chromium or Chrome installed. HTH

Same here on Big Sur 11.2 M1 with vs code. I have Chrome installed but it was not open at that moment. I suspect vs code too.

@stephskyy
Copy link

This happened to me today, macOS Big Sur (11.1). The open files of this process suggest Visual Studio Code uses it.

/private/var/folders/gc/📁/T/AppTranslocation/📁/d/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Helpers/chrome_crashpad_handler
/Users/🏠/Library/Application Support/Code/CrashpadMetrics-active.pma
/Users/🏠/Library/Application Support/Code/CrashpadMetrics-active.pma

I decided to reboot and, so far, it's behaving. Note: I don't have Chromium or Chrome installed. HTH

Same here on Big Sur 11.2 M1 with vs code. I have Chrome installed but it was not open at that moment. I suspect vs code too.

confirm its VScode.
Started to get this issue after installing VScode.
Uninstalling VScode got all safe and sound to normal.

@jamshid
Copy link

jamshid commented Nov 8, 2021

If you search for the process name chrome_crashpad_handler there are hits like this claiming its a virus. Hopefully that's just google spam?
https://www.cleanpcinfections.com/2021/01/how-to-remove-crashpad_handler-mac-virus-from-mac-os-jan-2021/

@zliang9
Copy link

zliang9 commented Mar 31, 2023

This is 3/2023, I just hit the same issue with M2 macbook air. I installed VS Code 2 days ago, and found the chrome_crashpad_handler process was sucking CPU and drove the CPU temperature to 180 F+. Killed it with kill -9 and now laptop is cool.

@elrinor
Copy link

elrinor commented Jun 25, 2023

Same issue on M1 Max with the latest vs code, kill -9 helps.

@Leo7654
Copy link

Leo7654 commented Feb 20, 2024

re-spawn always, I renamed that process

mv /Users/hojinlee/Library/Android/sdk/emulator/crashpad_handler /Users/hojinlee/Library/Android/sdk/emulator/crashpad_handler_bk

@cubuspl42
Copy link

@Leo7654 I'm not sure this issue is talking about the same "instance" of crashpad_handler. I would guess that the Android SDK uses the same Google-created open-source program as Chromium / Chrome / Ungoogled Chrome.

Still, in my case, I also had the CPU usage issue with the Android SDK-provided crashpad_handler and your solution with deleting (+ backing-up) the executable binary seems to solve the problem.

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

No branches or pull requests