After updating to Snow Leopard, Mail crashed right away after upgrading its database. I was able to disable my accounts manually by editing ~/Library/Preferences/com.apple.mail.plist. And that got Mail to start without crashing. I then re-enabled my pop account and that worked. But I cannot re-enabled any IMAP account, even Mobileme, without an immediate crash.
The crash reports show similar information usually looking like this:
Application Specific Information:
-[iToolsAccount _synchronizeAccountWithServerWithUserInput:]
-[MailApp _tellSyncServicesToRegisterAndSync]
-[iToolsAccount _fetchUnreadCountsCheckForNewMessages:]
or like this:
Application Specific Information:
-[MetadataManager _enableAllToDoObjectsForAccount:]
so I'm guessing it has something to do either syncing and/or to-do notes.
Snow Leopard also removed all my calendars after the upgrade. I tried doing a backup from my PowerPC Mac mini but the import failed miserably without a clear message apart from "Import failed". Fortunately I was able to get my calendars back with a Mobileme sync.
I also experienced a few issues with Address Book but was able again to get it back by importing it from the Mac mini.
Minor upgrade maybe, but it has so far been a huge headache for me.
I'm still looking for a solution for the Mail crash. Let me know if you have a suggestion. I have tried the fixes posted by other people, but to no avail.
I just upgraded my macpro to snow leopard and Mail is crashing. upon the first open it updated mail database and then crashed 5 seconds later. now it crashes immediately. this is no good. i have a me.com account set as an IMAP.
Okay, after a day and half of debugging, I finally got Mail to work 🙂
I took me this long to figure it out, and a lot of sweat too (because it's hot here in California).
And so it turns out I had some corrupted certificates in my keychain, that the keychain first aid did not detect and that I had to delete myself.
Still seems to me that this Snow Leopard has a few bad apples left in it. This has been the worst upgrade I've experienced so far. And my first Mac was a Mac 128K... maybe I had been lucky so far?
how does one find corrupted keychain certificates if the keychain first aid does not? keychain first aid did find a problem, but fixing it did not solve my Mail crash upon trying to view a message issue.
none of the posted fixes is working for me and i am not sure what to look for in my debug report. should i post it here?
Application Specific Information:
-[MessageContentController _fetchContentsForMessage:fromStore:withViewingState:]
abort() called
* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '
* -[NSCFDictionary setObject:forKey:]: attempt to insert nil value (key: Unique ID)'
I upgraded to snow leopard recently and despite all recommendations by other forums, I installed snow leopard over leopard without doing a fresh install.
I'm having the same issues as the chamois even after I have erased keychain's associated with mail app. Mail app seems to crash while trying to fetch new mail. Is there anyway to remove mail accounts without opening mail app or is there a way to get mail app to not check for new mail as soon as it opens?
cskemp,
What is needed is the text of the thread that crashed, in your case "Crashed Thread: 12". Look down the log file and find this thread. Then copy it in your post. It may help understand what's going wrong. At the same time, it could somewhat non-specific and only decipherable by Apple engineers.
jaspersone,
Yes you can disable accounts by editing ~/Library/Preferences/com.apple.mail.plist. First make sure Mail is closed (but I guess it is if it keeps crashing). Then Double-click on the file, and look for the entry call "MailAccounts". You will a list of items. Each one corresponds to a mail account, some may be disabled. To disable an account, you will need to add an item called "isActive" of type string and with value "NO".
i think i have finally sorted it out.
a recap:
first, mail was crashing immediately after starting. i found in another forum the following procedure that i tried. i moved my ~/library/mail out of the library. started mail, mails asked to import, i moved the mail folder back into its location, i clicked ok on import, mail then 're-imported' my mail folder.
the result was that mail would then start, retrieve messages, and stay open, but upon clicking on any message at all, attachments or not, it would crash.
i rebuilt my messages with the rebuild command under the message menu. nope, nothing changed.
i found a post about issues with address book smart groups, i had no address book smart groups, but i deleted all my groups just in case. nope. still crashing.
then i backed up my mail folder and preferences files and deleted preferences and restarted. nope, didn't change.
then i deleted my mail folder and preferences files completely, re-entered my IMAP settings and waited for mail to resync the 4,000+ emails. nope, still crashed when trying to view ANY email.
then, still searching for something, i read another post about the smart groups in address book again. so this time, i deleted the ~/library/application support/address book/AddressBook-v22.abcddb file.
and Voila! Mail is finally working! really. even though i had no groups whatsoever in address book, somehow this file was a problem.
so here is the last crash log, maybe a correlation can be made...
i have the same issue with Mail. I tried all of the above (including the AdressBook Prefs and disabling all accounts by editing the mail.com Prefs). Nothing helped. Any more ideas? This is totally unbearable...
Date/Time: 2009-09-04 00:21:41.049 +0200
OS Version: Mac OS X 10.6 (10A432)
Report Version: 6
Interval Since Last Report: 31255 sec
Crashes Since Last Report: 9
Per-App Interval Since Last Report: 65 sec
Per-App Crashes Since Last Report: 9
Anonymous UUID: C3B82FAD-B0A3-4CF6-87F2-32E47E20411E
i am not an expert at all, but reading your crash report it seems to me that you are having an issue with either the RSS feeds, or a message somewhere. i would completeley ditch the RSS folder in ~/library/Mail/, and if that doesn't work, ditch the whole mail folder. and by ditch i mean, move it somewhere else and restart. mail will recreate new copies.
i don't recommend deleting the folder in case you haven't backed up.
I had the same problem (I only found this post after tracking down the problem independently). My crash report like yours led me to my keychain where I was able to ascertain that certain "corrupt" certificates which had been used to sign or encrypt emails were causing Mail to crash, (KERN
PROTECTIONFAILURE). They would also crash Keychain Access when individually selected.
Once I removed the offending certificates all was well again. Only problem now is that if I open any older emails that have been signed with these cert's they are re-added to my keychain starting the process over again. All things being equal I'm going to use my other machine (still on 10.5.8) to try and isolate and quarantine the offending emails for now and hope a fix turns up down the road.
This is clearly a bug in Leopard. I'm guessing it's a bug in the security framework used by both the Keychain and Mail. I hope Apple is fixing this for your case. My certificates were expired, so I just removed them. And I have sent signed emails, but never encrypted ones. FYI, I got my (free) certificates from www.thawte.com.
Agreed. I'll be filing a bug report as I use the encryption certificates for occasional financial communications with my brother who lives in East Asia. I'm worried though about how quickly something like this might get fixed as it is something of an edge case. Just to clarify, were the expired certificates that were crashing the security framework issued by Thawte or by someone else? Mine were self created using Keychain Access and DotMac (now mobile me).