com.apple.IconServicesAgent: Failed to write file

Discussion in 'OS X Mavericks (10.9)' started by jonsuh, Oct 16, 2013.

  1. macrumors member

    Joined:
    Sep 1, 2010
    #1
    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.
     

    Attached Files:

  2. macrumors newbie

    Joined:
    Aug 13, 2011
    #2
    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 ...

    [​IMG]

    Any help would be appreciated!
     
  3. Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #3
    Did you try rebooting to see if the messages stopped?
     
  4. macrumors newbie

    Joined:
    Oct 16, 2013
    #4
    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.
     
  5. macrumors newbie

    Joined:
    Oct 25, 2013
    #5
    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
     
  6. macrumors newbie

    Joined:
    Dec 22, 2011
    Location:
    Appleton, Wisconsin, USA
    #6
    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!
     
  7. macrumors newbie

    Joined:
    Oct 26, 2013
    #7
    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.
     

Share This Page