email crash, High Sierra, NSArrayM ObjectAtIndexed Subscript

I have already rebuilt my mailbox, deleted plists, and deleted envelope index files to no avail.


Crash happens at any time - when sending an email, when deleting emails, and today when just writing an email.


Any suggestions are appreciated. Thank you.

MacBook Pro 13", macOS 10.12

Posted on Apr 9, 2020 4:05 PM

Reply

Similar questions

16 replies

May 11, 2020 11:53 PM in response to TonyCr46

Your 3rd party apps may be creating a hole in the mail system resulting in a crash. Security Update 2020-002 High Sierra was the update that was put out to address the issue with mail. It seems like one of those 3rd party apps (probably the spam one) is causing the crash because the send/receive process runs when you send a email or when you open the mail app. So, when you send an email the receive process runs and the spam filter sounds like it crashes. You may want to leave it uninstalled.

Apr 22, 2020 10:59 PM in response to BDAqua

I've been waiting to write until a good test period of time has passed. No crashes in about 7 days. What I did was, first, a Force Quit of email. Re-opened and Disabled each of the two email accounts one at a time. Waited 5 or 10 minutes, then "Enabled". Hope I won't be eating my words, but so far, so good. Can you think of any logic as to why this would have helped? Could it have cleared a transaction that was stuck in the queue?


Thanks BDA

Apr 27, 2020 7:18 PM in response to BDAqua

Still getting the crash. This time I'm getting a message "Mail quit unexpectedly due to Sentry plugin". Not sure what this means, but here's the first part of the report:


Process: Mail \[647]

Path: /Applications/Mail.app/Contents/MacOS/Mail

Identifier: com.apple.mail

Version: 11.5 (3445.9.5)

Build Info: Mail-3445009005000000\~1

Code Type: X86-64 (Native)

Parent Process: ??? \[1]

Responsible: Mail \[647]

User ID: 501


PlugIn Path: /Library/Mail/\*/Sentry.framework/Versions/A/Sentry

PlugIn Identifier: io.sentry.Sentry

PlugIn Version: 4.5.0 (4.5.0)


Apr 10, 2020 11:36 AM in response to serraway

Thanks for your response. I tried Safe Mode and also checked my paths on Mailbox behaviors. But it just happened again. This time, I was merely writing an email when it crashed. Here's part of the crash report. Any thoughts?


Application Specific Information:

*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndexedSubscript:]: index 9223372036854775807 beyond bounds [0 .. 2]'

terminating with uncaught exception of type NSException

abort() called


Application Specific Backtrace 1:

0 CoreFoundation 0x00007fff31767a4b __exceptionPreprocess + 171

1 libobjc.A.dylib 0x00007fff589f4c76 objc_exception_throw + 48

2 CoreFoundation 0x00007fff317a8cd4 _CFThrowFormattedException + 202

3 CoreFoundation 0x00007fff31788ce0 -[__NSArrayM removeObjectsInRange:] + 0

4 IMAP 0x00007fff4b31183a -[IMAPMailboxSyncState messageNumberForUID:orRange:] + 175

5 IMAP 0x00007fff4b320972 __93-[IMAPNetworkTaskHandler connection:receivedUnhandledUntaggedResponse:forMailbox:forCommand:]_block_invoke + 45

6 Foundation 0x00007fff338226fc __NSIndexSetEnumerate + 633

7 IMAP 0x00007fff4b320850 -[IMAPNetworkTaskHandler connection:receivedUnhandledUntaggedResponse:forMailbox:forCommand:] + 1189

8 IMAP 0x00007fff4b30173e -[IMAPConnection _recordUntaggedResponse:forCommand:exists:receivedExists:fromIDLE:] + 4212

9 IMAP 0x00007fff4b2fbca3 -[IMAPConnection _copyNextTaggedOrContinuationResponseForCommand:exists:receivedExists:] + 1038

10 IMAP 0x00007fff4b30031a -[IMAPConnection _responseFromSendingCommand:receivedExists:] + 1386

11 IMAP 0x00007fff4b2fb5f1 -[IMAPConnection executeClientCommand:] + 60

