Since updating MacBook Air to Sonoma I had multiple processes called 'CGPDFService'

Since updating to Sonoma I have had 2 periods of up to 10 instances of a process called 'CGPDFService' running causing all 4 efficiency cores to run at 100% for extended periods -- hours, they never seem to stop themselves. Once they started in the middle of the night and ran a few hours when the Mac was asleep. It ran the battery down more than usual.


A restart seems to fix it for a while but I wonder if anyone else has any insight into this. I can't find any info on what this process does. I am hoping that it will be fixed with the next update.


I have a MacBook Air m2 running Sonoma 14.0.


[Re-Titled by Moderator]

MacBook Air, macOS 14.0

Posted on Oct 8, 2023 11:58 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 9, 2023 2:19 AM

Thanks Luis Sequeira1. Before you replied the first time I ran Etrecheck and found launch daemons and plists for Adobe acrobat which I had uninstalled some time ago. I removed everything from Adobe [in safe mode] and now everything looks ok on Etrecheck. If the problem recurs I'll open another question and include an Etrecheck report.

34 replies

Oct 9, 2023 12:23 AM in response to Voidoider

Voidoider wrote:

Thanks for the reply. As soon as it happens again I'll run Entrecheck -- I presume that I have to run Entrecheck when the problem is occurring?

Etrecheck will produce a report on your hardware and software - notably any third party daemons or agents that may be installed. That information does not change, so there is no reason to wait until the problem reappears.


Question marked as Top-ranking reply

Oct 9, 2023 2:19 AM in response to Voidoider

Thanks Luis Sequeira1. Before you replied the first time I ran Etrecheck and found launch daemons and plists for Adobe acrobat which I had uninstalled some time ago. I removed everything from Adobe [in safe mode] and now everything looks ok on Etrecheck. If the problem recurs I'll open another question and include an Etrecheck report.

Oct 10, 2023 6:23 PM in response to Voidoider

I've noticed this and I'm looking into it now.


I'm going to throw out a guess, though. It appears that these processes are scanning PDF files; they seem to be accessing fonts installed on my machine as well. (I have a lot of PDFs - documentation for Linux, dev tools, Cisco networking gear, VoIP, you name it).


I suspect that this is part of mds_stores - indexing processes for Spotlight. The fact that these processes are also accessing the ICU libraries (Unicode) is consistent with the idea that they are "reading" the PDFs for indexing. I have 11 of these processes running, but they seem to just be chewing at PDF files, serially.


I'll post on what I find when I can, but thought this might be a good clue for someone.

Oct 10, 2023 6:44 PM in response to K. M. Peterson1

Thanks K. M. Peterson1. I also suspect that this has something to do with spotlight and mds_stores indexing. I was mucking around with the system and managed to break it. After reinstalling the OS I reset everything to factory fresh and then reinstalled my data in settings from a Time Machine backup. After this I noticed that MDS stores was working hard and I had between four and 10 CGPDF services running. Once spotlighted finished indexing the CGPDFservices processes stopped running.

Oct 19, 2023 6:31 AM in response to applefab

I've been meaning to trace this down a bit better.


But it looks to me like the initial pass has completed, and so these processes aren't popping up any more. I did see on two separate occasions that my machine was running "hot" - due to this activity - but that was when I wasn't using it. When I started to poke around, the processes disappeared which leads me to believe that they were configured to only run when the system was idle.


Of course, if you're going to go to the trouble of checking for being idle, I'd assume you'd also check for whether a Macbook is on battery, since it's not nice to chew up capacity like that in the background (which was the original complaint). But that would also be a target for a bug to be fixed quickly - so perhaps it is.


Yeah, I don't like seeing lots of copies of processes pop up that I don't understand, but absent more information I think this is "mostly harmless". It certainly does seem limited (I did check) to just scanning PDF files.

Nov 11, 2023 9:22 PM in response to K. M. Peterson1

Hello,

since yesterday morning I have had the same problem as you with the CGPDF process.

I apologize for my English but it is not my native language.

I have an Apple iMac M1 with Sonoma 14.1.1.

Yesterday morning I did some cleanup on the Mac's HD and moved some files (including many pdfs) from the HD to iCloud.

Despite all the care and following your suggestions, the CGPDF process problem, followed on the Activity Monitor app continues to crash my system to the point of having to force a reboot via the power button.

The very tedious solution is that at Mac startup I have to open Activity Monitor and force the CGPDF process which burns more RAM.

How can I solve this problem?

If it persists I will take the Mac in for service.

Thank you all.

Nov 13, 2023 7:41 AM in response to giuseppe109

Hi there,


Based on my experience, I'd suggest this: because you moved a bunch of these files, macOS is trying to re-index them. So if possible, I would set aside several hours where you reboot/log into your iMac, and just leave the processes to complete. That is - don't try to actually do any work but leave the machine on and let it run for at least a couple of hours. (As we say: "Una pentola guardata non bolle mai" or so Google Translate would tell me.)


I posted my observations several weeks ago, but have forgotten about this because once the processes went through all of the PDFs I haven't been bothered by it again. I hope this will be true for you as well.


Since you know how to access Activity Monitor, note that you can use the "i" (Inspect - in English at least) function to bring up information about any process. Once you do so, there tab called "Open Files and Ports". None of us here likely know what most of the open files are being used for, but for the CGPDFService processes you will see at least one PDF file in the list and that is the file currently being processed... (and that file should change as that process goes to the next one). That might help you understand a bit better what files are currently being scanned and even how long it's taking the files to be processed.


Also, I don't really use iCloud documents, but it's also possible that your iMac might have to be copying each file it is processing over the network connection. That doesn't really consume considerable CPU or memory, but I could see how might run more of those processes as it's waiting to read the bytes of the file.


This is mostly conjecture, but I hope this helps!


Nov 14, 2023 12:17 AM in response to K. M. Peterson1

Good morning

Thank you for your replay.

But is the CGPDF process new to Sonoma?

Because before Saturday, Nov. 11, I never had such problems.

Working on many editorial graphics files I produce a quantity of pdf version and as I said before Saturday I never had any problems.

That said, I have noticed that removing pdf files from iCloud still triggers the CGPDF process, I still get the pop up advising me to close open programs (sometimes it advises me to restart the Finder because I don't open programs intentionally) but it doesn't crash like before.

In the meantime, I will follow your advice and let the Mac work to redirect the files and see what happens.

Have a good day.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Since updating MacBook Air to Sonoma I had multiple processes called 'CGPDFService'

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