hang - Mail.app extremely slow on OS X 10.9 Mavericks

  • Corsin Pfister

    Since I updated to Mavericks two days ago on my late 2008 13-inch MacBook (first unibody aluminium), I have huge difficulties using Mail. When Mail is running, everything slows down extremely (I constantly see beach balls and spend most of the time waiting for any of my inputs showing an effect, not just in Mail but with everything). The activity monitor shows that "Mail" and "com.apple.internetaccounts" both have 90%+ under "% CPU", and most of the time Mail is "Not Responding". The Mail application doesn't show any window during maybe the first hour after trying to open it, and once I see the main window, everything is so slow that even opening an e-mail can - if it works at all - take a loooot of time. Two or three times, I even got a complete freeze, the cursor not moving anymore, the fans (which were running constantly before) shut down; the only thing I could do was holding the power button for five seconds.

    I have no firewall app running and have looked into my log file which is available here: http://s000.tinyupload.com/index.php?file_id=55665966095442984994

    When I force quit Mail and com.apple.internetaccounts, things run smoothly, so the problem seems to be limited to the Mail application. What might I be able to do to avoid having to force quit Mail and have it respond more smoothly and not hang up?

  • Answers
  • J.C.

    Thanks for uploading the Logfile. There are several entries which could describe the Problems, f.e.:

    25/10/13 4:29:58.408 pm WindowServer[125]   disable_update_timeout: UI updates were forcibly disabled by application "Mail" for over 1.00 seconds. Server has re-enabled them.
    25/10/13 4:30:12.256 pm WindowServer[125]   disable_update_likely_unbalanced: UI updates still disabled by application "Mail" after 15.00 seconds (server forcibly re-enabled them after 1.00 seconds). Likely an unbalanced disableUpdate call.


    25/10/13 4:36:30.089 pm WindowServer[125]   common_reenable_update: UI updates were finally reenabled by application "Mail" after 392.86 seconds (server forcibly re-enabled them after 1.00 seconds)
    25/10/13 4:37:26.568 pm com.apple.IconServicesAgent[437]    main Failed to composit image for binding VariantBinding [0x159] flags: 0x8 binding: FileInfoBinding [0x359] - extension: jpg, UTI: public.jpeg, fileType: ????.


    25/10/13 4:45:13.084 pm Mail[408]   xpc __securityd_create_connection_block_invoke got event: Connection interrupted


    25/10/13 4:45:21.796 pm com.apple.internetaccounts[463] An instance 0x7fcb64cef770 of class IMAPMailbox was deallocated while key value observers were still registered with it. Observation info was leaked, and may even become mistakenly attached to some other object. Set a breakpoint on NSKVODeallocateBreak to stop here in the debugger. Here's the current observation info:
    <NSKeyValueObservationInfo 0x7fcb64cf0620> (
    <NSKeyValueObservance 0x7fcb64cf0750: Observer: 0x7fcb64f28160, Key path: uidNext, Options: <New: NO, Old: NO, Prior: NO> Context: 0x12131544b, Property: 0x7fcb64cf05f0>

    Some of the entries describe Timeouts because of syncing errors. How to fix them?

    I would cleanup the Cache of the Mailaccount either by moving the Cache Folder or be deleting and recreating the IMAP-Account.

    If you want to cleanup the Cache you have to:

    1. Quit Mail
    2. got to ~/Library/Mail/V2
    3. Find the Folder for your IMAP-Account in the Folder "V2". It should be named something like "[email protected]"
    4. move the Folder for your IMAP-Account somewhere else, f.e. to the Desktop
    5. start Mail again. It should be syncing the Mails from your IMAP-Account to your Computer in a normal fashion.

    If that does not help you could try the second approach: deleting the IMAP-Account and recreating it.

    Try that and post your results please.

  • user1256923

    If you reinstated your mail from an older Mountain Lion (or previous) installation, you might have moved quite a lot of crud, which is incompatible with Mavericks.

    I once had a similar problem (What is com.apple.mail.plist and why was it slowing Mail down?), which I resolved removing a couple of plists. In general, you might want to:

    1. open console
    2. run Mail.app

    and see what console says about Mail.app. That would be my first port of call.

  • Wheat Williams

    What kind of email accounts is your copy of Mail checking? Are any of them Google GMail accounts? There is a well-documented situation whereby Apple Mail under Mavericks will automatically start downloading all your gigabytes of Google Gmail archives all over again, leaving you with duplicates of everything.

    What kind of network activity do you see while Mail is open? If there are massive downloads happening, this could be the culprit.

    Mail in Mavericks Changes the GMail Equation, TidBITS, 22 October 2013

  • Related Question

    Mavericks Finder hangs on tagging
  • Teo Sartori

    I'm having a problem with the new tagging feature in Mavericks and I have a feeling it might go deeper than just the tagging.

    The problem is this: When tagging anything on Mavericks the Finder becomes unresponsive for anything up to 15 seconds and beach-balls. I am using a Mac Pro Mid 2010 with 16GB RAM so power is not the issue.

    At first I thought the problem might have been due to having done an upgrade install of Mavericks, but after seeing tagging working fine on an upgraded Air and iMac I decided to try a clean install. Alas, the problem persisted.

    Since I was installing on a DIY Fusion Drive I had created back in the early days of Mountain Lion, that became my next suspect. To "quickly" test my theory I installed Mavericks on an external slow & tiny USB drive. Zero problems. Tagging was instantaneous and no beach balls in sight.

    So, it seemed likely to be one of the drives. First I tried installing Mavericks on a newly created Fusion Drive (using the same component drives; an OCR Vertex 3 and a regular WD HDD) from the Mavericks recovery partition terminal in the hope that a newer CoreStorage would fix things. Same problem.

    Next I tried the drives individually, but after having installed a fresh Mavericks on both (I know, tedious) and still having the problem I feel I am running out of options. Is it my SATA controller? And why just on the tagging?

    I have made a few Activity Monitor Spindumps which I'm hoping anyone with the knowledge & inclination could glean some information from.

    Any help is greatly appreciated. :/ Teo

    Spindumps: https://www.dropbox.com/s/d86hdy2xcq8jryy/Mavs%20Finder%20Tagging%20Spindump.txt


  • Related Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.