12 IMAP 0x00007fff4b2fb45b -[IMAPConnection prepareAndExecuteCommand:] + 220

13 IMAP 0x00007fff4b32da94 -[IMAPServerInterface executeClientCommand:] + 1195

14 IMAP 0x00007fff4b32ba38 -[IMAPServerInterface expunge] + 56

15 IMAP 0x00007fff4b33b235 __45-[IMAPTaskManager expungeMailbox:ifSelected:]_block_invoke + 44

16 IMAP 0x00007fff4b33874b __89-[IMAPTaskManager _doCommandBlockForMailbox:block:async:ifSelected:priority:description:]_block_invoke_2 + 128

0x00007fff337f584c __NSOQSchedule_f + 342

25 libdispatch.dylib 0x00007fff595d4db8 _dispatch_client_callout + 8

26 libdispatch.dylib 0x00007fff595e7e81 _dispatch_continuation_pop + 472

27 libdispatch.dylib 0x00007fff595df733 _dispatch_async_redirect_invoke + 703

28 libdispatch.dylib 0x00007fff595d69a9 _dispatch_root_queue_drain + 515

29 libdispatch.dylib 0x00007fff595d6755 _dispatch_worker_thread3 + 101



Thread 0:: Dispatch queue: com.apple.main-thread

0 libsystem_kernel.dylib 0x00007fff5975520a mach_msg_trap + 10

1 libsystem_kernel.dylib 0x00007fff59754724 mach_msg + 60

2 com.apple.CoreFoundation 0x00007fff316e22c5 __CFRunLoopServiceMachPort + 341

3 com.apple.CoreFoundation 0x00007fff316e1617 __CFRunLoopRun + 1783

4 com.apple.CoreFoundation 0x00007fff316e0c93 CFRunLoopRunSpecific + 483

5 com.apple.HIToolbox 0x00007fff309cbd96 RunCurrentEventLoopInMode + 286

6 com.apple.HIToolbox 0x00007fff309cbb06 ReceiveNextEventCommon + 613

7 com.apple.HIToolbox 0x00007fff309cb884 _BlockUntilNextEventMatchingListInModeWithFilter + 64

8 com.apple.AppKit 0x00007fff2ec7ba73 _DPSNextEvent + 2085

9 com.apple.AppKit 0x00007fff2f411e34 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044

10 com.apple.AppKit 0x00007fff2ec70885 -[NSApplication run] + 764

11 com.apple.AppKit 0x00007fff2ec3fa72 NSApplicationMain + 804

12 libdyld.dylib 0x00007fff5960e015 start + 1


Apr 10, 2020 6:11 PM in response to BDAqua

I wondered about the Objects too.

Okay - I will use my icloud email via browser for the next two days and let you know.

Changed my Drafts to 'On my mac'.

I also have a gmail account that I view through my inbox. Do you think I should delete the Gmail as a sub-folder just in case it is a problem? I only use it for my Apple ID.


Thanks so much!

Apr 29, 2020 6:19 PM in response to TonyCr46

Just got a new crash, but for a different reason (not the Sentry plugin). Here's the initial crash log:


Process: Mail [63457]

Path: /Applications/Mail.app/Contents/MacOS/Mail

Identifier: Mail

Version: 11.5 (3445.9.5)

Code Type: X86-64 (Native)

Parent Process: ??? [1]

Responsible: Mail [63457]

User ID: 501


Date/Time: 2020-04-30 00:20:04.843 +0700

OS Version: Mac OS X 10.13.6 (17G12034)

Report Version: 12

Anonymous UUID: 48776F8F-9D74-BC14-D1BB-0688AFA39CC6



Time Awake Since Boot: 300000 seconds


System Integrity Protection: enabled


Crashed Thread: 10 Dispatch queue: IMAPNetworkTaskHandler queue (QOS: BACKGROUND)


Exception Type: EXC_CRASH (SIGABRT)

Exception Codes: 0x0000000000000000, 0x0000000000000000

Exception Note: EXC_CORPSE_NOTIFY


Any thoughts?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

email crash, High Sierra, NSArrayM ObjectAtIndexed Subscript

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.