Photolibraryd,photoanalysisd, and com.apple.photos.ImageConversionService constantly using high CPU

Pretty much since I updated to catalina 4 months ago these three processes have been CONSTANTLY using upwards of 90% CPU all the time.



It is rendering Photos almost useless; I'll click on a photo and then on Edit and nothing will show up. If I try dragging a photo off to the desktop I get an endless pinwheel. When I click on photos (and this is the most worrying part!) they're blurry and pixelated, which I KNOW the originals aren't.


I suspect the two things are related. My photos library has over 35K photos in it, going back over 20 years. (before iPhoto, even, but all my existing ones were inported into iPhoto when I started using that...) This was not an issue prior to updating to Catalina.


Is there a way to fix this issue?




Mac mini, macOS 10.12

Posted on Jun 29, 2020 3:53 PM

Reply
Question marked as Top-ranking reply

Posted on Jun 30, 2020 4:48 AM

You may have items in your Photos Library that cannot be processed by Photos 5 on Catalina.

The the processes may get stuck when trying to process the incompatible items over and over again.

Sometimes we can find the items in the catches of the processes.

In the Activity Monitor double click the name of one of the processes, for example "ImageConversionService" or "photoanalysisd" and look at the "Open Files and Ports" tab. Scroll through the open items and look for image files or videos.


I found several items in my library this way. After removing the offending PDF. files and videos from the Photos Library, and restarting the Mac, the image conversion and the upload to iCloud could proceed and finish.

It should look like this in the Activity:


I found, for example, offending files of the cloudphotosd in ~/Pictures/Fotos-Mediathek.photoslibrary/resources/cpl/cloudsync.noindex/storage/filecache/


Similar questions

33 replies
Question marked as Top-ranking reply

Jun 30, 2020 4:48 AM in response to Bruce Johnson3

You may have items in your Photos Library that cannot be processed by Photos 5 on Catalina.

The the processes may get stuck when trying to process the incompatible items over and over again.

Sometimes we can find the items in the catches of the processes.

In the Activity Monitor double click the name of one of the processes, for example "ImageConversionService" or "photoanalysisd" and look at the "Open Files and Ports" tab. Scroll through the open items and look for image files or videos.


I found several items in my library this way. After removing the offending PDF. files and videos from the Photos Library, and restarting the Mac, the image conversion and the upload to iCloud could proceed and finish.

It should look like this in the Activity:


I found, for example, offending files of the cloudphotosd in ~/Pictures/Fotos-Mediathek.photoslibrary/resources/cpl/cloudsync.noindex/storage/filecache/


Jul 8, 2020 2:30 PM in response to Grere

This was on my Late-2014 mini, so it's definitely not age of the Mac, and a new mac won't necessarily solve it.


Upon reflection I think it was the two safe-mode boot cycles that really fixed it. This is a good general fix for all sorts of weird issues with the Mac but this is the first time I had to do it twice to completely fix the problem.


Shut down your mac and then hold down a shift key while starting it up. Hold the key down until you see the Apple logo and a progress bar.


This may take a very long time, but just let it go (I once had to do this on my MacBook Air and it took almost a half hour to fully boot up.) until it comes up to the login screen.


It will have some red text in the upper right hand corner of the screen saying 'Safe Mode'. Shut it down and repeat the process. It should take a LOT less time the second time around.


Then start your Mac normally and see if it's behaving...

Sep 30, 2020 5:22 PM in response to Machaman

Update 2: The fix! A few days passed without any more problems. However, I needed to use an older photo library on an external HD. As I was dreading, a few minutes after connecting the HD and opening that library, my MacBook Air was ready to make waffles again (hot as heck!). Sure enough, activity monitor confirmed that the same two daemons were running amok. As I did previously, I found the photos listed in the Open Files and Ports for both offending daemons and opened them in the Photos app, reverted them to their originals, and then quit and reopened Photos. This worked!! No need to reboot in safe mode this time.


This wasn't as simple as it could (should be?) Copying the whole string and pasting it into spotlight didn't work and neither did the search in Photos. However, by leaving out the file name (id? - long list of numbers with the file extension - something like E504348832344.jpg) and only copying the string up to the folder that the photo was contained in, I was able to find and preview the photo in spotlight. Then I had to manually find that photo in the Photos App. Perhaps there is an easier way to do this?!


I am not sure why just a few photos (out of thousands) caused this glitch. They were all photos taken on an Iphone and then edited using the Photos app (on the Mac). Who knows...

Jun 30, 2020 2:00 AM in response to Bruce Johnson3

