MailCompositionService crashes on simulator when exporting data from Health app
| Originator: | ilyukevich.victor | ||
| Number: | rdar://22880744 | Date Originated: | 28-Sep-2015 10:19 AM |
| Status: | Closed (duplicate of 22378380) | Resolved: | |
| Product: | iPhone 6 Simulator | Product Version: | iOS 9.0 |
| Classification: | Crash | Reproducible: | Always |
Steps to Reproduce: 1. Launch iPhone 6 simulator (iOS 9.0, 13A340) 2. Open Health app 3. Switch to “Health Data” tab 4. Choose “All“ in the list of categories 5. Tap “Export” button at the right top corner Expected Results: No crash. It shouldn't try to present Mail compose screen immediately. It should prompt with default sharing prompt so I can choose to open the archive with another app installed in simulator. Same as happens on a real device. Actual Results: MailCompositionService crashes. Simulator continues to work, but I can get that archive from the Health app. Version: iOS 9.0 (13A340) Notes: Crash log is attached. Configuration: iPhone 6 Simulator, Xcode 7.0 (7A220) Attachments: ``` Process: MailCompositionService [98187] Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/Applications/MailCompositionService.app/MailCompositionService Identifier: MailCompositionService Version: 1.0 (1.0) Code Type: X86-64 (Native) Parent Process: launchd_sim [94795] Responsible: MailCompositionService [98187] User ID: 501 Date/Time: 2015-09-28 10:10:05.286 -0700 OS Version: Mac OS X 10.11.1 (15B17c) Report Version: 11 Anonymous UUID: 853DC576-283D-F90F-0282-68BA8867F715 Sleep/Wake UUID: A66E43D8-D2DF-4E02-99CC-BBA1779D277C Time Awake Since Boot: 330000 seconds Time Since Wake: 210 seconds System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Exception Note: EXC_CORPSE_NOTIFY Application Specific Information: *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSArrayI isEqualToString:]: unrecognized selector sent to instance 0x7fd18be13800' terminating with uncaught exception of type NSException abort() called CoreSimulator 179 - Device: iPhone 6 - Runtime: iOS 9.0 (13A340) - DeviceType: iPhone 6 Application Specific Backtrace 1: 0 CoreFoundation 0x000000010892ef65 __exceptionPreprocess + 165 1 libobjc.A.dylib 0x0000000108cbadeb objc_exception_throw + 48 2 CoreFoundation 0x000000010893758d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 3 CoreFoundation 0x0000000108884f7a ___forwarding___ + 970 4 CoreFoundation 0x0000000108884b28 _CF_forwarding_prep_0 + 120 5 MessageUI 0x0000000106b100b3 -[MFMailComposeController _setSendingEmailAddress:addIfNotPresent:] + 112 6 MessageUI 0x0000000106b605af +[MFComposeTypeFactory _setupForNewMessageWithModel:delegate:] + 82 7 MessageUI 0x0000000106b0e94c -[MFMailComposeController _loadCompositionContext] + 425 8 MailCompositionService 0x0000000106887ad9 MailCompositionService + 15065 9 CoreFoundation 0x000000010881d85c __invoking___ + 140 10 CoreFoundation 0x000000010881d6ae -[NSInvocation invoke] + 286 11 CoreFoundation 0x00000001088ae016 -[NSInvocation invokeWithTarget:] + 54 12 UIKit 0x0000000107a40dc5 -[_UIViewServiceImplicitAnimationDecodingProxy forwardInvocation:] + 284 13 CoreFoundation 0x0000000108884d97 ___forwarding___ + 487 14 CoreFoundation 0x0000000108884b28 _CF_forwarding_prep_0 + 120 15 CoreFoundation 0x000000010881d85c __invoking___ + 140 16 CoreFoundation 0x000000010881d6ae -[NSInvocation invoke] + 286 17 CoreFoundation 0x00000001088ae016 -[NSInvocation invokeWithTarget:] + 54 18 UIKit 0x000000010798fc19 -[_UIQueueingProxy forwardInvocation:] + 381 19 CoreFoundation 0x0000000108884d97 ___forwarding___ + 487 20 CoreFoundation 0x0000000108884b28 _CF_forwarding_prep_0 + 120 21 CoreFoundation 0x000000010881d85c __invoking___ + 140 22 CoreFoundation 0x000000010881d6ae -[NSInvocation invoke] + 286 23 CoreFoundation 0x00000001088ae016 -[NSInvocation invokeWithTarget:] + 54 24 CoreFoundation 0x0000000108884d97 ___forwarding___ + 487 25 CoreFoundation 0x0000000108884b28 _CF_forwarding_prep_0 + 120 26 CoreFoundation 0x000000010881d85c __invoking___ + 140 27 CoreFoundation 0x000000010881d6ae -[NSInvocation invoke] + 286 28 CoreFoundation 0x00000001088ae016 -[NSInvocation invokeWithTarget:] + 54 29 CoreFoundation 0x0000000108884d97 ___forwarding___ + 487 30 CoreFoundation 0x0000000108884b28 _CF_forwarding_prep_0 + 120 31 CoreFoundation 0x000000010881d85c __invoking___ + 140 32 CoreFoundation 0x000000010881d6ae -[NSInvocation invoke] + 286 33 FrontBoardServices 0x000000010c0047ac -[FBSSerialQueue _performNext] + 192 34 FrontBoardServices 0x000000010c004b1a -[FBSSerialQueue _performNextFromRunLoopSource] + 45 35 CoreFoundation 0x000000010885b0a1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 36 CoreFoundation 0x0000000108850fcc __CFRunLoopDoSources0 + 556 37 CoreFoundation 0x0000000108850483 __CFRunLoopRun + 867 38 CoreFoundation 0x000000010884fe98 CFRunLoopRunSpecific + 488 39 GraphicsServices 0x000000010a01dad2 GSEventRunModal + 161 40 UIKit 0x0000000107149676 UIApplicationMain + 171 41 MailCompositionService 0x0000000106885404 MailCompositionService + 5124 42 libdyld.dylib 0x000000010aa6a92d start + 1 Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x000000010ada30ae __pthread_kill + 10 1 libsystem_pthread.dylib 0x000000010ad6a500 pthread_kill + 90 2 libsystem_c.dylib 0x000000010ab11a44 abort + 129 3 libc++abi.dylib 0x000000010a919051 abort_message + 257 4 libc++abi.dylib 0x000000010a93eac9 default_terminate_handler() + 267 5 libobjc.A.dylib 0x0000000108cbb046 _objc_terminate() + 103 6 libc++abi.dylib 0x000000010a93c26e std::__terminate(void (*)()) + 8 7 libc++abi.dylib 0x000000010a93bef9 __cxa_rethrow + 99 8 libobjc.A.dylib 0x0000000108cbaf5e objc_exception_rethrow + 40 9 com.apple.CoreFoundation 0x000000010884ff54 CFRunLoopRunSpecific + 676 10 com.apple.GraphicsServices 0x000000010a01dad2 GSEventRunModal + 161 11 com.apple.UIKit 0x0000000107149676 UIApplicationMain + 171 12 com.apple.MailCompositionService 0x0000000106885404 0x106884000 + 5124 13 libdyld.dylib 0x000000010aa6a92d start + 1 Thread 1:: Dispatch queue: com.apple.libdispatch-manager 0 libsystem_kernel.dylib 0x000000010ada408a kevent64 + 10 1 libdispatch.dylib 0x000000010aa2b8c0 _dispatch_mgr_invoke + 260 2 libdispatch.dylib 0x000000010aa2b65a _dispatch_mgr_thread + 54 Thread 2: 0 libsystem_kernel.dylib 0x000000010ada378a __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x000000010ad6758c _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x000000010ad65375 start_wqthread + 13 Thread 3: 0 libsystem_kernel.dylib 0x000000010ada378a __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x000000010ad6758c _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x000000010ad65375 start_wqthread + 13 Thread 4: 0 libsystem_kernel.dylib 0x000000010ada378a __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x000000010ad6758c _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x000000010ad65375 start_wqthread + 13 Thread 5: 0 libsystem_kernel.dylib 0x000000010ada32b2 __semwait_signal + 10 1 libsystem_c.dylib 0x000000010ab32acd nanosleep + 199 2 libc++.1.dylib 0x000000010a8b7100 std::__1::this_thread::sleep_for(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > const&) + 75 3 com.apple.JavaScriptCore 0x00000001101a45db bmalloc::Heap::scavenge(std::__1::unique_lock<bmalloc::StaticMutex>&, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000l> >) + 155 4 com.apple.JavaScriptCore 0x00000001101a4514 bmalloc::Heap::concurrentScavenge() + 68 5 com.apple.JavaScriptCore 0x00000001101a69ba bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::entryPoint() + 90 6 com.apple.JavaScriptCore 0x00000001101a6959 bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::pthreadEntryPoint(void*) + 9 7 libsystem_pthread.dylib 0x000000010ad679b1 _pthread_body + 131 8 libsystem_pthread.dylib 0x000000010ad6792e _pthread_start + 168 9 libsystem_pthread.dylib 0x000000010ad65385 thread_start + 13 Thread 6:: WebThread 0 libsystem_kernel.dylib 0x000000010ad9dc96 mach_msg_trap + 10 1 libsystem_kernel.dylib 0x000000010ad9d0d7 mach_msg + 55 2 com.apple.CoreFoundation 0x00000001088511d4 __CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x000000010885062f __CFRunLoopRun + 1295 4 com.apple.CoreFoundation 0x000000010884fe98 CFRunLoopRunSpecific + 488 5 com.apple.WebCore 0x000000010efba305 RunWebThread(void*) + 469 6 libsystem_pthread.dylib 0x000000010ad679b1 _pthread_body + 131 7 libsystem_pthread.dylib 0x000000010ad6792e _pthread_start + 168 8 libsystem_pthread.dylib 0x000000010ad65385 thread_start + 13 Thread 7:: JavaScriptCore::Marking 0 libsystem_kernel.dylib 0x000000010ada2f5e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x000000010ad6873d _pthread_cond_wait + 767 2 libc++.1.dylib 0x000000010a8788ff std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47 3 com.apple.JavaScriptCore 0x000000010fe3a6bb JSC::GCThread::waitForNextPhase() + 171 4 com.apple.JavaScriptCore 0x000000010fe3a758 JSC::GCThread::gcThreadMain() + 88 5 com.apple.JavaScriptCore 0x0000000110196232 WTF::threadEntryPoint(void*) + 178 6 com.apple.JavaScriptCore 0x000000011019668f WTF::wtfThreadEntryPoint(void*) + 15 7 libsystem_pthread.dylib 0x000000010ad679b1 _pthread_body + 131 8 libsystem_pthread.dylib 0x000000010ad6792e _pthread_start + 168 9 libsystem_pthread.dylib 0x000000010ad65385 thread_start + 13 Thread 8:: JavaScriptCore::Marking 0 libsystem_kernel.dylib 0x000000010ada2f5e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x000000010ad6873d _pthread_cond_wait + 767 2 libc++.1.dylib 0x000000010a8788ff std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47 3 com.apple.JavaScriptCore 0x000000010fe3a6bb JSC::GCThread::waitForNextPhase() + 171 4 com.apple.JavaScriptCore 0x000000010fe3a758 JSC::GCThread::gcThreadMain() + 88 5 com.apple.JavaScriptCore 0x0000000110196232 WTF::threadEntryPoint(void*) + 178 6 com.apple.JavaScriptCore 0x000000011019668f WTF::wtfThreadEntryPoint(void*) + 15 7 libsystem_pthread.dylib 0x000000010ad679b1 _pthread_body + 131 8 libsystem_pthread.dylib 0x000000010ad6792e _pthread_start + 168 9 libsystem_pthread.dylib 0x000000010ad65385 thread_start + 13 Thread 9:: JavaScriptCore::Marking 0 libsystem_kernel.dylib 0x000000010ada2f5e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x000000010ad6873d _pthread_cond_wait + 767 2 libc++.1.dylib 0x000000010a8788ff std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47 3 com.apple.JavaScriptCore 0x000000010fe3a6bb JSC::GCThread::waitForNextPhase() + 171 4 com.apple.JavaScriptCore 0x000000010fe3a758 JSC::GCThread::gcThreadMain() + 88 5 com.apple.JavaScriptCore 0x0000000110196232 WTF::threadEntryPoint(void*) + 178 6 com.apple.JavaScriptCore 0x000000011019668f WTF::wtfThreadEntryPoint(void*) + 15 7 libsystem_pthread.dylib 0x000000010ad679b1 _pthread_body + 131 8 libsystem_pthread.dylib 0x000000010ad6792e _pthread_start + 168 9 libsystem_pthread.dylib 0x000000010ad65385 thread_start + 13 Thread 10:: JavaScriptCore::Marking 0 libsystem_kernel.dylib 0x000000010ada2f5e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x000000010ad6873d _pthread_cond_wait + 767 2 libc++.1.dylib 0x000000010a8788ff std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47 3 com.apple.JavaScriptCore 0x000000010fe3a6bb JSC::GCThread::waitForNextPhase() + 171 4 com.apple.JavaScriptCore 0x000000010fe3a758 JSC::GCThread::gcThreadMain() + 88 5 com.apple.JavaScriptCore 0x0000000110196232 WTF::threadEntryPoint(void*) + 178 6 com.apple.JavaScriptCore 0x000000011019668f WTF::wtfThreadEntryPoint(void*) + 15 7 libsystem_pthread.dylib 0x000000010ad679b1 _pthread_body + 131 8 libsystem_pthread.dylib 0x000000010ad6792e _pthread_start + 168 9 libsystem_pthread.dylib 0x000000010ad65385 thread_start + 13 Thread 11:: JavaScriptCore::Marking 0 libsystem_kernel.dylib 0x000000010ada2f5e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x000000010ad6873d _pthread_cond_wait + 767 2 libc++.1.dylib 0x000000010a8788ff std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47 3 com.apple.JavaScriptCore 0x000000010fe3a6bb JSC::GCThread::waitForNextPhase() + 171 4 com.apple.JavaScriptCore 0x000000010fe3a758 JSC::GCThread::gcThreadMain() + 88 5 com.apple.JavaScriptCore 0x0000000110196232 WTF::threadEntryPoint(void*) + 178 6 com.apple.JavaScriptCore 0x000000011019668f WTF::wtfThreadEntryPoint(void*) + 15 7 libsystem_pthread.dylib 0x000000010ad679b1 _pthread_body + 131 8 libsystem_pthread.dylib 0x000000010ad6792e _pthread_start + 168 9 libsystem_pthread.dylib 0x000000010ad65385 thread_start + 13 Thread 12:: JavaScriptCore::Marking 0 libsystem_kernel.dylib 0x000000010ada2f5e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x000000010ad6873d _pthread_cond_wait + 767 2 libc++.1.dylib 0x000000010a8788ff std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47 3 com.apple.JavaScriptCore 0x000000010fe3a6bb JSC::GCThread::waitForNextPhase() + 171 4 com.apple.JavaScriptCore 0x000000010fe3a758 JSC::GCThread::gcThreadMain() + 88 5 com.apple.JavaScriptCore 0x0000000110196232 WTF::threadEntryPoint(void*) + 178 6 com.apple.JavaScriptCore 0x000000011019668f WTF::wtfThreadEntryPoint(void*) + 15 7 libsystem_pthread.dylib 0x000000010ad679b1 _pthread_body + 131 8 libsystem_pthread.dylib 0x000000010ad6792e _pthread_start + 168 9 libsystem_pthread.dylib 0x000000010ad65385 thread_start + 13 Thread 13: 0 libsystem_kernel.dylib 0x000000010ada378a __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x000000010ad6758c _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x000000010ad65375 start_wqthread + 13 Thread 14: 0 libsystem_kernel.dylib 0x000000010ada378a __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x000000010ad6758c _pthread_wqthread + 1283 2 libsystem_pthread.dylib 0x000000010ad65375 start_wqthread + 13 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x00007fff5937a498 rdx: 0x0000000000000000 rdi: 0x000000000000070b rsi: 0x0000000000000006 rbp: 0x00007fff5937a4c0 rsp: 0x00007fff5937a498 r8: 0x0000000000000003 r9: 0x000000010a93faba r10: 0x0000000008000000 r11: 0x0000000000000202 r12: 0x00007fff5937a620 r13: 0x00007fd18bd16250 r14: 0x000000010ad70000 r15: 0x00007fff5937a500 rip: 0x000000010ada30ae rfl: 0x0000000000000202 cr2: 0x000000010ad6aa5d Logical CPU: 0 Error Code: 0x02000148 Trap Number: 133 ... ```
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!