I do not know how I can use the following crash report from crashlytics to narrow down the source of the crash.
All I understand is that it has something to do with CoreFoundation, but what exactly is the crash? And where in my code is it happening?
Is a CAAnimation Delegate? Or perhaps I did not remove and observer from NSNotifications?
Any ideas?
Crashed: com.apple.main-thread SIGABRT ABORT at 0x39a5cdf0
Thread : Crashed: com.apple.main-thread
0 libsystem_kernel.dylib 0x39a5cdf0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x39addc97 pthread_kill + 62
2 libsystem_c.dylib 0x399fb939 abort + 76
3 libc++abi.dylib 0x38bfabbd __cxa_bad_cast
4 libc++abi.dylib 0x38c1466f default_terminate_handler() + 266
5 libobjc.A.dylib 0x393eef11 _objc_terminate() + 192
6 libc++abi.dylib 0x38c11def std::__terminate(void (*)()) + 78
7 libc++abi.dylib 0x38c115b1 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*)
8 libobjc.A.dylib 0x393eed4b objc_exception_throw + 250
9 CoreFoundation 0x2b4975fd __methodDescriptionForSelector
10 CoreFoundation 0x2b4954d9 ___forwarding___ + 712
11 CoreFoundation 0x2b3c49d8 _CF_forwarding_prep_0 + 24
12 QuartzCore 0x2e4eeff3 CA::Layer::run_animation_callbacks(void*) + 150
13 libdispatch.dylib 0x39958c6f _dispatch_client_callout + 22
14 libdispatch.dylib 0x39964553 _dispatch_main_queue_callback_4CF$VARIANT$mp + 1322
15 CoreFoundation 0x2b457889 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
16 CoreFoundation 0x2b455fa9 __CFRunLoopRun + 1512
17 CoreFoundation 0x2b3a19a1 CFRunLoopRunSpecific + 476
18 CoreFoundation 0x2b3a17b3 CFRunLoopRunInMode + 106
19 GraphicsServices 0x32b531a9 GSEventRunModal + 136
20 UIKit 0x2eb2c695 UIApplicationMain + 1440
Related
When I called NSTimer -[invalidate] method and set timer to nil, there caused carsh.The thread that I initialize NSTimer and call -[invalidate] method was the same thread.but it crashed sometimes。why?Bad access crash? This is crash log:
#0. Crashed: com.apple.main-thread
0 libobjc.A.dylib 0x1819d4430 objc_msgSend + 16
1 MTXX 0x100d73480 -[MTBDummyWebViewViewController resetTimerAndAnimation] (MTBDummyWebViewViewController.m:135)
2 MTXX 0x100d73828 -[MTBDummyWebViewViewController webView:shouldStartLoadWithRequest:navigationType:] (MTBDummyWebViewViewController.m:176)
3 UIKit 0x18bda4f9c -[UIWebView webView:decidePolicyForNavigationAction:request:frame:decisionListener:] + 300
4 CoreFoundation 0x182779670 __invoking___ + 144
5 CoreFoundation 0x1826586cc -[NSInvocation invoke] + 292
6 CoreFoundation 0x18265d16c -[NSInvocation invokeWithTarget:] + 60
7 WebKitLegacy 0x18b811858 -[_WebSafeForwarder forwardInvocation:] + 156
8 CoreFoundation 0x1827773bc ___forwarding___ + 624
9 CoreFoundation 0x18265d01c _CF_forwarding_prep_0 + 92
10 CoreFoundation 0x182779670 __invoking___ + 144
11 CoreFoundation 0x1826586cc -[NSInvocation invoke] + 292
12 WebCore 0x18a4d34f4 HandleDelegateSource(void*) + 108
13 CoreFoundation 0x18271a2e8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
14 CoreFoundation 0x18271a268 __CFRunLoopDoSource0 + 88
15 CoreFoundation 0x182719af0 __CFRunLoopDoSources0 + 204
16 CoreFoundation 0x1827176c8 __CFRunLoopRun + 1048
17 CoreFoundation 0x182637fb8 CFRunLoopRunSpecific + 436
18 GraphicsServices 0x1844cff84 GSEventRunModal + 100
19 UIKit 0x18bc0c2e8 UIApplicationMain + 208
20 MTXX 0x10047f6bc main (main.m:15)
21 libdyld.dylib 0x18215a56c start + 4
--
They are used like this:
[self.timeoutTimer invalidate];
self.timeoutTimer = nil;
Does anyone have a clue on this crash ?
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x30e57e83 __exceptionPreprocess + 131
1 libobjc.A.dylib 0x3b1b86c7 objc_exception_throw + 38
2 CoreFoundation 0x30e57dc5 +[NSException raise:format:] + 112
3 CoreData 0x30bc6be3 -[_PFBatchFaultingArray objectAtIndex:] +
146
4 ChevronRetail 0x000345bd 0x1f000 + 87485
5 ChevronRetail 0x000314e5 0x1f000 + 74981
6 ChevronRetail 0x0003143d 0x1f000 + 74813
7 ChevronRetail 0x000313c3 0x1f000 + 74691
8 ChevronRetail 0x00031cc7 0x1f000 + 76999
9 UIKit 0x336d7349 -[UIScrollView(UIScrollViewInternal)
_delegateScrollViewAnimationEnded] + 68
10 UIKit 0x336d72c5 -[UIScrollView(UIScrollViewInternal)
_scrollViewAnimationEnded:finished:] + 176
11 UIKit 0x023c001b 0x2393000 + 184347
12 UIKit 0x3377fd6b -[UIAnimator stopAnimation:] + 466
13 UIKit 0x3377f74d -[UIAnimator(Static) _advanceAnimationsOfType:withTimestamp:] + 284
14 UIKit 0x3377f62d -[UIAnimator(Static) _LCDHeartbeatCallback:] + 52
15 QuartzCore 0x332b2ad3 CA::Display::DisplayLinkItem::dispatch() + 98
16 QuartzCore 0x332b287d CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 344
17 IOMobileFramebuffer 0x35edc76d IOMobileFramebufferVsyncNotifyFunc + 104
18 IOKit 0x31b39be5 IODispatchCalloutFromCFMessage + 248
19 CoreFoundation 0x30e17b81 __CFMachPortPerform + 136
20 CoreFoundation 0x30e22777 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 34
21 CoreFoundation 0x30e22713 __CFRunLoopDoSource1 + 346
22 CoreFoundation 0x30e20edf __CFRunLoopRun + 1406
23 CoreFoundation 0x30d8b471 CFRunLoopRunSpecific + 524
24 CoreFoundation 0x30d8b253 CFRunLoopRunInMode + 106
25 GraphicsServices 0x35abf2eb GSEventRunModal + 138
26 UIKit 0x33640845 UIApplicationMain + 1136
27 ChevronRetail 0x00057fd5 0x1f000 + 233429
28 libdyld.dylib 0x3b6b1ab7 start + 2
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3b7681fc __pthread_kill + 8
1 libsystem_pthread.dylib 0x3b7cfa4f pthread_kill + 55
2 libsystem_c.dylib 0x3b719029 abort + 73
3 libc++abi.dylib 0x3ab6798b abort_message + 71
4 libc++abi.dylib 0x3ab806e3 default_terminate_handler() + 251
5 libobjc.A.dylib 0x3b1b8937 _objc_terminate() + 191
6 libc++abi.dylib 0x3ab7e1b1 std::__terminate(void (*)()) + 77
7 libc++abi.dylib 0x3ab7dd13 __cxa_rethrow + 99
8 libobjc.A.dylib 0x3b1b880b objc_exception_rethrow + 39
9 CoreFoundation 0x30d8b4e3 CFRunLoopRunSpecific + 639
10 CoreFoundation 0x30d8b24f CFRunLoopRunInMode + 103
11 GraphicsServices 0x35abf2e7 GSEventRunModal + 135
12 UIKit 0x33640841 UIApplicationMain + 1133
13 ChevronRetail 0x00057fd1 0x1f000 + 233425
14 libdyld.dylib 0x3b6b1ab5 start + 1
Can anyone tell me if this crashing stack appears to be caused by Reachability? I am running apple's latest implementation of Reachability, downloadable at https://developer.apple.com/library/ios/samplecode/reachability/Introduction/Intro.html
I have an app where ARC is not enabled by default (it is a legacy app) but I enable it on a per-file basis. I have enabled -fobjc-arc for Reachability.m
When I look at these threads, my code is nowhere to be found. I see some activity happening because of a WebHTMLView (probably the ad network view code currently on screen; it's not mine).
On Thread 10, I see a SCNetworkReachabilityDeallocate, then a dispatch_semaphore_wait_slow, and the crash happens on Thread 14 in libdispatch.
Do you think this crash is being caused by that Reachability code, and have I erred in using -fobjc-arc with Reachability.m?
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x2000000c
Triggered by Thread: 14
Thread 0:
0 libsystem_kernel.dylib 0x39cafa84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39caf87c mach_msg + 36
2 CoreFoundation 0x2f3e255c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2f3e0cc2 __CFRunLoopRun + 858
4 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2f34b31e CFRunLoopRunInMode + 102
6 GraphicsServices 0x340822e6 GSEventRunModal + 134
7 UIKit 0x31c021e0 UIApplicationMain + 1132
8 MyApp 0x00053ad4 main (main.m:33)
9 libdyld.dylib 0x39c0bab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x39caf838 kevent64 + 24
1 libdispatch.dylib 0x39bfe0d0 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x39bf863e _dispatch_mgr_thread + 34
Thread 2 name: com.apple.NSURLConnectionLoader
Thread 2:
0 libsystem_kernel.dylib 0x39cb0910 close + 8
1 CoreFoundation 0x2f370ef6 CFSocketInvalidate + 434
2 CFNetwork 0x2f0122a2 Schedulables::_SchedulablesInvalidateApplierFunction(void const*, void*) + 14
3 CoreFoundation 0x2f34af6e CFArrayApplyFunction + 34
4 CFNetwork 0x2f011a94 SocketStream::close(void const*) + 280
5 CFNetwork 0x2f01194e CoreStreamBase::_streamInterface_Close() + 46
6 CFNetwork 0x2f030286 HTTPReadFilter::_streamImpl_Close() + 66
7 CFNetwork 0x2f01194e CoreStreamBase::_streamInterface_Close() + 46
8 CFNetwork 0x2f0301c6 NetConnection::shutdownConnectionStreams() + 98
9 CFNetwork 0x2f0309c8 NetConnection::closeStreamsIfPossibleOrSignalThatThatNeedsToBeDonePrettyPlease() + 56
10 CFNetwork 0x2f030d12 HTTPConnectionCacheEntry::removeUnauthConnection(NetConnection*) + 182
11 CoreFoundation 0x2f34af6e CFArrayApplyFunction + 34
12 CFNetwork 0x2f075678 HTTPConnectionCacheEntry::purgeIdleConnections(double, double) + 256
13 CFNetwork 0x2f030ad4 HTTPConnectionCache::performIdleSweep() + 156
14 CFNetwork 0x2f073b42 HTTPConnectionCache::timeoutIdleCellConnections() + 18
15 CFNetwork 0x2f0b3394 ___ZNK17CoreSchedulingSet13_performAsyncEPKcU13block_pointerFvvE_block_invoke + 16
16 CoreFoundation 0x2f34af6e CFArrayApplyFunction + 34
17 CFNetwork 0x2f019f10 RunloopBlockContext::perform() + 160
18 CFNetwork 0x2f019de2 MultiplexerSource::perform() + 218
19 CFNetwork 0x2f019c70 MultiplexerSource::_perform(void*) + 44
20 CoreFoundation 0x2f3e2f24 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
21 CoreFoundation 0x2f3e23ea __CFRunLoopDoSources0 + 202
22 CoreFoundation 0x2f3e0bda __CFRunLoopRun + 626
23 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
24 CoreFoundation 0x2f34b31e CFRunLoopRunInMode + 102
25 Foundation 0x2fd8664c +[NSURLConnection(Loader) _resourceLoadLoop:] + 316
26 Foundation 0x2fdfbdc2 __NSThread__main__ + 1058
27 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
28 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
29 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 3 name: WebThread
Thread 3:
0 CoreGraphics 0x2f49163c CGRectIsEmpty + 0
1 WebCore 0x37291700 -[WAKView setNeedsDisplayInRect:] + 76
2 WebKit 0x37cad22a -[WebHTMLView setNeedsDisplayInRect:] + 214
3 WebCore 0x372915cc WebCore::ScrollView::platformRepaintContentRectangle(WebCore::IntRect const&, bool) + 148
4 WebCore 0x37291412 WebCore::ScrollView::repaintContentRectangle(WebCore::IntRect const&, bool) + 98
5 WebCore 0x37291272 WebCore::FrameView::doDeferredRepaints() + 90
6 WebCore 0x372dc96c WebCore::FrameView::layout(bool) + 1748
7 WebCore 0x3721fb94 WebCore::ThreadTimers::sharedTimerFiredInternal() + 132
8 WebCore 0x3721fae6 WebCore::timerFired(__CFRunLoopTimer*, void*) + 22
9 CoreFoundation 0x2f3e2e84 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 12
10 CoreFoundation 0x2f3e2a9e __CFRunLoopDoTimer + 790
11 CoreFoundation 0x2f3e0e26 __CFRunLoopRun + 1214
12 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
13 CoreFoundation 0x2f34b31e CFRunLoopRunInMode + 102
14 WebCore 0x372ae7d8 RunWebThread(void*) + 416
15 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
16 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
17 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x39cafa84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39caf87c mach_msg + 36
2 CoreFoundation 0x2f3e255c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2f3e0c7c __CFRunLoopRun + 788
4 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2f34b31e CFRunLoopRunInMode + 102
6 libAVFAudio.dylib 0x2e3295ae GenericRunLoopThread::Entry(void*) + 126
7 libAVFAudio.dylib 0x2e31dbf4 CAPThread::Entry(CAPThread*) + 176
8 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
9 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
10 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 5 name: JavaScriptCore::BlockFree
Thread 5:
0 libsystem_kernel.dylib 0x39cc1f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x39d28262 _pthread_cond_wait + 538
2 libsystem_pthread.dylib 0x39d2903c pthread_cond_wait + 36
3 JavaScriptCore 0x3036f408 JSC::BlockAllocator::blockFreeingThreadMain() + 204
4 JavaScriptCore 0x3036ca70 WTF::wtfThreadEntryPoint(void*) + 12
5 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
6 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
7 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 6 name: JavaScriptCore::Marking
Thread 6:
0 libsystem_kernel.dylib 0x39cc1f38 __psynch_cvwait + 24
1 libsystem_pthread.dylib 0x39d28262 _pthread_cond_wait + 538
2 libsystem_pthread.dylib 0x39d2903c pthread_cond_wait + 36
3 JavaScriptCore 0x3050daf2 JSC::GCThread::waitForNextPhase() + 74
4 JavaScriptCore 0x3050db4c JSC::GCThread::gcThreadMain() + 48
5 JavaScriptCore 0x3036ca70 WTF::wtfThreadEntryPoint(void*) + 12
6 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
7 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
8 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 7 name: com.apple.CFSocket.private
Thread 7:
0 libsystem_kernel.dylib 0x39cc2440 select$DARWIN_EXTSN + 20
1 CoreFoundation 0x2f3e645e __CFSocketManager + 482
2 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
3 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
4 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 8 name: AFNetworking
Thread 8:
0 libsystem_kernel.dylib 0x39cafa84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39caf87c mach_msg + 36
2 CoreFoundation 0x2f3e255c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2f3e0c7c __CFRunLoopRun + 788
4 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2f34b31e CFRunLoopRunInMode + 102
6 Foundation 0x2fd39822 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x2fd8a664 -[NSRunLoop(NSRunLoop) run] + 76
8 MyApp 0x002c33d0 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:184)
9 Foundation 0x2fdfbdc2 __NSThread__main__ + 1058
10 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
11 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
12 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 9 name: WebCore: CFNetwork Loader
Thread 9:
0 libsystem_kernel.dylib 0x39cafa84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39caf87c mach_msg + 36
2 CoreFoundation 0x2f3e255c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2f3e0c7c __CFRunLoopRun + 788
4 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2f34b31e CFRunLoopRunInMode + 102
6 WebCore 0x372f7872 WebCore::runLoaderThread(void*) + 250
7 JavaScriptCore 0x3036ca70 WTF::wtfThreadEntryPoint(void*) + 12
8 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
9 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
10 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 10:
0 libsystem_kernel.dylib 0x39cafad4 semaphore_wait_trap + 8
1 libdispatch.dylib 0x39bfcdec _dispatch_semaphore_wait_slow + 172
2 libxpc.dylib 0x39d370d6 xpc_connection_send_message_with_reply_sync + 150
3 SystemConfiguration 0x31b77362 _reach_server_target_remove + 90
4 SystemConfiguration 0x31b772d2 __SCNetworkReachabilityServer_targetRemove + 38
5 SystemConfiguration 0x31b5e318 __SCNetworkReachabilityDeallocate + 92
6 CoreFoundation 0x2f347efc CFRelease + 464
7 libdispatch.dylib 0x39bfc7e0 _dispatch_root_queue_drain + 220
8 libdispatch.dylib 0x39bfc9cc _dispatch_worker_thread2 + 52
9 libsystem_pthread.dylib 0x39d26dfc _pthread_wqthread + 296
10 libsystem_pthread.dylib 0x39d26cc0 start_wqthread + 4
Thread 11:
0 libsystem_kernel.dylib 0x39cc2c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39d26e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x39d26cc0 start_wqthread + 4
Thread 12:
0 libsystem_kernel.dylib 0x39cc2c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39d26e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x39d26cc0 start_wqthread + 4
Thread 13:
0 libsystem_kernel.dylib 0x39cafa84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39caf87c mach_msg + 36
2 CoreFoundation 0x2f3e255c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2f3e0c7c __CFRunLoopRun + 788
4 CoreFoundation 0x2f34b53c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2f38f1a6 CFRunLoopRun + 94
6 CoreMotion 0x2fa03394 ___lldb_unnamed_function1407$$CoreMotion + 724
7 libsystem_pthread.dylib 0x39d28c5a _pthread_body + 138
8 libsystem_pthread.dylib 0x39d28bca _pthread_start + 98
9 libsystem_pthread.dylib 0x39d26ccc thread_start + 4
Thread 14 Crashed:
0 libobjc.A.dylib 0x3970db66 objc_msgSend + 6
1 CoreFoundation 0x2f347f58 CFRelease + 556
2 libdispatch.dylib 0x39bf7100 _dispatch_call_block_and_release + 8
3 libdispatch.dylib 0x39bfbe72 _dispatch_queue_drain + 370
4 libdispatch.dylib 0x39bf8f96 _dispatch_queue_invoke + 38
5 libdispatch.dylib 0x39bfc74e _dispatch_root_queue_drain + 74
6 libdispatch.dylib 0x39bfc9cc _dispatch_worker_thread2 + 52
7 libsystem_pthread.dylib 0x39d26dfc _pthread_wqthread + 296
8 libsystem_pthread.dylib 0x39d26cc0 start_wqthread + 4
This crash could be caused by just about any piece of code, including your own.
The stack trace indicates that a block has previously retained a pointer that is now being released with CFRelease. If the pointer was not properly retained in the first place - or was in the process of being dealloc-ed when it was originally retained, you could see this stack trace.
If you are accessing the pointer on one thread, but releasing it another, then you may well have the kind of race condition that can cause this kind of crash.
I have an UIBarButtonItem that is crashing, but I can't figure out what is happening. It's not generating any error on the debugger and its crash log is not symbolicating some parts. This is the crash log:
Last Exception Backtrace:
0 CoreFoundation 0x354ba88f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x37861259 objc_exception_throw + 33
2 CoreFoundation 0x354ba789 +[NSException raise:format:] + 1
3 Foundation 0x34fa23ff -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 87
4 Exame_iPhone 0x000b9029 0x4b000 + 450601
5 Exame_iPhone 0x000b9071 0x4b000 + 450673
6 Exame_iPhone 0x0010a60d 0x4b000 + 783885
7 Exame_iPhone 0x0010aa7b 0x4b000 + 785019
8 Exame_iPhone 0x00069ff3 0x4b000 + 126963
9 CoreFoundation 0x354143fd -[NSObject performSelector:withObject:withObject:] + 53
10 UIKit 0x32f09e07 -[UIApplication sendAction:to:from:forEvent:] + 63
11 UIKit 0x32fcf5e7 -[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 119
12 CoreFoundation 0x354143fd -[NSObject performSelector:withObject:withObject:] + 53
13 UIKit 0x32f09e07 -[UIApplication sendAction:to:from:forEvent:] + 63
14 UIKit 0x32f09dc3 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 31
15 UIKit 0x32f09da1 -[UIControl sendAction:to:forEvent:] + 45
16 UIKit 0x32f09b11 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 493
17 UIKit 0x32f0a449 -[UIControl touchesEnded:withEvent:] + 477
18 UIKit 0x32f0892b -[UIWindow _sendTouchesForEvent:] + 319
19 UIKit 0x32f08319 -[UIWindow sendEvent:] + 381
20 UIKit 0x32eee695 -[UIApplication sendEvent:] + 357
21 UIKit 0x32eedf3b _UIApplicationHandleEvent + 5827
22 GraphicsServices 0x370ad22b PurpleEventCallback + 883
23 CoreFoundation 0x3548e523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
24 CoreFoundation 0x3548e4c5 __CFRunLoopDoSource1 + 141
25 CoreFoundation 0x3548d313 __CFRunLoopRun + 1371
26 CoreFoundation 0x354104a5 CFRunLoopRunSpecific + 301
27 CoreFoundation 0x3541036d CFRunLoopRunInMode + 105
28 GraphicsServices 0x370ac439 GSEventRunModal + 137
29 UIKit 0x32f1ccd5 UIApplicationMain + 1081
30 Exame_iPhone 0x0004c23b 0x4b000 + 4667
31 Exame_iPhone 0x0004c1e0 0x4b000 + 4576
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x35d7032c __pthread_kill + 8
1 libsystem_c.dylib 0x328bc208 pthread_kill + 48
2 libsystem_c.dylib 0x328b5298 abort + 88
3 libc++abi.dylib 0x35872f64 abort_message + 40
4 libc++abi.dylib 0x35870346 _ZL17default_terminatev + 18
5 libobjc.A.dylib 0x37861350 _objc_terminate + 140
6 libc++abi.dylib 0x358703be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x3587044a std::terminate() + 14
8 libc++abi.dylib 0x3587181e __cxa_rethrow + 82
9 libobjc.A.dylib 0x378612a2 objc_exception_rethrow + 6
10 CoreFoundation 0x35410506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x35410366 CFRunLoopRunInMode + 98
12 GraphicsServices 0x370ac432 GSEventRunModal + 130
13 UIKit 0x32f1ccce UIApplicationMain + 1074
14 Exame_iPhone 0x0004c234 0x4b000 + 4660
15 Exame_iPhone 0x0004c1d8 0x4b000 + 4568
Does anybody know what is going on?
Regards!
An assertion fails in the non-symbolicated lines, probably in your own method. Set a breakpoint at the beginning of your button method and step through until you get the crash.
SIGSEGV SEGV_ACCERR
Here's stacktraces (according to crittercism)
Crashed thread:
0 libobjc.A.dylib 0x33b75c98 objc_msgSend + 15
1 Foundation 0x34ce5389 -[NSThread main] + 44
2 Foundation 0x34d575cd __NSThread__main__ + 972
3 libsystem_c.dylib 0x34600311 _pthread_start + 248
Other threads:
0 libsystem_kernel.dylib 0x345c4c00 mach_msg_trap + 20
1 CoreFoundation 0x368f62bf __CFRunLoopServiceMachPort + 94
2 CoreFoundation 0x368f8569 __CFRunLoopRun + 356
3 CoreFoundation 0x36888ec3 CFRunLoopRunSpecific + 230
4 CoreFoundation 0x36888dcb CFRunLoopRunInMode + 58
5 GraphicsServices 0x3604241f GSEventRunModal + 114
6 GraphicsServices 0x360424cb GSEventRun + 62
7 UIKit 0x35732d69 -[UIApplication _run] + 404
8 UIKit 0x35730807 UIApplicationMain + 670
9 (app name) 0x3b97 main (main.m:8)
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c7fbc kevent + 24
1 libdispatch.dylib 0x33799041 _dispatch_queue_invoke + 92
2 libdispatch.dylib 0x337985f1 _dispatch_worker_thread2 + 192
3 libsystem_c.dylib 0x34601591 _pthread_wqthread + 264
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c4c00 mach_msg_trap + 20
1 CoreFoundation 0x368f62bf __CFRunLoopServiceMachPort + 94
2 CoreFoundation 0x368f8569 __CFRunLoopRun + 356
3 CoreFoundation 0x36888ec3 CFRunLoopRunSpecific + 230
4 CoreFoundation 0x36888dcb CFRunLoopRunInMode + 58
5 WebCore 0x36051285 _ZL12RunWebThreadPv + 388
6 libsystem_c.dylib 0x34600311 _pthread_start + 248
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c4c00 mach_msg_trap + 20
1 CoreFoundation 0x368f62bf __CFRunLoopServiceMachPort + 94
2 CoreFoundation 0x368f8569 __CFRunLoopRun + 356
3 CoreFoundation 0x36888ec3 CFRunLoopRunSpecific + 230
4 CoreFoundation 0x36888dcb CFRunLoopRunInMode + 58
5 Foundation 0x34cf27fd +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 212
6 Foundation 0x34ce5389 -[NSThread main] + 44
7 Foundation 0x34d575cd __NSThread__main__ + 972
8 libsystem_c.dylib 0x34600311 _pthread_start + 248
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c4c00 mach_msg_trap + 20
1 CoreFoundation 0x368f62bf __CFRunLoopServiceMachPort + 94
2 CoreFoundation 0x368f8569 __CFRunLoopRun + 356
3 CoreFoundation 0x36888ec3 CFRunLoopRunSpecific + 230
4 CoreFoundation 0x368cb6d9 CFRunLoopRun + 48
5 (app name) 0x0001e04b +[ASIHTTPRequest runRequests] (ASIHTTPRequest.m:4791)
6 Foundation 0x34ce5389 -[NSThread main] + 44
7 Foundation 0x34d575cd __NSThread__main__ + 972
8 libsystem_c.dylib 0x34600311 _pthread_start + 248
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c6c60 __select + 20
1 libsystem_c.dylib 0x34600311 _pthread_start + 248
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c6d18 __semwait_signal + 24
1 libsystem_c.dylib 0x345ceeb9 pthread_cond_wait + 32
2 CoreMedia 0x313578fb WaitOnCondition + 10
3 CoreMedia 0x31357841 FigSemaphoreWaitRelative + 72
4 MediaToolbox 0x3336ba6b fpa_AsyncMovieControlThread + 54
5 CoreMedia 0x313754e3 figThreadMain + 162
6 libsystem_c.dylib 0x34600311 _pthread_start + 248
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c4c00 mach_msg_trap + 20
1 CoreFoundation 0x368f62bf __CFRunLoopServiceMachPort + 94
2 CoreFoundation 0x368f8569 __CFRunLoopRun + 356
3 CoreFoundation 0x36888ec3 CFRunLoopRunSpecific + 230
4 CoreFoundation 0x36888dcb CFRunLoopRunInMode + 58
5 MapKit 0x313a345d _ZN16TileCachePrivate14runCacheThreadEv + 280
6 MapKit 0x313a3341 _ZL15_runCacheThreadPv + 8
7 libsystem_c.dylib 0x34600311 _pthread_start + 248
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c6d18 __semwait_signal + 24
1 libsystem_c.dylib 0x345ceeb9 pthread_cond_wait + 32
2 QuartzCore 0x30dcb737 _ZN2CA13DispatchGroup6threadEPv + 90
3 QuartzCore 0x30de583d thread_fun + 16
4 libsystem_c.dylib 0x34600311 _pthread_start + 248
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c4c00 mach_msg_trap + 20
1 CoreFoundation 0x368f62bf __CFRunLoopServiceMachPort + 94
2 CoreFoundation 0x368f8569 __CFRunLoopRun + 356
3 CoreFoundation 0x36888ec3 CFRunLoopRunSpecific + 230
4 CoreFoundation 0x36888dcb CFRunLoopRunInMode + 58
5 MapKit 0x313ae215 +[NSThread(MKAdditions) _mapkit_runThread:] + 340
6 Foundation 0x34ce5389 -[NSThread main] + 44
7 Foundation 0x34d575cd __NSThread__main__ + 972
8 libsystem_c.dylib 0x34600311 _pthread_start + 248
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c73ec __workq_kernreturn + 8
Thread: Unknown Name
0 libsystem_kernel.dylib 0x345c73ec __workq_kernreturn + 8
Will be grateful for any suggestions how to fix this crash.
This crash happens because of a memory leak or zombie object. You are releasing an object which later on is accessed on the main thread. Best way to track this down is to use instruments leaks detection or NSZombie.
The leak could be anywhere in your app, the crash report can't give you a lot of help on that.