1

I'm running into an identical problem with Mail on two separate systems, both starting immediately after upgrading from a long-working Yosemite to the new El Capitan and persisting through the latest 10.11.2 version. The systems have at least 16GB of memory and well over 200GB of free disk space, no other apps are running, nor does Mail have any extensions installed.

The problem manifests with Apple's Mail, even while unattended, at some point spontaneously popping up with this error in a dialog box:

There is a problem with your mailboxes.

Try clicking Quit and then opening Mail again. If this message reappears, click Quit and Rebuild Index. The next time you open Mail, it will import your messages.

The only options are Quit and Quit and Rebuild Index. Neither resolves the problem for future invocations.


Connection Doctor shows all connections (SMTP and IMAP) as green, in fact the Show Details panel continues to show what looks like active and good communication even after the model error box appears, this includes "OK Still here" idle responses.

Activity monitor usually continues, but sometimes halts while Download Messages. Mail will often peg at 99-100% CPU.

Console will issue these messages, but nothing more descriptive:

  1. Mail: Error accessing account, (null)
  2. kernel: process Mail[###] thread ##### caught buring CPU!; EXC_RESOURCE suppressed due to audio playback
  3. com.apple.xpc.launchd: (com.apple.xpc.launchd.oneshot.0x10000005.Mail[###]) Service exited with abnormal code: 1

Note there is no sound being played, so I don't know what the audio playback would be.


I have tried:

Can anyone suggest something else to look at or try?


An interesting possible clue:

In Mail's Connection Doctor it is possible to check Log Connection Activity, and then Show Logs. In the YYYY-MM-DD_Library.log file, I'm seeing something that smells highly suspicious.

Mail[###] <Debug>: SQLite error 7 (out of memory): Error preparing statement for query SELECT ROWID, remote_id, flags FROM messages WHERE remote_mailbox = (SELECT ROWID from mailboxes WHERE url = ?) AND remote_id IN ( ...a huge list of integers, at well over a hundred thousand, appear here ... ) ORDER BY remote_id

It is true that the server this connects to has multiple years of messages, though they are spread across about three dozen mail folders.

Open to ideas to try.

2
  • Have confirmed the same mailbox works just fine with Yosemite's Mail. It also works fine using the third party Postbox application on El Capitan. Commented Dec 20, 2015 at 5:50
  • * have OS10.8.7 and have the same problem, but worse as mail just does not load.* Commented Oct 14, 2016 at 19:17

1 Answer 1

1

I too am having this issue since upgrading to El Capitan in October. It is quite frustrating as any email being composed is lost once the error dialog box hits.

The only partial work around I have found is deleting the log files found at: \library\containers\com.apple.mail\Data\library\logs\Mail*.log

Mail seems to keep writing to these log files, using more and more ram in the process, until mail becomes unresponsive and the error dialog appears.

1
  • Fairly sure I cleared out the log files as part of the diagnostic process. Did erasing them resolve the problem for you? (I used Onyx, see above, to do that as well to no avail.) I'm curious of macOS resolves the problem. Commented Oct 16, 2016 at 1:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .