My Mail app began crashing yesterday -- a few days after upgrading to Mountain Lion. I posted the crash dump, but no resolution yet.
It crashes right away on starting up the app.
Today, I noticed the following Console message -- it appears every time I click on the Mail app:
7/31/12 10:34:12.815 AM Mail: -[ABAddressBook sharedAddressBook] Error: The AddressBook datafile is a directory!
I'm hoping someone on these forums can figure out the issue/resolution from this clue.
@Sanjaya @Daniel @Happy
I had the same problem and I managed to fix my problem. I put my info here :-
But basically I just moved the following directory to a backup and let Mail recreate a new one. Please be aware that this fix just refeshes your Mail, i.e. you'll need to readd your accounts and if you pop your mail, then I'm not certain if you can re-import them back in :-
More specifically it was the following file (or some other file in the same directory?) that mattered :-
/Users/sean/Library/Containers/com.apple.mail/Data/Library/Saved Application State/com.apple.mail.savedState/data.data
Maybe if you want to try to save your popped mail, you could try just moving the com.apple.mail.savedState away and leave the parent directory alone?
Anyhow, give this a shot to see if it works.