Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jonsuh

macrumors member
Original poster
Sep 1, 2010
50
0
Is anyone else experiencing this com.apple.IconServices: Failed to write file... error?

This occurs at random times and when it does, my CPU load spikes and my machine becomes extremely unstable (sometimes the screen blinks and jumps me to my login screen).

The only way to resolve this issue is to reboot.

Attached is the Console view and a detailed view of the message. As you can tell by the screenshots, even though it failed it continually keeps trying, 10 times a second.
 

Attachments

  • icon-services-agent-failed.jpg
    icon-services-agent-failed.jpg
    1.2 MB · Views: 1,271
  • icon-services-agent-failed-detailed.jpg
    icon-services-agent-failed-detailed.jpg
    224.4 KB · Views: 882

jadik

macrumors newbie
Aug 13, 2011
2
0
also seeing fail to write error: com.apple.IconServicesAgent

Jonsuh,
I'm seeing thousands of these errors a minute. In fact, the screenshot I've attached shows 4,000 of them in only 17 seconds! Have you made any progress determining the cause?

My log error appears to be very similar to yours:

10/19/13 4:01:35.234 AM com.apple.IconServicesAgent[11049]: Failed to write file ...

j9mxpg.png


Any help would be appreciated!
 

Threaded Bolt

macrumors newbie
Oct 16, 2013
4
0
Did you try rebooting to see if the messages stopped?

I have exactly the same problem, the com.apple.IconServicesAgent process goes over 200% CPU and blocks Finder operations.
But there is no need to reboot - after killing the process with the Activity Monitor things go back to normal.
 

ptsash

macrumors newbie
Oct 25, 2013
1
0
My solution

I simply manually created the directory where the .iscachebmp files are supposed to be stored (it does not yet exist!). Thereafter, the .iscachebmp files in that directory can be created by the system and hence the error messages will stop.
The directory to create looks something like this:
/var/folders/z_/g45rjf65131b4n254ktfmpch0000gp/T/com.apple.IconServices
 

bbelau

macrumors newbie
Dec 22, 2011
2
3
Appleton, Wisconsin, USA
Solved - Boot into Safe Mode!

This has been driving me crazy for a day and a half! My CPU was spiked from com.apple.IconServicesAgent, icons wouldn't appear in the Finder, and eventually, all the icons disappeared from the dock.

I tried Ptsash's previously mentioned folder creation solution, which didn't work for me. I also tried using the latest version of Cocktail to repair permissions and run its built in scripts to clear all the caches, restarted a few times, no change.

Finally, I tried rebooting in Safe Mode (hold the "Shift" key while starting up - don't let go until after the Apple logo appears). After waiting 20 minutes for it to boot up in Safe Mode, I was able to login and see my Finder and dock icons. After rebooting again (normally), everything is working fine - icons are appearing and CPU usage has been nice and low for a half hour.

Hope that helps!
 

zero0cool

macrumors newbie
Oct 26, 2013
1
0
My Solution

My solution turned out to be to increase the disk quota for the user which the process belonged to.
In the system.log, you'll see the PID of the process generating the errors:

Oct 26 19:27:45 host1 com.apple.IconServicesAgent[11064]: Failed to write file /var/folders/_8/8ktxyc7132n9b6_q1d8khytw0000gp/C/com.apple.IconServices/1

(11064 in this case)

ps awxu | grep 11064 will reveal the user name. When I checked the disk quota of this user, it had been exceeded.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.