You are here: Home → Forum Home → The Mac Observer Forums → Mac Geek Gab Crew → Thread
Mail Crashes After 10.7.4 to 10.8.2 upgrade
-
I took the plunge to Mountain Lion a couple of days ago, and Mail crashes pretty regularly. It typically crashes twice, then will run for a while, then crash. There’s quite a few people having crash problems with various apps . If you search “10.8.2 crash”. on Apple’s Support Community, there’s a LOT of posts.
Everything went smoothly during the installation. The very first time I opened Mail it quit and generated an error report (to Apple). It quits randomly when starting. It might quit on two tries then start up OK. Once it’s running, it generally runs OK, but it has quit withou me even sitting at the computer every day since 9/22 when I upgraded. I verified the disk with Disk Utilities an it said eveything was OK. I repaired some disk permissions (mostly related to printer stuff).
It generates a crash log virtually every time I start Mail and on each subsequent crash that gets sent to Apple. They must be flooded with them by now.
I’m on a mid 2010 iMac.
Here’s some log info for the most recent crash when I started Mail today.
9/22/12 9:53:49.946 AM Mail[284]: Using V2 Layout
9/22/12 9:53:55.901 AM com.apple.SecurityServer[21]: Session 100010 created
9/22/12 9:54:01.678 AM WindowServer[100]: CGXDisableUpdate: UI updates were forcibly disabled by application “Mail” for over 1.00 seconds. Server has re-enabled them.
9/22/12 9:54:01.694 AM WindowServer[100]: reenable_update_for_connection: UI updates were finally reenabled by application “Mail” after 1.02 seconds (server forcibly re-enabled them after 1.00 seconds)
9/22/12 9:54:04.625 AM librariand[286]: MMe quota status changed: under quota
9/22/12 9:54:06.339 AM Mail[284]: An uncaught exception was raised
9/22/12 9:54:06.340 AM Mail[284]: -[ABRecord setValue: ‘(
“2011-11-09 03:38:36 +0000”,
“2011-11-10 01:29:17 +0000”,
“2011-11-10 03:58:20 +0000”,
“2012-01-27 04:00:24 +0000”,
“2012-09-22 05:25:09 +0000”
)’ forKey: ‘MailLastDates’] invalid value
9/22/12 9:54:06.340 AM Mail[284]: (
0 CoreFoundation 0x00000001119740a6 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00000001116763f0 objc_exception_throw + 43
2 CoreFoundation 0x0000000111973e7c +[NSException raise:format:] + 204
3 AddressBook 0x000000010f72bf88 -[ABRecord setValue:forKey:] + 116
4 Message 0x00000001109539a3 __42-[MFRecentsManager _updateRecentsForKeys:]_block_invoke_0 + 1147
5 Foundation 0x0000000111ceda7c -[NSBlockOperation main] + 124
6 Foundation 0x0000000111cc3986 -[__NSOperationInternal start] + 684
7 Foundation 0x0000000111ccb1a1 __block_global_6 + 129
8 libdispatch.dylib 0x000000011390af01 _dispatch_call_block_and_release + 15
9 libdispatch.dylib 0x00000001139070b6 _dispatch_client_callout + 8
10 libdispatch.dylib 0x00000001139081fa _dispatch_worker_thread2 + 304
11 libsystem_c.dylib 0x000000011399ecab _pthread_wqthread + 404
12 libsystem_c.dylib 0x0000000113989171 start_wqthread + 13
)
9/22/12 9:54:06.341 AM Mail[284]: *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[ABRecord setValue: ‘(
“2011-11-09 03:38:36 +0000”,
“2011-11-10 01:29:17 +0000”,
“2011-11-10 03:58:20 +0000”,
“2012-01-27 04:00:24 +0000”,
“2012-09-22 05:25:09 +0000”
)’ forKey: ‘MailLastDates’] invalid value’
*** First throw call stack:
(
0 CoreFoundation 0x00000001119740a6 __exceptionPreprocess + 198
1 libobjc.A.dylib 0x00000001116763f0 objc_exception_throw + 43
2 CoreFoundation 0x0000000111973e7c +[NSException raise:format:] + 204
3 AddressBook 0x000000010f72bf88 -[ABRecord setValue:forKey:] + 116
4 Message 0x00000001109539a3 __42-[MFRecentsManager _updateRecentsForKeys:]_block_invoke_0 + 1147
5 Foundation 0x0000000111ceda7c -[NSBlockOperation main] + 124
6 Foundation 0x0000000111cc3986 -[__NSOperationInternal start] + 684
7 Foundation 0x0000000111ccb1a1 __block_global_6 + 129
8 libdispatch.dylib 0x000000011390af01 _dispatch_call_block_and_release + 15
9 libdispatch.dylib 0x00000001139070b6 _dispatch_client_callout + 8
10 libdispatch.dylib 0x00000001139081fa _dispatch_worker_thread2 + 304
11 libsystem_c.dylib 0x000000011399ecab _pthread_wqthread + 404
12 libsystem_c.dylib 0x0000000113989171 start_wqthread + 13
)
Like (0) ReplySignature
pbg
-
Hi Paul—A few things to check.
First, quit Mail and then try looking in [home]/Library/Mail for a “Bundles” folder (you can get to [home]/Library by holding down Option while clicking on the FInder’s “Go” menu). If there’s anything in there, try removing it (perhaps just move it to your desktop) and then start Mail again. The contents of “Bundles” are Mail plug-ins, and it’s entirely possible you’ve got something in there that’s throwing the new build of Mail for a loop.
If that doesn’t help, it’s also possible you’ve got a damaged Mail index. You can clean that up with something like Onyx, or if you’re relatively comfortable with launching Terminal, you can issue the following command (again, be sure Mail is not running):
sqlite3 ~/Library/Mail/V2/MailData/Envelope\ Index vacuumWe posted an article about cleaning up and rebuilding Apple Mail data last year, too, with these instructions in it.
If THAT doesn’t help… let us know. I or someone else here in the MGG Crew will chime in for sure.
[ Edited: 27 September 2012 03:55 PM by Dave Hamilton ]Signature
-Dave Hamilton / The Mac Observer / Mac Geek Gab / Dave on Twitter
When you find a big kettle of crazy, it’s best not to stir it. -
Thanks. I’ll give that stuff a try.
It looked like it found invalid Mail Data:
9/22/12 9:54:06.341 AM Mail[284]: *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[ABRecord setValue: ‘(
“2011-11-09 03:38:36 +0000”,
“2011-11-10 01:29:17 +0000”,
“2011-11-10 03:58:20 +0000”,
“2012-01-27 04:00:24 +0000”,
“2012-09-22 05:25:09 +0000”
)’ forKey: ‘MailLastDates’] invalid value’
*** First throw call stack:
(
0 CoreFoundation 0x00000001119740a6 __exceptionPreprocess + 198Signature
pbg
-
There wasn’t a Bundles sub-folder.
I tried the Terminal command above, but it didn’t work:
Paul-Goodwins-iMac-i3:~ pgoodwin1$ sqlite3 ~/Library/Mail/V2/MailData/Envelope\ Index vacuum index
sqlite3: Error: too many options: “index”
Use -help for a list of optionsI’m not too skilled at all with the command line interface, so I didn’t know which help it was telling me to look at
I took the following action:
- I rebuilt every mailbox (all 74 of them), one at a time. I did both the iCloud mailboxes and the “On My Mac” mailboxes
- I archived all the folders I had on my iMac (I had already copied all of them over to iCloud) then deleted nearly every archive folder on the Mac, keeping only the non-iCloud Mail inboxes, Sent items, Trash, and a couple of archives without much in them.I’ll see if things improve as far as crashing. It hasn’t crashed while running since I did all that. And I tried starting Mail 5 times in a row - and it didn’t crash. I’ll post back with a status after a few hours of use and non-use .
Signature
pbg
-
Sounds great, Paul. And you’re right, it seems like we don’t have to type ‘index’ at the end of that command anymore in Mountain Lion (in fact, as you found, it doesn’t work). I’ve updated the original reply with that correction now, too.
Please do keep us posted.
Signature
-Dave Hamilton / The Mac Observer / Mac Geek Gab / Dave on Twitter
When you find a big kettle of crazy, it’s best not to stir it. -
I sure will
Signature
pbg
-
I had some really old messages in one of my active online archive sub-folders - like from 2000-2001. Mail wouldn’t move some messages because of the way their header info was. It wouldn’t move others because the body of the messages had stuff missing (wasn’t fully downloaded from the mail server or some website where some graphic was maybe-that didn’t exist anymore ???). Most of them were receipts from various website purchases. Ironically, some of the ones giving me problems were very old iTunes receipts. haha
my penalty for saving receipts for 12 years was this mess.
Signature
pbg
-
What does “sqlite3 ~/Library/Mail/V2/MailData/Envelope\ Index vacuum ” actually do?
Signature
pbg
-
Mail has other problems making it crash. When I did the 10.8.2 upgrade, my Mail Accounts weren’t right after the upgrade-they wouldn’t work. I got my non-iCloud POP mail accounts set up and working fine. But setting up the iCloud account in Mail after the upgrade has been a nightmare. I tried setting it up the same as it was in 10.7.4, but just finding the right name for the iCloud outgoing server is horrid. The choices in the server list always come up as something like iCloud SMTP (Offline), and it won’t work. The name you use for the outgoing server on the iPad is just plain “iCloud”. But that doesn’t work in Mac Mail. You can do the Connection Doctor and see that the iCloud server is there and running (green dot next to it) but in the account setup there’s no iCloud outgoing server in the list that doesn’t say (Offline) after it. and messages get stuck in the outbox. Mail crashed once after I deleted a message stuck in the Outbox.
Is there an iCloud Mail Account setup procedure somewhere for 10.8.2 Mail that is clear and accurate and foolproof?
I have never had this much trouble setting up a mail account before. JAHEEZUS. When I get it to work, it seems like it’s an accident, like there’s no reason for it to have started working given what I changed. It seems like you need to wait some long period of time after making the change it iCloud mail setups before it actually works according to your setup change.
I had to uncheck the ” Use Only This Server” under the iCloud Outgoing Server choice.
[ Edited: 27 September 2012 05:38 PM by Paul Goodwin ]Signature
pbg
-
I still haven’t gotten Mail to quit crashing. There’s a post on Apple’s OS X Mountain Lion Support forum that proposes a fix. I haven’t tried it yet, but I guess I will since nothing else seems to be working.
https://discussions.apple.com/message/19184676#19184676#19184676
Signature
pbg
-
I had a different kind of crash issue that I managed to solve. I cleaned up my mail box envelop files (rebuilt) them with Onyx last thursday night as I left for work and restarted my computer with no problems friday. I used mail all day then logged out on friday. Monday morning when I logged in Mail crashed at launch. My mail focus was to try to get it back which I did with some help from the forum notes. What solved the problem was going into Library/Containers and pulling out the folder com.apple.mail to the desktop and then when I relaunched mail everything worked and I assume the corrupted file was rebuilt.
So now that I am okay can anyone tell me what was wrong and I tried to rebuild the envelope index file in /Library/mail from the command line with no success.
If deleting the containers directory did not work my plan was to run onxy again and try to rebuild my mail envelop directory and if that did not work reinstall 10.8.2.
-David
Below is the crash report from console.Process: Mail [5557]
Path: /Applications/Mail.app/Contents/MacOS/Mail
Identifier: com.apple.mail
Version: 6.2 (1499)
Build Info: Mail-1499000000000000~1
Code Type: X86-64 (Native)
Parent Process: launchd [172]
User ID: 501Date/Time: 2013-02-04 10:23:47.194 -0500
OS Version: Mac OS X 10.8.2 (12C60)
Report Version: 10
Sleep/Wake UUID: 6A52D98C-3A55-4180-BC45-199B4E57E030Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000VM Regions Near 0:
—>
__TEXT 0000000103f2d000-00000001042cd000 [ 3712K] r-x/rwx SM=COW /Applications/Mail.app/Contents/MacOS/MailThread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_c.dylib 0x00007fff8bfc3650 strlen + 16
1 com.apple.AddressBook.framework 0x00007fff929a0888 ABInitFileLock + 34
2 com.apple.AddressBook.framework 0x00007fff9299d07c -[ABAddressBook nts_InitDefaultContactManager] + 250
3 com.apple.AddressBook.framework 0x00007fff9299ce6b +[ABAddressBook nts_SharedAddressBook] + 82
4 com.apple.AddressBook.framework 0x00007fff9299cd7a +[ABAddressBook nts_CreateSharedAddressBook] + 49
5 com.apple.AddressBook.framework 0x00007fff9299c0c7 +[ABAddressBook sharedAddressBook] + 69
6 com.apple.AddressBook.framework 0x00007fff929be2d1 +[ABAddressBook addressBookWithDatabaseDirectory:options:] + 60
7 com.apple.MessageFramework 0x00007fff91a8ee5a +[MailAccount _setMailAccounts:calledFromSync:reloadingFromPreferences:] + 2595
8 com.apple.MessageFramework 0x00007fff91a8a1e4 +[MailAccount reloadMailAccounts] + 61
9 com.apple.MessageFramework 0x00007fff91a8a192 +[MailAccount _mailAccountsIncludingUnknownTypes] + 29
10 com.apple.MessageFramework 0x00007fff91a8a0b6 +[MailAccount mailAccounts] + 61
11 com.apple.MessageFramework 0x00007fff91a9123f +[MailAccount haveAccountsBeenConfigured] + 47
12 com.apple.mail 0x0000000103f30dfb 0x103f2d000 + 15867
13 com.apple.CoreFoundation 0x00007fff8de7c47a _CFXNotificationPost + 2554
14 com.apple.Foundation 0x00007fff94113846 -[NSNotificationCenter postNotificationName:object:userInfo:] + 64
15 com.apple.mail 0x0000000103f2f7a5 0x103f2d000 + 10149
16 com.apple.AppKit 0x00007fff89bf860d -[NSApplication _postDidFinishNotification] + 292
17 com.apple.AppKit 0x00007fff89bf8346 -[NSApplication _sendFinishLaunchingNotification] + 216
18 com.apple.AppKit 0x00007fff89bf5532 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 566
19 com.apple.AppKit 0x00007fff89bf512c -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 351
20 com.apple.Foundation 0x00007fff9412d12b -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 308
21 com.apple.Foundation 0x00007fff9412cf8d _NSAppleEventManagerGenericHandler + 106
22 com.apple.AE 0x00007fff89895b48 aeDispatchAppleEvent(AEDesc const*, AEDesc*, unsigned int, unsigned char*) + 307
23 com.apple.AE 0x00007fff898959a9 dispatchEventAndSendReply(AEDesc const*, AEDesc*) + 37
24 com.apple.AE 0x00007fff89895869 aeProcessAppleEvent + 318
25 com.apple.HIToolbox 0x00007fff894558e9 AEProcessAppleEvent + 100
26 com.apple.AppKit 0x00007fff89bf1916 _DPSNextEvent + 1456
27 com.apple.AppKit 0x00007fff89bf0ed2 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 128
28 com.apple.AppKit 0x00007fff89be8283 -[NSApplication run] + 517
29 com.apple.AppKit 0x00007fff89b8ccb6 NSApplicationMain + 869
30 libdyld.dylib 0x00007fff908a87e1 start + 1Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff928f1d16 kevent + 10
1 libdispatch.dylib 0x00007fff8fa76dea _dispatch_mgr_invoke + 883
2 libdispatch.dylib 0x00007fff8fa769ee _dispatch_mgr_thread + 54Thread 2:
0 libsystem_kernel.dylib 0x00007fff928f16d6 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8bfd7eec _pthread_workq_return + 25
2 libsystem_c.dylib 0x00007fff8bfd7cb3 _pthread_wqthread + 412
3 libsystem_c.dylib 0x00007fff8bfc2171 start_wqthread + 13Thread 3:
0 libsystem_kernel.dylib 0x00007fff928f16d6 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8bfd7eec _pthread_workq_return + 25
2 libsystem_c.dylib 0x00007fff8bfd7cb3 _pthread_wqthread + 412
3 libsystem_c.dylib 0x00007fff8bfc2171 start_wqthread + 13Thread 4:
0 libsystem_kernel.dylib 0x00007fff928f16d6 __workq_kernreturn + 10
1 libsystem_c.dylib 0x00007fff8bfd7eec _pthread_workq_return + 25
2 libsystem_c.dy

