Why is CGPDFService reading trackpad preferences and causing high CPU usage on Mac?

Host: MacMini M2 Pro with 32GB RAM

macOS 15.3.2


Per attached screen shots, CGPDFService is running constantly but is denied access to files over and over again, such as ~/Library/Preferences/ByHost/.GlobalPreferences.A7ABCFA2-EA0A-5D97-AD31-78C1464DC5D3.plist.


Why on earth would a PDF service be attempting to read a Trackpad preference file? NOTE: Issue is replicated with and without Apple Lockdown Mode enabled. However, the issue cannot be replicated while booting in safe mode.


[Re-Titled by Moderator]




Mac mini, macOS 15.3

Posted on Mar 29, 2025 4:42 PM

Reply
5 replies
Sort By: 

Mar 30, 2025 7:42 AM in response to cturner

What follow is related to macOS 14 Sonoma and may or may not relate to macOS 15 Sequoia


https://eclecticlight.co/2024/02/07/why-is-my-mac-working-so-hard-after-startup-whats-cgpdfservice/


Fixing problems


Although killing CGPDFService processes in Activity Monitor might be a satisfying way of trying to address sustained high levels of CPU %, that’s unlikely to fix any underlying problem. There are two main approaches for tackling this if the high CPU is unacceptable:

  • Remove PDF Documents from the Search results list in Siri & Spotlightsettings.
  • Add the volume or folder containing the PDFs to the list that Spotlight ignores, through the Spotlight Privacy… button in those settings.

These both have the disadvantage of removing those files from Spotlight search. One solution for dealing with one or a few PDF documents that always choke CGPDFService processes is to isolate them in a folder that is excluded using the Spotlight Privacy list.


Why?

This change in Sonoma hasn’t been reported or explained by Apple, and doesn’t appear to be related to any known change in Sonoma’s features. It’s possible that this is the first step in preparation for more sophisticated methods of extracting text from PDFs, which might in the future include the use of Live Text OCR. However, there’s no indication that’s used at present. If you’re unaware of the additional complications incurred by that, my earlier account provides an outline, and Apple’s more detailed account of how it works in Sonoma should confirm that.

Reply

Mar 30, 2025 8:57 AM in response to PRP_53

Thanks for forwarding the info above ... but please help to understand: if I turn off Spotlight's ability to search PDFs, why is that considered a fix when the result is that I lose the ability to search through hundreds of gigabytes of historical PDF documents? ALSO, the article does not address the core issue I am raising : why the heck is a Spotlight PDF utility trying to index non-PDF files -- except the Sandbox is blocking it from accessing? Either it is a mis-configured third-party application causing this problem, or is it a likely security issue wherein CGPDFService is being mis-applied to perhaps extract strings from binaries, .ssh and other files thereby allowing the malware to search for those via Spotlight?

Reply

Mar 30, 2025 9:19 AM in response to cturner

As an aside, two of my macOS 15.3.2 machines with Apple LockDown Mode enabled exhibit this issue. Last night I rebuilt one of those machines from scratch [^1] and I am slowly adding back third-party applications and configuration files. So far, Spotlight is running without issue on the newly rebuilt macOS host -- there are no CGPDFService processes going off to scan non-PDF files.


NOTES:

[^1]: (e.g., boot to utility mode and reformat the root SSD partition and force a clean macOS image to be pulled from Apple).

Reply

Why is CGPDFService reading trackpad preferences and causing high CPU usage on Mac?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.