OneDriveSetup.exe causes high CPU usage

17

3

On my Toshiba Encore 8 Tablet I noticed that the CPU usage is very high. In Taskmgr / ProcessExplorer, I can see that OneDriveSetup.exe is hogging 1 CPU cores heavily for hours.

enter image description here

How an I solve this hang and finish the OneDrive Update?

magicandre1981

Posted 2017-07-01T08:56:44.873

Reputation: 86 560

See this GitHub: Onedrive-Uninstaller.

– Biswapriyo – 2017-08-20T14:57:36.410

@Biswa I don't want to uninstall OneDrive, I wanted to fix the hang while updating. – magicandre1981 – 2017-08-21T15:01:58.787

Answers

20

This is a known issue since End of June 2017 when users have non English/ASCII values in their username and therefore their profile paths (C:\Users\André, C:\Users\András or Cyrillic user name). OneDriveSetup.exe hangs with a single processor thread hogging one logical processor of the computer because it keeps retrying file operations that are failing because of the non-English/ASCII characters in the user profile paths. Use these steps to fix it:

  1. Kill the OneDriveSetup.exe in Task Manager/Process Explorer; This step is optional, OneDriveSetup.exe will most likely recover from the hang and continue after step 2 even if you don't kill it (step 1) and run it again (step 3).
  2. Go to the %localappdata%\Microsoft\OneDrive\setup\logs folder and find the following two files
    UserTelemetryCache.otc
    UserTelemetryCache.otc.session
    (if you can't see them, make sure all hidden & system files are visible)
  3. Now delete those 2 files and go to %localappdata%\Microsoft\OneDrive\Update and run the OneDriveSetup.exe again.

Now the installer no longer hangs in a loop, finishes fine and the CPU usage is gone.

magicandre1981

Posted 2017-07-01T08:56:44.873

Reputation: 86 560

1I wonder how many people have this problem. All WIndows 10 users? Or some language only? I noticed this happening for more then a week. Maybe it would be fixed in next Microsoft patch tuesday... What do you think? Obviously majority of people don't even notice it or don't even try to fix it like this. – Vitas – 2017-07-02T15:31:34.000

@Vitas I had this issue since this week and found topics in Microsoft forums, too. So it effects users, but most users don't notice it. – magicandre1981 – 2017-07-02T17:23:31.920

4Some people point to the fact that their username has accents in that. That would also explain how it slipped through the QA department. Anyway, I have the very same problem with an accent in my username \Users\András. – atoth – 2017-07-08T12:24:02.747

1@atoth good catch. My path is C:\Users\André – magicandre1981 – 2017-07-08T17:36:43.777

2and my USERPROFILE is in Cyrillic – 62mkv – 2017-07-10T07:24:44.127

2@62mkv thanks now we see the issue. Non english/ASCII values in username seam to cause the hang while OneDrive update – magicandre1981 – 2017-07-10T15:41:51.383

Thank you! You saved my life. This issue was annoying me for a month. – andre719mv – 2017-08-26T23:37:14.380

Thank you. My laptop was running so hot because the CPU never slowed down. I have a username /users/Lars Meldgård – Lars Meldgård – 2017-09-29T17:06:32.160

@LarsMeldgård nice to hear that this fixes your issue, too. – magicandre1981 – 2017-09-30T09:37:36.093

Still a valid answer in 2018 - the problem still exists. – lx07 – 2018-12-19T21:40:22.097

@lx07 ok, it never came back after I applied the fix, but nice to hear it still fixes the issue for other users. – magicandre1981 – 2018-12-20T15:29:52.303

1@magicandre1981 - it helped me, yes and the problem hasn't reoccured again. I proposed an edit to replace "C:\Users\your username\AppData\Local" with "%localappdata%" to make it easier to copy/paste but it was rejected by for some reason. In any case it still works and is (at least in my case) applicable. – lx07 – 2018-12-22T20:51:35.977

@lx07 ok, I made the edit. – magicandre1981 – 2018-12-23T16:12:10.760