Maybe you could re-create the old library? I recently re-created Mojave Photos library from scratch by importing 35 000 and several hundred movies to it (350 GB total). (Somehow there were numerous image duplicates in iTunes synced iPad (not in Photos), and I had also fixed the original movies' various date metadata elsewhere with exiftool and, so I decided to re-create the old library).


Normally I have the library on an external HDD but I created the new library to the internal Mac mini 2018 SSD knowing that it takes a while to scan faces etc especially on the slow HDD. It took "only" a week until it was ready and I then copied the library back to the external HDD.


During that week I tried to peek the Activity Monitor when the Photos daemons did their work. It seems that it didn't matter if Photos was open in the background or off (only when I was actively using it, those processes halted). And it seemed that the processes stopped their work at some point and only continued sometime the next day so I did not leave the Mac on during the night.


Has anyone tried to give those Photos processes more CPU time via the Terminal so they could do their job any faster?

Jul 2, 2020 1:49 AM in response to Bruce Johnson3

I recommend to never kill a Photos-related process, even if you think there is something wrong. Rather, I recommend that you restart your Mac. In that way, the necessary process(es) will be restarted as necessary.


My only recommendation is to make sure that your Mac does not go to sleep (disable this in the "Energy Saver" system preference) and then simply wait it out. It is very common for Photos-related processes to run for many hours, especially after an upgrade of some sort or after I have updated one or more photos in some way.


There does not seem to be any way to know what Photos is doing or why it is busy. I would not attach any meaning to any of the vague messages that are sometimes displayed in Photos.

Jul 10, 2020 7:48 AM in response to Russ New Boy

Most of those Open files are various parts of the photoanalysysd and com.apple.photos.ImageConversionService tasks. The photoanalysis proces is normally set to run in the background when you're not interacting with the computer. Changing every 5 seconds or so indicates that it is working normally, and if you just updated Photos, particularly after going from a major OS version to the next this is expected behavior. this is the man page for that command:


photoanalysisd(8)         BSD System Manager's Manual        photoanalysisd(8)

NAME

     photoanalysisd -- The macOS photo library analysis agent.


DESCRIPTION

     photoanalysisd is the photo library analysis agent. It handles background

     processing of photo libraries for Memories, People and scene or object

     based search.


So it does run a lot of the time. It's kind of an indexing system, and is what lest you assign a contact to faces it finds in your photos and stuff like that.


When it's working normally it's just sitting there doing nothing. The com.apple.photos.ImageConversionService, I believe, is part of that process when new photos are added, but I cannot find a good diescription of exactly what it does.


In my case the processes were stuck on one photo forever until I force-quit them, then they'd get stuck on the next. I believe the Safe Boot cycle is what finally fixed whatever was causing that. I do know that when I ran it the first time it took a very long time to come up to the login screen, like 15 minutes or so.

Jul 2, 2020 8:06 AM in response to Bruce Johnson3

Have you opened that one file in Preview? Can Preview open it?

As you have the path to the image file you can open it by pasting the command below into the Terminal:

open ~/Pictures/Photos Library.photoslibrary/originals/0/0931DD57-B68C-477B-99E5-D57451F6A926.jpeg -a Preview

Don't modify the image, just look.



Sometimes the .jpeg files are actually TIFFs, camouflaged by a third party editor as JPEGs. Luminar is frequently storing huge files with the extension .jpeg in my library, that are TIFF files with many layers.


Can you identify the file by looking at the picture? It is difficult to find a photo by the filenames we are seeing inside the photo library package,


Jul 1, 2020 5:25 PM in response to Bruce Johnson3

What appears to be happening is that the com.apple.Photos.imageconversion.service process gets stuck

This is what I saw today, looking at the open files. The number at the end is the time when I checked open files. Force quitting the process brings it back up with a different file


/Users/johnson/Pictures/Photos Library.photoslibrary/originals/3/3AFFD10E-B253-40C6-8502-8E71F14A5078.jpeg 3:46

/Users/johnson/Pictures/Photos Library.photoslibrary/originals/3/3AFFD10E-B253-40C6-8502-8E71F14A5078.jpeg 5:19


I force quit the process and this is the file it's on now:


/Users/johnson/Pictures/Photos Library.photoslibrary/originals/0/0931DD57-B68C-477B-99E5-D57451F6A926.jpeg


It shouldn't take an hour and a half to process a single jpeg file...not at 70-90% CPU


Jul 3, 2020 6:52 PM in response to léonie

Thank you!

I have had the same problem, a few times since 10.15.5. I had added a few photos and initially had trouble editing them. The edit screen would come up, without any tools. Then I found that I couldn't add them to an album-Photos froze and had to be force-quit.

Eventually I found ImageConversionService running at 97+, and started Googling. Lots of totally useless suggestions (buy more RAM was one), and then I found yours... looked at Open Files and Ports, found the names of those images from yesterday. Located them in the library, went into Photos and deleted them, emptied the deleted photos, closed Photos, force-quit ImageConversionService, restarted Photos... so far so good.

Copied the images back into Photos, editing is OK, and I can add them to an album. But now, of course, photoanalysisd has started up at 70+ ! But I do know that photoanalysisd does end at some time!

More and more often I do think of leaving Apple, with their increasingly buggy software, but the alternative is too nasty to contemplate.



Jul 2, 2020 7:30 AM in response to jeffreyEh

" It is very common for Photos-related processes to run for many hours, especially after an upgrade of some sort or after I have updated one or more photos in some way."


I updated to Catalina in March. it is still processing these files. The last time I did anything in photos was a week ago, mainly because it is unusable.


The ImageConversionService process is still processing that last file 15 hours later. It's broken.

Jul 2, 2020 9:10 AM in response to léonie

Yeah it's a photo I took about two weeks ago and it opens perfectly fine in Preview; my camera is currently set to take jpeg+raw photos, but in the folder structure in Photos they're two different files one with .jpeg another with .dng. Photos defaukts to using the .jpeg.


The thing that brought this problem to a head, in fact, was purchasing Luminar, actually since it was advertised as working as a plugin for Photos. Trying to open the image in Luminar via the menu just results in...nothing happening until I force-quit Photos. About half the time now if I select Edit on a photo, the background doesn't change, and the toolbar on the right doesn't appear.


Jul 8, 2020 1:48 PM in response to calorizur141

So what you describe is exactly what's happening to me but you lot seem to know all the proper technical language. I'm fed up. I think it's a push from Apple to get me to buy a new laptop - since mine was bought in 2015. They don't make any secret about pushing us towards constantly upgrading.

I think I need to upgrade because all this carry-open has been affecting my battery life too. Now when I'm not even using Photos the laptop starts to heat up and the battery goes from 100% to 40% within an hour or so.

SO now I have to fork out $2000 for a new laptop?? Not happy : (

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.

Photolibraryd,photoanalysisd, and com.apple.photos.ImageConversionService constantly using high CPU

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