macOS Mojave - iconservicesagent misbehaving again

The OS daemon iconservicesagent is once again gobbling up memory 10+GB sometimes as much as 23GB along with more CPU. All I have to do is open a directory with custom icons and the daemon kicks in. It can run for ten, twenty or more minutes. It's not the CPU usage that causes trouble it is all the RAM being used. The Force Quit window pops up regularly and wants me to force quit some Applications because all the application memory has been used up. It practically bricks my MacBook Pro until the daemon eventually finishes. If I open the directory again, it starts all over.


This identical problem first showed up in the previous OS. I notified Apple about it and had to wait months for them to fix it. Well, the problem is back and I don't want to wait (I have notified Apple...again). If anyone has a suggestion, I would like to hear it.

MacBook Pro TouchBar and Touch ID, macOS Mojave (10.14)

Posted on Sep 24, 2018 9:18 PM

Reply
Question marked as Top-ranking reply

Posted on Nov 1, 2018 1:02 PM

I had this issue as well since I have a couple hundred movie files with custom file icons (setup using the MovieIcon app). Things became unusable when I opened my Movies folder. I had to go through and remove the custom icons -- this would have taken a long time but I used this script in Terminal to make quick work of it (be sure you cover all the possible file extensions, not just ".mp4")...


find ~/Movies -name "*.mp4" | while read f ; 
do xattr -d com.apple.ResourceFork "$f" ;
done


What this script is doing is just looping through all files in my "Movies" folder and removing the icon (what MacOS calls "ResourceFork") for each file. Hope this helps!

18 replies
Question marked as Top-ranking reply

Nov 1, 2018 1:02 PM in response to j.birkenmaier

I had this issue as well since I have a couple hundred movie files with custom file icons (setup using the MovieIcon app). Things became unusable when I opened my Movies folder. I had to go through and remove the custom icons -- this would have taken a long time but I used this script in Terminal to make quick work of it (be sure you cover all the possible file extensions, not just ".mp4")...


find ~/Movies -name "*.mp4" | while read f ; 
do xattr -d com.apple.ResourceFork "$f" ;
done


What this script is doing is just looping through all files in my "Movies" folder and removing the icon (what MacOS calls "ResourceFork") for each file. Hope this helps!

Nov 16, 2018 6:53 PM in response to NomadicFanboy

I got resolution. Yay!


Working with AppleCare and someone at an Apple Store I was able to find a solution.


I put my external USB disk on a High Sierra Mac at the store and it had no trouble with the custom icon which had been set on a High Sierra Mac. I was able to “cut” the icon cleanly.


From that point forward the drive was fine on my Mojave Mac. I did the same thing later on my two other problematic drives using a friend’s High Sierra Mac and then they were fine too.

Nov 30, 2018 6:36 AM in response to NomadicFanboy

An alternative to using another computer would be to remove the icons through Terminal. This code will run through all the files in a folder or external HD and remove only the custom icons (what MacOS calls "ResourceFork"). This code will look for all ".mp4" files and remove the icons -- you would have to do this for any file extension where you want icons removed.


find "/Volumes/EXT HD NAME" -name "*.mp4" | while read f ; do xattr -d com.apple.ResourceFork "$f" ; done

Nov 30, 2018 6:22 AM in response to MasterChiefSiegen

As a workaround to the bug, your goal is to remove the custom icons. The trouble is you have the problem at the time you’re trying to resolve it. And I think even if you do, the iconservicesagent is messed up already and can’t properly complete the cut.


For me, the files with custom icons were on an external drive and I was able to cut them from the files by mounting the drive on a friend’s or Apple Store’s High Sierra Mac.

Nov 13, 2018 1:36 PM in response to I3rendan

I dragged the drive onto the Terminal window and that gave me the precise file path. I did not need the ""s. And IT WORKED...it looks very sad without all of the artwork I spent so much time pasting into place, but at least the videos now run smoothly. I have a copy of the drive with the icons, and assuming Apple fixes this at some point in the future, I'll copy that backup back onto my external drive. Thank you - you helped me as Apple Support could not!

Oct 11, 2018 2:26 PM in response to j.birkenmaier

My system is a MacBook Pro (Retina, 15-inch, Mid 2015).


initially it was of course the rediculously poor performance after connecting an external drive. That led me to see the reduculously high disk usage. Eventually I noticed the rediculously high memory usage and saw that was coming from the iconservicesagent process. It started when I installed Mojave when it was released.


FWIW, I only have the problem when I connect an external drive. It just so happens that I have custom icons on the drives and things within the drives, so may well be that it’s because of the custom icons.


It therefore doesn’t brick my Mac unless I connect one of my external drives, which I generally do.


Please fix this and release as soon as possible. I can so easily reproduce this problem. No system process should brick my system.

Nov 13, 2018 10:41 AM in response to The Popper

Hey, The Popper, I think for that to work on an external drive, you'd need to modify the "find ~/Movies" portion.


Try this (where you change EXT HD NAME to whatever your hard drive name is -- if you don't know, open Disk Utility and it will list it there)...


find "/Volumes/EXT HD NAME" -name "*.mp4" | while read f ; 
do xattr -d com.apple.ResourceFork "$f" ;
done

Nov 30, 2018 3:58 AM in response to j.birkenmaier

Hi,



I've got the same issue. My 2017 iMac with 16GB RAM 500GB SSD and Radeon 580 freeze when loading an folder within custom fileicons. I've tried to disabled firewall, start in save mode, restart Finder - but the issue still occurs.



Is there any workaround, like restart database, copy icon-database from High Sierra mac?



Thanks a lot - and Apple please: Solve this bug.

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.

macOS Mojave - iconservicesagent misbehaving again

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