13 Replies Latest reply: Jul 27, 2011 7:41 AM by Anton@Russia
armandsfromriga Level 1 Level 1 (0 points)

Yesterday upgrade Snow Leopardi to Lion. And first bug appears. Mail quits every 3 - 5 minutes. After that I make reinstall of system (clear instal) and import mail from manual backup (did not use time machine). And new problem with mail. As I haw more then 10 000 mails in my 3 accounts I use search function.  All the time I start tape letter “S” in mail search box, mail quits. words with letter “A” for example work.

What is the problem and how to fix it? Pleas help! It is weary important as I use my mail for work and reinstall of all system take to long that I can do it all the time until everything is working.


Mac OS X (10.7)
  • 1. Re: Lion Mail quit on search attempts.
    Desmond Foulger Level 1 Level 1 (0 points)

    Me too if I click on a link or attachment it unexpectedly quits.  I have emptied the relevant caches, deleted address book preferences and rebuilt all my account in boxes.  MacPro Early 2008 with 10.7 and everything up to date.  Obviously a bug as many people are experiencing this.  - Quick fix please apple

  • 2. Re: Lion Mail quit on search attempts.
    Julien Jalon Level 1 Level 1 (0 points)

    Can you:

     

    1) In Mail, go in Menu Window -> Previous Recipients

    2) Select all the recipients in there and hit "Remove From List"

    3) Just in case, relaunch Mail

  • 3. Re: Lion Mail quit on search attempts.
    Desmond Foulger Level 1 Level 1 (0 points)

    Yes I could and I did and relaunched mail.  I then clicked on the link in your E-Mail and it quit just the same.  Good try though - every little helps - I find the best way to find out what a thing is is to find out what it is not. Thanks again

  • 4. Re: Lion Mail quit on search attempts.
    Julien Jalon Level 1 Level 1 (0 points)

    Sorry Desmond, it was for armandsfromriga's problem with search.

  • 5. Re: Lion Mail quit on search attempts.
    Anton@Russia Level 1 Level 1 (0 points)

    Any ideas about quits? I have same problem. Quits every 2-3 min... Even if Mail is idle

  • 6. Re: Lion Mail quit on search attempts.
    armandsfromriga Level 1 Level 1 (0 points)

    Hi!

    Thank you all for answers and help.

    Find solution for my problems with mail quitting every 5 minutes and search problems by simply erasing all mail fails from User/Library/Preferences/ in Folder User/Library/Mail i delete all setting files except signature.

    Start up mail from 0 and all mail problems is gone.

    For me its work, hope it will help to others to.

  • 7. Re: Lion Mail quit on search attempts.
    armandsfromriga Level 1 Level 1 (0 points)

    P.S. Make back up for anny case!

  • 8. Re: Lion Mail quit on search attempts.
    Anton@Russia Level 1 Level 1 (0 points)

    Dear armandsfromriga, can you explain which files should I delete from User/Library/Preferences/ and from User/Library/Mail???

    And how can I make backup of my mails? I use TimeCapsule. Is it enough?

  • 9. Re: Lion Mail quit on search attempts.
    deivy Level 4 Level 4 (2,365 points)

    To all having problems with Mail:

     

    Go to Application-->Utilities folder and launch an application called "Console"

    In the upper right hand corner of this app there is a search field.

    Type Mail and see if you can get the right time interval where your mail crashed.

    Post that information.

    It is not a sure shot but might help others help you.

  • 10. Re: Lion Mail quit on search attempts.
    Anton@Russia Level 1 Level 1 (0 points)

    Hope this will enough and helps

    22.07.11 18:52:21,005          Mail          An uncaught exception was raised

    22.07.11 18:52:21,005          Mail          *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil

    22.07.11 18:52:21,006          Mail          (

              0   CoreFoundation                      0x00007fff9815b986 __exceptionPreprocess + 198

              1   libobjc.A.dylib                     0x00007fff8e374d5e objc_exception_throw + 43

              2   CoreFoundation                      0x00007fff98102818 -[__NSArrayM insertObject:atIndex:] + 296

              3   Message                             0x00007fff90086ac2 -[IMAPDownloadCache _getDownloadForUid:partSectionSpecifier:textSectionSpecifier:length:estimatedLe ngth:] + 435

              4   Message                             0x00007fff90086909 -[IMAPDownloadCache downloadForUid:partSectionSpecifier:textSectionSpecifier:length:] + 26

              5   Message                             0x00007fff90149be6 -[LibraryIMAPStore _fetchDataForMimePart:keepInMemory:writeToDisk:] + 766

              6   Message                             0x00007fff901498e6 -[LibraryIMAPStore dataForMimePart:] + 175

              7   Message                             0x00007fff900405a3 -[MimeBody dataForMimePart:] + 382

              8   Message                             0x00007fff900402cd -[MimePart bodyData] + 53

              9   Message                             0x00007fff9003f407 -[MimePart(DecodingSupport) decodeWithContext:] + 686

              10  Message                             0x00007fff9009e7ea -[MimePart _getMessageAttachment:context:] + 350

              11  Message                             0x00007fff901c108e -[MimePart _getMessageAttachment:] + 20

              12  Message                             0x00007fff9016b191 -[MimePart(MatadorSupport) writeAttachmentToSpotlightCacheIfNeededUnder:] + 93

              13  Message                             0x00007fff9016b0e9 -[Matador _synchronouslyIndexAttachmentsForMessage:] + 598

              14  Message                             0x00007fff90131db3 +[Library fixAttachmentCache] + 1889

              15  CoreFoundation                      0x00007fff9814d90c __invoking___ + 140

              16  CoreFoundation                      0x00007fff9814d7a4 -[NSInvocation invoke] + 132

              17  Message                             0x00007fff8ffd0891 -[ThrowingInvocationOperation main] + 33

              18  Message                             0x00007fff8ffd0837 -[_MFInvocationOperation main] + 449

              19  Foundation                          0x00007fff8e0140b0 -[__NSOperationInternal start] + 705

              20  Foundation                          0x00007fff8e0273d2 ____NSOQSchedule_block_invoke_2 + 124

              21  libdispatch.dylib                   0x00007fff971e190a _dispatch_call_block_and_release + 18

              22  libdispatch.dylib                   0x00007fff971e27e9 _dispatch_worker_thread2 + 255

              23  libsystem_c.dylib                   0x00007fff940373da _pthread_wqthread + 316

              24  libsystem_c.dylib                   0x00007fff94038b85 start_wqthread + 13

    )

    22.07.11 18:52:21,006          Mail          *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'

    *** First throw call stack:

    (

              0   CoreFoundation                      0x00007fff9815b986 __exceptionPreprocess + 198

              1   libobjc.A.dylib                     0x00007fff8e374d5e objc_exception_throw + 43

              2   CoreFoundation                      0x00007fff98102818 -[__NSArrayM insertObject:atIndex:] + 296

              3   Message                             0x00007fff90086ac2 -[IMAPDownloadCache _getDownloadForUid:partSectionSpecifier:textSectionSpecifier:length:estimatedLe ngth:] + 435

              4   Message                             0x00007fff90086909 -[IMAPDownloadCache downloadForUid:partSectionSpecifier:textSectionSpecifier:length:] + 26

              5   Message                             0x00007fff90149be6 -[LibraryIMAPStore _fetchDataForMimePart:keepInMemory:writeToDisk:] + 766

              6   Message                             0x00007fff901498e6 -[LibraryIMAPStore dataForMimePart:] + 175

              7   Message                             0x00007fff900405a3 -[MimeBody dataForMimePart:] + 382

              8   Message                             0x00007fff900402cd -[MimePart bodyData] + 53

              9   Message                             0x00007fff9003f407 -[MimePart(DecodingSupport) decodeWithContext:] + 686

              10  Message                             0x00007fff9009e7ea -[MimePart _getMessageAttachment:context:] + 350

              11  Message                             0x00007fff901c108e -[MimePart _getMessageAttachment:] + 20

              12  Message                             0x00007fff9016b191 -[MimePart(MatadorSupport) writeAttachmentToSpotlightCacheIfNeededUnder:] + 93

              13  Message                             0x00007fff9016b0e9 -[Matador _synchronouslyIndexAttachmentsForMessage:] + 598

              14  Message                             0x00007fff90131db3 +[Library fixAttachmentCache] + 1889

              15  CoreFoundation                      0x00007fff9814d90c __invoking___ + 140

              16  CoreFoundation                      0x00007fff9814d7a4 -[NSInvocation invoke] + 132

              17  Message                             0x00007fff8ffd0891 -[ThrowingInvocationOperation main] + 33

              18  Message                             0x00007fff8ffd0837 -[_MFInvocationOperation main] + 449

              19  Foundation                          0x00007fff8e0140b0 -[__NSOperationInternal start] + 705

              20  Foundation                          0x00007fff8e0273d2 ____NSOQSchedule_block_invoke_2 + 124

              21  libdispatch.dylib                   0x00007fff971e190a _dispatch_call_block_and_release + 18

              22  libdispatch.dylib                   0x00007fff971e27e9 _dispatch_worker_thread2 + 255

              23  libsystem_c.dylib                   0x00007fff940373da _pthread_wqthread + 316

              24  libsystem_c.dylib                   0x00007fff94038b85 start_wqthread + 13

    )

    22.07.11 18:52:21,007          [0x0-0x130130].com.apple.mail          terminate called throwing an exception

    22.07.11 18:52:22,642          com.apple.launchd.peruser.502          ([0x0-0x130130].com.apple.mail[2464]) Job appears to have crashed: Abort trap: 6

    22.07.11 18:52:22,872          ReportCrash          Saved crash report for Mail[2464] version 5.0 (1244.2) to /Users/antonkobyshev/Library/Logs/DiagnosticReports/Mail_2011-07-22-185222_Anto nMacBookPro.crash

    22.07.11 18:52:24,934          Mail          Using V2 Layout

    22.07.11 18:55:26,533          Mail          An uncaught exception was raised

    22.07.11 18:55:26,533          Mail          *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil

    22.07.11 18:55:26,534          Mail          (

              0   CoreFoundation                      0x00007fff9815b986 __exceptionPreprocess + 198

              1   libobjc.A.dylib                     0x00007fff8e374d5e objc_exception_throw + 43

              2   CoreFoundation                      0x00007fff98102818 -[__NSArrayM insertObject:atIndex:] + 296

              3   Message                             0x00007fff90086ac2 -[IMAPDownloadCache _getDownloadForUid:partSectionSpecifier:textSectionSpecifier:length:estimatedLe ngth:] + 435

              4   Message                             0x00007fff90086909 -[IMAPDownloadCache downloadForUid:partSectionSpecifier:textSectionSpecifier:length:] + 26

              5   Message                             0x00007fff90149be6 -[LibraryIMAPStore _fetchDataForMimePart:keepInMemory:writeToDisk:] + 766

              6   Message                             0x00007fff901498e6 -[LibraryIMAPStore dataForMimePart:] + 175

              7   Message                             0x00007fff900405a3 -[MimeBody dataForMimePart:] + 382

              8   Message                             0x00007fff900402cd -[MimePart bodyData] + 53

              9   Message                             0x00007fff9003f407 -[MimePart(DecodingSupport) decodeWithContext:] + 686

              10  Message                             0x00007fff9009e7ea -[MimePart _getMessageAttachment:context:] + 350

              11  Message                             0x00007fff901c108e -[MimePart _getMessageAttachment:] + 20

              12  Message                             0x00007fff9016b191 -[MimePart(MatadorSupport) writeAttachmentToSpotlightCacheIfNeededUnder:] + 93

              13  Message                             0x00007fff9016b0e9 -[Matador _synchronouslyIndexAttachmentsForMessage:] + 598

              14  Message                             0x00007fff90131db3 +[Library fixAttachmentCache] + 1889

              15  CoreFoundation                      0x00007fff9814d90c __invoking___ + 140

              16  CoreFoundation                      0x00007fff9814d7a4 -[NSInvocation invoke] + 132

              17  Message                             0x00007fff8ffd0891 -[ThrowingInvocationOperation main] + 33

              18  Message                             0x00007fff8ffd0837 -[_MFInvocationOperation main] + 449

              19  Foundation                          0x00007fff8e0140b0 -[__NSOperationInternal start] + 705

              20  Foundation                          0x00007fff8e0273d2 ____NSOQSchedule_block_invoke_2 + 124

              21  libdispatch.dylib                   0x00007fff971e190a _dispatch_call_block_and_release + 18

              22  libdispatch.dylib                   0x00007fff971e27e9 _dispatch_worker_thread2 + 255

              23  libsystem_c.dylib                   0x00007fff940373da _pthread_wqthread + 316

              24  libsystem_c.dylib                   0x00007fff94038b85 start_wqthread + 13

    )

    22.07.11 18:55:26,534          Mail          *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'

    *** First throw call stack:

    (

              0   CoreFoundation                      0x00007fff9815b986 __exceptionPreprocess + 198

              1   libobjc.A.dylib                     0x00007fff8e374d5e objc_exception_throw + 43

              2   CoreFoundation                      0x00007fff98102818 -[__NSArrayM insertObject:atIndex:] + 296

              3   Message                             0x00007fff90086ac2 -[IMAPDownloadCache _getDownloadForUid:partSectionSpecifier:textSectionSpecifier:length:estimatedLe ngth:] + 435

              4   Message                             0x00007fff90086909 -[IMAPDownloadCache downloadForUid:partSectionSpecifier:textSectionSpecifier:length:] + 26

              5   Message                             0x00007fff90149be6 -[LibraryIMAPStore _fetchDataForMimePart:keepInMemory:writeToDisk:] + 766

              6   Message                             0x00007fff901498e6 -[LibraryIMAPStore dataForMimePart:] + 175

              7   Message                             0x00007fff900405a3 -[MimeBody dataForMimePart:] + 382

              8   Message                             0x00007fff900402cd -[MimePart bodyData] + 53

              9   Message                             0x00007fff9003f407 -[MimePart(DecodingSupport) decodeWithContext:] + 686

              10  Message                             0x00007fff9009e7ea -[MimePart _getMessageAttachment:context:] + 350

              11  Message                             0x00007fff901c108e -[MimePart _getMessageAttachment:] + 20

              12  Message                             0x00007fff9016b191 -[MimePart(MatadorSupport) writeAttachmentToSpotlightCacheIfNeededUnder:] + 93

              13  Message                             0x00007fff9016b0e9 -[Matador _synchronouslyIndexAttachmentsForMessage:] + 598

              14  Message                             0x00007fff90131db3 +[Library fixAttachmentCache] + 1889

              15  CoreFoundation                      0x00007fff9814d90c __invoking___ + 140

              16  CoreFoundation                      0x00007fff9814d7a4 -[NSInvocation invoke] + 132

              17  Message                             0x00007fff8ffd0891 -[ThrowingInvocationOperation main] + 33

              18  Message                             0x00007fff8ffd0837 -[_MFInvocationOperation main] + 449

              19  Foundation                          0x00007fff8e0140b0 -[__NSOperationInternal start] + 705

              20  Foundation                          0x00007fff8e0273d2 ____NSOQSchedule_block_invoke_2 + 124

              21  libdispatch.dylib                   0x00007fff971e190a _dispatch_call_block_and_release + 18

              22  libdispatch.dylib                   0x00007fff971e27e9 _dispatch_worker_thread2 + 255

              23  libsystem_c.dylib                   0x00007fff940373da _pthread_wqthread + 316

              24  libsystem_c.dylib                   0x00007fff94038b85 start_wqthread + 13

    )

    22.07.11 18:55:26,534          [0x0-0x132132].com.apple.mail          terminate called throwing an exception

    22.07.11 18:55:28,382          com.apple.launchd.peruser.502          ([0x0-0x132132].com.apple.mail[2481]) Job appears to have crashed: Abort trap: 6

    22.07.11 18:55:28,595          ReportCrash          Saved crash report for Mail[2481] version 5.0 (1244.2) to /Users/antonkobyshev/Library/Logs/DiagnosticReports/Mail_2011-07-22-185528_Anto nMacBookPro.crash

    22.07.11 18:55:31,075          Mail          Using V2 Layout

  • 11. Re: Lion Mail quit on search attempts.
    deivy Level 4 Level 4 (2,365 points)

    Anton, it could be a corrupted 'preference' file.

    What Armand from Riga did was to erase files in the folder MailData.

     

    Check  here for my Mail file structure in ~/Library/Mail/

     

    You can delete (or better rename the files and move them or not) the index files.

    One idea is to add a letter in front of the file names or remove the extension so a new file is created.

  • 12. Re: Lion Mail quit on search attempts.
    Anton@Russia Level 1 Level 1 (0 points)

    Deivy, I remove all files from /Library/Mail/V2/MailData/

    Mail starts with no mails ( I have over 11K)

    If I restore file by file I have same problem (exit every 3-5 min)

    When I rename file com.apple.mail.plist in Library/Prefeneses/ Mail not start at all.

    Any Idea?

  • 13. Re: Lion Mail quit on search attempts.
    Anton@Russia Level 1 Level 1 (0 points)

    It seems, problem is solved.

    I remove all files from /Library/Mail/V2/MailData/ except two files: Accouts.plist and Envelope index

    After that Mail work normal without quits.

    But after that I have to make all my Rules and SmartBoxes.

    Maybe it will helps somebody.