OneDrive cause panic on Mac

Anonymous
2022-06-05T22:29:12+00:00

Version: 22.099.0508 (22099.0508.0001) on macOS 12.4 (Build 21F79)

Over the last days I have had 2 kernel panics caused by OneDrive:

Jun  3 21:24:

panic(cpu 2 caller 0xffffff800511cd6b):  initproc exited -- exit reason namespace 7 subcode 0x1 description: overflow of service activation count during activate. Managed:1. Count:32767. Service:'user\/501\/com.apple.xpc.launchd.unmanaged.OneDrive File P.26933'

Jun  5 23:50:

panic(cpu 0 caller 0xffffff801bf1cd6b):  initproc exited -- exit reason namespace 7 subcode 0x1 description: overflow of service activation count during activate. Managed:1. Count:32767. Service:'user\/501\/com.apple.xpc.launchd.unmanaged.OneDrive File P.916'

I have 3 diag reports on high CPU usage of OneDrive:

Jun  2 15:57:

90 seconds cpu time over 104 seconds (87% cpu average), exceeding limit of 50% cpu over 180 seconds

Jun  3 21:06:

90 seconds cpu time over 159 seconds (57% cpu average), exceeding limit of 50% cpu over 180 seconds

Jun  5 23:35:

90 seconds cpu time over 137 seconds (66% cpu average), exceeding limit of 50% cpu over 180 seconds

Notice that two of them are just minutes before the kernel panics.

I would appreciate help in avoiding this!

Microsoft 365 and Office | OneDrive | For home | MacOS

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

31 answers

Sort by: Most helpful
  1. Anonymous
    2022-06-14T07:18:22+00:00

    Hi All,

    This issue was posted to the Service Health Dashboard (SHD) as incident OD391861 starting at May 30, 2022, at 5:49 AM UTC. The user experience of this incident is Users may experience an operating system restart when utilizing OneDrive for Business for Mac.

    More info: Crashes may occur when utilizing OneDrive for Business for Mac version 22.111.0522.0002 or lower, 22.1116.0529.0002 or lower, and 22.045.0227.004 on macOS machines.

    Current status: We're continuing to perform tests and validation for the code fix before deploying it to the affected environment. We'll provide an update for the deployment timeline once available.

    Tenant administrators can view current information and updates on Service health dashboard (SHD) at the link here:

    https://admin.microsoft.com/AdminPortal/Home#/servicehealth/advisories/:/alerts/OD391861

    For affected customers to easily identify the information here, this thread will be closed from further posting. You may subscribe to this thread or refer to the SHD for updated information. We will also post back here once the issue is resolved.

    Regards,

    Neha

    Was this answer helpful?

    10+ people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2022-06-07T09:13:03+00:00

    Yes, as macOS did generate CPU resource diagnostic just minutes before the kernel panic – it is fair to assume the OneDrive CPU usage was very high at the point of the kernel panics.

    1. Try out:
      1. Use office applications to sync Office files that I open” is off and has always been off for me as I experienced problems with it several years ago.
      2. BTW: I’m using (and dependent on) not turning on “Files on Demand”.  I have selected “Download all OneDrive files now”.
      3. I cannot run in Safe Mode for days.  Ran for an hour and still saw high CPU on OneDrive – but no panic. Other responders in this thread indicate still a problem in Safe Mode.
    2. Reset:
      1. Did a reset a few months back as I experienced problems with sync of files.  Very annoying: all symbolic links were lost and timestamps on all directories were reset.
      2. Did a new reset (same annoying problems).  The combined CPU usage of OneDrive, OneDrive File Provider, and fileproviderd was around 210-290%.
      3. OneDrive decided to initial download ~43GB.
      4. After ~8.5 hours and ~37GB I got a kernel panic with the “usual” message:
        panic(cpu 2 caller 0xffffff800791cd6b):  initproc exited -- exit reason namespace 7 subcode 0x1 description: overflow of service activation count during activate. Managed:1. Count:32767. Service:'user/501/com.apple.xpc.launchd.unmanaged.OneDrive File P.16640'
      5. After restart OneDrive downloaded the remaining 6.1 GB of the initial ~43GB.
      6. To truly force all files to be on local device I did a “tar cvf - . > /dev/null“ in the OneDrive root folder after OneDrive had initialized.  After some time during night and after forced additional ~8GB to be downloaded it failed with:
        tar: lseek(SEEK_HOLE) failed: Operation canceledtar: Error exit delayed from previous errors.
      7. This clearly demonstrates the problem with “Files on Demand”: sometimes OneDrive will not be able to download a requested file fast enough and havoc will follow.
      8. A new execution of the tar-command again failed after additional ~8GB:
        tar: lseek(SEEK_HOLE) failed: Operation timed outtar: Error exit delayed from previous errors.
      9. With Finder I marked all files and directories in OneDrive in root and selected “Always Keep on This Device”.  This got OneDrive to download an additional ~20GB.
      10. A new execution of the tar-command now ran successfully.
    3. Info:
      1. Mac OS version is clearly stated in the original post: macOS 12.4 (Build 21F79). I can add the HW info: MacPro6,1, 6-Core Intel Xeon E5 @3.5 GHz, HT Enabled, 96 GB, FW: 430.120.6.0.0
      2. OneDrive was automatically updated via Apple App Store on June 2, 13:54:55Z.  It was an update from version 22.089.0426 to 22.099.0508.

    It is fair to assume this latest version has a bug or two as all my incidents are after this update. 

    Cannot imagine what a hell this must be if you are on a slow internet connection – I’m on a 1Gbs link.

    Surprised about the summary “OneDrive causes too much panic on Mac.”  So, what is the acceptable amount of kernel panics?  Would argue: zero!

    /Mikael

    Was this answer helpful?

    7 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2022-06-07T21:51:07+00:00

    Exactly the same problem here for the past few days: a panic crash every hour or so with the same error logs as the others here, both on my iMac (M1) and MacBook Pro (M1) running MacOS 12.4 and Onedrive 22.099.0508.0001

    Clearly a OneDrive bug - please fix this quickly!

    Was this answer helpful?

    4 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2022-06-07T20:28:46+00:00

    I've recently started experiencing this too. Logs all start similar - example below.

    panic(cpu 0 caller 0xffffff801f31cd6b): initproc exited -- exit reason namespace 7 subcode 0x1 description: overflow of service activation count during activate. Managed:1. Count:32767. Service:'user/501/com.apple.xpc.launchd.unmanaged.OneDrive File P.981'

    On MacOS 12.4.

    Was this answer helpful?

    3 people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2022-06-06T10:43:34+00:00

    I have had the same issue as well. I called Apple support and they suggested I go into safe mode and restart the iMac (2022 M1). I did. And yet I still had the same problem with sudden restarts.

    So, I decided to quit OneDrive and left my machine overnight. When I came back to my iMac this morning, no restarts.

    I saw that OneDrive was updated on my iMac on Saturday. I began having the crashing problem on Sunday.

    Was this answer helpful?

    3 people found this answer helpful.
    0 comments No comments