Here's the issue. I have the .xarchive with all the DSYMs but for whatever reason using symbolicatecrash or xcode is only converting some of the symbols to lines while leaving other ones unconverted. Any ideas? I'm using xCode 4.3.2 on OS X Lion.
For example, from a crash log from the appstore
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x37f0e628 _semwait_signal + 24
1 libsystem_c.dylib 0x33d66b1a nanosleep
2 libsystem_c.dylib 0x33d71608 sleep
3 AudioToolbox 0x362b7abc AudioQueueNew(bool, AudioStreamBasicDescription const*, TCACallback const&, CACallbackTarget const&, unsigned long, OpaqueAudioQueue*)
4 AudioToolbox 0x362b77da AudioQueueNewOutput
5 AVFoundation 0x359b718e allocAudioQueue(AVAudioPlayer*, AudioPlayerImpl*)
6 AVFoundation 0x359b54b4 prepareToPlayQueue(AVAudioPlayer*, AudioPlayerImpl*)
7 AVFoundation 0x359b5a3c playQueue(AVAudioPlayer*, AudioPlayerImpl*, AudioTimeStamp const*)
8 AVFoundation 0x359b58d2 -[AVAudioPlayer play]
9 APP_ 0x00049ffe 0x00049ffe
10 APP_ 0x0004fbfe 0x0004fbfe
11 APP_ 0x00051b9a 0x00051b9a
12 APP_ 0x00016462 0x00016462
13 Foundation 0x3704f92c _NSFireDelayedPerform
14 CoreFoundation 0x3156aa2c _CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
15 CoreFoundation 0x3156a692 _CFRunLoopDoTimer
16 CoreFoundation 0x31569268 CFRunLoopRun + 1200
17 CoreFoundation 0x314ec49e CFRunLoopRunSpecific
18 CoreFoundation 0x314ec366 CFRunLoopRunInMode
19 GraphicsServices 0x329c5432 GSEventRunModal
20 UIKit 0x317f1cce UIApplicationMain
21 APP 0x000032c0 0x000032c0
22 APP_ 0x00003270 0x00003270
Symbolicated:
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x37f0e628 _semwait_signal + 24
1 libsystem_c.dylib 0x33d66b1a nanosleep + 138
2 libsystem_c.dylib 0x33d71608 sleep + 40
3 AudioToolbox 0x362b7abc _ZL13AudioQueueNewbPK27AudioStreamBasicDescriptionRK11TCACallbackIPvS3_ERK16CACallbackTargetmPP16OpaqueAudioQueue + 680
4 AudioToolbox 0x362b77da AudioQueueNewOutput + 126
5 AVFoundation 0x359b718e _ZL15allocAudioQueueP13AVAudioPlayerP15AudioPlayerImpl + 86
6 AVFoundation 0x359b54b4 _ZL18prepareToPlayQueueP13AVAudioPlayerP15AudioPlayerImpl + 20
7 AVFoundation 0x359b5a3c ZL9playQueueP13AVAudioPlayerP15AudioPlayerImplPK14AudioTimeStamp + 184
8 AVFoundation 0x359b58d2 -[AVAudioPlayer play] + 162
9 APP 0x00049ffe 0x00049ffe
10 APP_ 0x0004fbfe 0x0004fbfe
11 APP_ 0x00051b9a 0x00051b9a
12 APP_ 0x00016462 -[BackpackSetupViewController scenario] (BackpackSetupViewController.m:167)
13 Foundation 0x3704f92c _NSFireDelayedPerform + 408
14 CoreFoundation 0x3156aa2c _CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION_ + 8
15 CoreFoundation 0x3156a692 _CFRunLoopDoTimer + 358
16 CoreFoundation 0x31569268 CFRunLoopRun + 1200
17 CoreFoundation 0x314ec49e CFRunLoopRunSpecific + 294
18 CoreFoundation 0x314ec366 CFRunLoopRunInMode + 98
19 GraphicsServices 0x329c5432 GSEventRunModal + 130
20 UIKit 0x317f1cce UIApplicationMain + 1074
21 APP 0x000032c0 main (main.m:14)
22 APP_ 0x00003270 0x00003270
Related
This crash is from crash report of app. Multiple URL requests crash cause of it. I want to figure out how to repeat the crash and why the crash happened.
Incident Identifier: 4A2BA2B1-9174-410F-9D51-88A151884484
CrashReporter Key: TODO
Hardware Model: iPhone8,1
Code Type: ARM-64
Parent Process: ??? [1]
Date/Time: 2016-09-28 02:43:26 +0000
OS Version: iPhone OS 10.0.2 (14A456)
Report Version: 104
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0x0
Crashed Thread: 21
Thread 21 Crashed:
0 CFNetwork _CFURLRequestCopyContentDispositionEncodingFallbackArray + 48
1 CFNetwork HTTPProtocol::updateForHeader(__CFHTTPMessage*) + 260
2 CFNetwork HTTPProtocol::performHeaderReadPostProcessing(__CFHTTPMessage*, unsigned char) + 156
3 CFNetwork HTTPProtocol::performHeaderRead(__CFHTTPMessage*) + 992
4 CFNetwork HTTPProtocol::handleStreamEvent(__CFHTTPMessage*, dispatch_data_s*, CFStreamError const*) + 496
5 CFNetwork ___ZN15HTTPTransaction22_onqueue_invokeHandlerEv_block_invoke.64 + 60
6 libdispatch.dylib _dispatch_client_callout + 16
7 libdispatch.dylib _dispatch_block_invoke_direct + 376
8 CFNetwork RunloopBlockContext::_invoke_block(void const*, void*) + 36
9 CoreFoundation CFArrayApplyFunction + 68
10 CFNetwork RunloopBlockContext::perform() + 136
11 CFNetwork MultiplexerSource::perform() + 312
12 CFNetwork MultiplexerSource::_perform(void*) + 64
13 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
14 CoreFoundation __CFRunLoopDoSources0 + 524
15 CoreFoundation __CFRunLoopRun + 804
16 CoreFoundation CFRunLoopRunSpecific + 444
17 CFNetwork +[NSURLConnection(Loader) _resourceLoadLoop:] + 336
18 Foundation __NSThread__start__ + 1024
19 libsystem_pthread.dylib _pthread_body + 240
20 libsystem_pthread.dylib _pthread_body + 0
21 libsystem_pthread.dylib thread_start + 4
What are the chances those crashes are totally unrelated to my app, and caused by some other 3rd party app installed on users device?
Application Specific Information:
objc_msgSend() selector name: nsli_layoutEngine
Thread 0 Crashed:
0 libobjc.A.dylib 0x0000000192eefbd0 objc_msgSend + 16
1 Foundation 0x0000000183473370 -[NSLayoutConstraint _layoutEngine] + 48
2 Foundation 0x0000000183473c18 +[NSLayoutConstraint _addOrRemoveConstraints:activate:] + 236
3 UIKit 0x00000001873bf4a0 -[_UIAlertControllerView _updateBackdrop] + 504
4 UIKit 0x00000001873beb40 -[_UIAlertControllerView _updateStyle] + 164
5 UIKit 0x000000018703fc48 -[UIAlertController traitCollectionDidChange:] + 192
6 UIKit 0x0000000186f84118 -[UIViewController _updateTraitsIfNecessary] + 232
7 UIKit 0x0000000186c71564 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 340
8 QuartzCore 0x00000001865c9994 -[CALayer layoutSublayers] + 164
9 QuartzCore 0x00000001865c4564 CA::Layer::layout_if_needed(CA::Transaction*) + 316
10 QuartzCore 0x00000001865c4408 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 28
11 QuartzCore 0x00000001865c3c08 CA::Context::commit_transaction(CA::Transaction*) + 272
12 QuartzCore 0x00000001865c398c CA::Transaction::commit() + 432
13 UIKit 0x0000000186ee4db0 _UIWindowUpdateVisibleContextOrder + 236
14 UIKit 0x0000000186ee4bf8 +[UIWindow _prepareWindowsPassingTestForAppResume:] + 28
15 UIKit 0x0000000186f08710 -[UIApplication _updateSnapshotAndStateRestorationArchiveForBackgroundEvent:saveState:exitIfCouldNotRestoreState:] + 192
16 UIKit 0x0000000186f07924 __80-[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:]_block_invoke_2 + 132
17 libdispatch.dylib 0x00000001935213ac _dispatch_call_block_and_release + 20
18 libdispatch.dylib 0x000000019352136c _dispatch_client_callout + 12
19 libdispatch.dylib 0x0000000193525980 _dispatch_main_queue_callback_4CF + 928
20 CoreFoundation 0x0000000182479fa4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
21 CoreFoundation 0x000000018247804c __CFRunLoopRun + 1488
22 CoreFoundation 0x00000001823a50a4 CFRunLoopRunSpecific + 392
23 GraphicsServices 0x000000018b50b5a4 GSEventRunModal + 164
24 UIKit 0x0000000186cda3c0 UIApplicationMain + 1484
25 Pogoplug 0x00000001000ef9f4 main (main.m:11)
26 libdyld.dylib 0x000000019354aa08 start + 0
And another one:
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0x0
Crashed Thread: 9
Application Specific Information:
Selector name found in current argument registers: URL
Thread 9 Crashed:
0 libobjc.A.dylib 0x38ddcf78 lookUpImpOrForward
+ 48
1 libobjc.A.dylib 0x38ddcf3f _class_lookupMethodAndLoadCache3 + 32
2 libobjc.A.dylib 0x38de31f9 _objc_msgSend_uncached + 22
3 UIKit 0x2e91f539 -[UIActivityItemProvider main] + 22
4 Foundation 0x2ba51505 -[__NSOperationInternal _start:] + 766
5 Foundation 0x2baf6557 __NSOQSchedule_f + 184
6 libdispatch.dylib 0x3934c4d3 _dispatch_queue_drain$VARIANT$mp + 1460
7 libdispatch.dylib 0x3934bda1 _dispatch_queue_invoke$VARIANT$mp + 82
8 libdispatch.dylib 0x3934e491 _dispatch_root_queue_drain + 386
9 libdispatch.dylib 0x3934f8a3 _dispatch_worker_thread3 + 104
10 libsystem_pthread.dylib 0x394c2da9 _pthread_wqthread + 666
11 libsystem_pthread.dylib 0x394c2afc start_wqthread + 6
And here the list of view controllers being presented before those crashes occur:
2015/03/28 01:07:20:382 {DEBUG} : _UIDocumentActivityViewController
2015/03/28 01:07:20:382 {DEBUG} : UIAlertController
2015/03/28 01:07:20:383 {DEBUG} : _UIActivityGroupListViewController
2015/03/28 01:07:20:383 {DEBUG} : SFAirDropActivityViewController
2015/03/28 01:07:20:391 {DEBUG} : UIActivityGroupViewController
2015/03/28 01:07:20:391 {DEBUG} : UIActivityGroupViewController
I had the same crash and found that I was trying to present UIActivityViewController from non-existent item (actually, from rightBarButtonItem that was nil).
In my app I occasionally get a crash when navigating away from a view with a GMSMapView in it (popping it from my UINavigationController). It's crashing on thread 10, and here's the crash info:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000004
Crashed Thread: 10
And the stack trace for that thread:
Thread 10 name: Dispatch queue: URLConnection
Thread 10 Crashed:
0 libsystem_c.dylib 0x39ef897c OSAtomicAdd32 + 0
1 CoreData 0x31bf3de4 _PFfastQueueRelease + 24
2 CoreData 0x31bd3ee8 -[NSManagedObject release] + 224
3 CoreFoundation 0x31d2d30c CFRelease + 96
4 CoreFoundation 0x31d47e96 -[__NSDictionaryM dealloc] + 130
5 Trail Tracker GPS 0x00206076 -[GMSTileDataCache .cxx_destruct] + 162
6 libobjc.A.dylib 0x39a90f3a object_cxxDestructFromClass(objc_object*, objc_class*) + 54
7 libobjc.A.dylib 0x39a8e0ce objc_destructInstance + 30
8 libobjc.A.dylib 0x39a8e3a2 object_dispose + 10
9 Trail Tracker GPS 0x00201810 -[GMSTileDataCache dealloc] + 172
10 Trail Tracker GPS 0x0030da12 -[GMSDASHTileService .cxx_destruct] + 318
11 libobjc.A.dylib 0x39a90f3a object_cxxDestructFromClass(objc_object*, objc_class*) + 54
12 libobjc.A.dylib 0x39a8e0ce objc_destructInstance + 30
13 libobjc.A.dylib 0x39a8e3a2 object_dispose + 10
14 Trail Tracker GPS 0x00309786 -[GMSDASHTileService dealloc] + 182
15 libobjc.A.dylib 0x39a90f3a object_cxxDestructFromClass(objc_object*, objc_class*) + 54
16 libobjc.A.dylib 0x39a8e0ce objc_destructInstance + 30
17 libobjc.A.dylib 0x39a8e3a2 object_dispose + 10
18 CoreFoundation 0x31d2d30c CFRelease + 96
19 CoreFoundation 0x31d37a0e -[__NSArrayI dealloc] + 74
20 Trail Tracker GPS 0x00230e84 -[GMSDASHStreamingBody .cxx_destruct] + 40
21 libobjc.A.dylib 0x39a90f3a object_cxxDestructFromClass(objc_object*, objc_class*) + 54
22 libobjc.A.dylib 0x39a8e0ce objc_destructInstance + 30
23 libobjc.A.dylib 0x39a8e3a2 object_dispose + 10
24 CoreFoundation 0x31d2d30c CFRelease + 96
25 CFNetwork 0x31aececa CoreReadStreamFromCFReadStream::~CoreReadStreamFromCFReadStream() + 38
26 CFNetwork 0x31aece8a CoreReadStreamFromCFReadStream::~CoreReadStreamFromCFReadStream() + 6
27 CoreFoundation 0x31d2d3ce CFRelease + 290
28 CFNetwork 0x31a4f7be HTTPRequest::~HTTPRequest() + 74
29 CFNetwork 0x31a4f76a HTTPRequest::~HTTPRequest() + 6
30 CoreFoundation 0x31d2d3ce CFRelease + 290
31 CFNetwork 0x31a54992 URLRequest::~URLRequest() + 106
32 CFNetwork 0x31a5491e URLRequest::~URLRequest() + 6
33 CoreFoundation 0x31d2d3ce CFRelease + 290
34 CFNetwork 0x31a4464c __CFURLCacheNode::~__CFURLCacheNode() + 40
35 CFNetwork 0x31a429de __CFURLCacheNode::~__CFURLCacheNode() + 6
36 CFNetwork 0x31a4f57e __CFURLCache::RemoveResponseFromCacheContainers(__CFURLCacheNode*, _CFCachedURLResponse const*, __CFString const*, bool) + 158
37 CFNetwork 0x31a4d71e __CFURLCache::AddResponseIntoCacheContainers(__CFString const*, __CFURLCacheNode*, bool) + 102
38 CFNetwork 0x31a4d652 __CFURLCache::CreateAndStoreCacheNode(__CFURLCacheNode*, _CFCachedURLResponse const*, __CFString const*, _CFURLRequest const*, void const*, bool, bool&) + 186
39 CFNetwork 0x31a900c8 __CFURLCache::AddCacheTask0(__CFURLCacheNode*) + 320
40 CFNetwork 0x31a8ff78 __CFURLCache::AddCacheTask(__CFURLCacheNode*) + 28
41 CFNetwork 0x31a4d55e CFURLCacheAddCachedResponseForRequest + 622
42 CFNetwork 0x31ac7ac4 ___internalEvent_WillCacheResponse_block_invoke_0 + 28
43 CFNetwork 0x31ac91ca URLConnectionClient_Classic::_delegate_willCacheResponse(_CFCachedURLResponse const*, void ()(_CFCachedURLResponse const*) block_pointer) + 42
44 CFNetwork 0x31ac7a96 URLConnectionClient::_internalEvent_WillCacheResponse() + 586
45 CFNetwork 0x31ac7b8c URLConnectionClient::_clientEvent_DidFinishLoading() + 172
46 CFNetwork 0x31acdaa8 ___withClientAsync_block_invoke_0 + 20
47 CFNetwork 0x31ac6426 ___withWorkQueueAsync_block_invoke_0 + 10
48 CFNetwork 0x31af0e34 ___performAsync_block_invoke_0 + 24
49 libdispatch.dylib 0x39ea911c _dispatch_call_block_and_release + 8
50 libdispatch.dylib 0x39ea8996 _dispatch_queue_drain$VARIANT$up + 142
51 libdispatch.dylib 0x39ea8890 _dispatch_queue_invoke$VARIANT$up + 32
52 libdispatch.dylib 0x39eb7212 _dispatch_root_queue_drain + 190
53 libdispatch.dylib 0x39eb73b4 _dispatch_worker_thread2 + 80
54 libsystem_c.dylib 0x39edda0e _pthread_wqthread + 358
55 libsystem_c.dylib 0x39edd8a0 start_wqthread + 4`
Has anyone seen crashes like this from GMSMapView or the Google Maps SDK?
I had this issue with Xcode 5 - DP 5 and a previous version of the Google Maps SDK. I upgraded the SDK and things seemed to go away.
Apple has rejected my app because it crashes and I can't find a way to know where the problem is. They say that the crash was on an iPhone 4 with iOS6.
I have built the archive with Xcode 4.4 and iOS 5.1. I have already upgrade to Xcode 4.5 and iOS 6. As you will see, Xcode doesn't identify the symbols on every line of the stack trace; in particular, the system function names are missing, maybe due to the update and not the same version on my computer; I don't know.
I'm just unable to reproduce this crash, I don't have an iPhone 4, just a 3GS and have no bugs.
Here is the log:
Incident Identifier: 23FCC6BC-FB56-4681-8254-E72A01891A80
CrashReporter Key: 1378004e4baa9919d5598a6dec7f08d687552155
Hardware Model: xxx
Process: Myapp [598]
Path: /var/mobile/Applications/31F1CD56-357C-4969-8DBA-F19E7D2AF638/Myapp.app/Myapp
Identifier: Myapp
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-09-26 14:40:48.221 -0700
OS Version: iOS 6.0 (10A403)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x3403129e __exceptionPreprocess + 158
1 libobjc.A.dylib 0x3380397a objc_exception_throw + 26
2 CoreFoundation 0x34031158 +[NSException raise:format:arguments:] + 96
3 Foundation 0x38ff62aa 0x38f86000 + 459434
4 UIKit 0x36c55776 0x36b66000 + 980854
5 UIKit 0x36c54fca -[UIViewController presentViewController:withTransition:completion:] + 3390
6 CoreFoundation 0x340349c0 0x33f6f000 + 809408
7 CoreFoundation 0x33f8bfe6 0x33f6f000 + 118758
8 UIKit 0x36d7372e -[_UIDelayedPresentationContext finishDelayedPresentation:] + 182
9 GameKit 0x32c1dd28 __41-[GKRemoteViewController setupRemoteView]_block_invoke_0327 + 20
10 libdispatch.dylib 0x3840a11a _dispatch_call_block_and_release + 6
11 libdispatch.dylib 0x384094b2 _dispatch_client_callout + 18
12 libdispatch.dylib 0x3840adc6 0x38408000 + 11718
13 CoreFoundation 0x34004f36 __CFRunLoopRun + 1286
14 CoreFoundation 0x33f77eb8 CFRunLoopRunSpecific + 352
15 CoreFoundation 0x33f77d44 0x33f6f000 + 36164
16 GraphicsServices 0x34ce02e6 0x34cdb000 + 21222
17 UIKit 0x36bbd2fc UIApplicationMain + 1116
18 Crossibus 0x0003cc96 main (main.m:16)
19 Crossibus 0x0003cc4c start + 36
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x32d00350 __pthread_kill + 8
1 libsystem_c.dylib 0x380db11e pthread_kill + 54
2 libsystem_c.dylib 0x3811796e abort + 90
3 libc++abi.dylib 0x38c0dd4a abort_message + 70
4 libc++abi.dylib 0x38c0aff4 default_terminate() + 20
5 libobjc.A.dylib 0x33803a74 _objc_terminate() + 144
6 libc++abi.dylib 0x38c0b078 safe_handler_caller(void (*)()) + 76
7 libc++abi.dylib 0x38c0b110 std::terminate() + 16
8 libc++abi.dylib 0x38c0c50e __cxa_throw + 118
9 libobjc.A.dylib 0x338039ba objc_exception_throw + 90
10 CoreFoundation 0x34031158 +[NSException raise:format:arguments:] + 96
11 Foundation 0x38ff62aa -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 86
12 UIKit 0x36c55776 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 166
13 UIKit 0x36c54fca -[UIViewController presentViewController:withTransition:completion:] + 3390
14 CoreFoundation 0x340349c0 __invoking___ + 64
15 CoreFoundation 0x33f8bfe6 -[NSInvocation invoke] + 282
16 UIKit 0x36d7372e -[_UIDelayedPresentationContext finishDelayedPresentation:] + 182
17 GameKit 0x32c1dd28 __41-[GKRemoteViewController setupRemoteView]_block_invoke_0327 + 20
18 libdispatch.dylib 0x3840a11c _dispatch_call_block_and_release + 8
19 libdispatch.dylib 0x384094b4 _dispatch_client_callout + 20
20 libdispatch.dylib 0x3840adc6 _dispatch_main_queue_callback_4CF$VARIANT$up + 222
21 CoreFoundation 0x34004f36 __CFRunLoopRun + 1286
22 CoreFoundation 0x33f77eb8 CFRunLoopRunSpecific + 352
23 CoreFoundation 0x33f77d44 CFRunLoopRunInMode + 100
24 GraphicsServices 0x34ce02e6 GSEventRunModal + 70
25 UIKit 0x36bbd2fc UIApplicationMain + 1116
26 Crossibus 0x0003cc96 main (main.m:16)
27 Crossibus 0x0003cc4c start + 36
Thread 1 name: Dispatch queue: com.apple.root.default-priority
Thread 1:
0 libsystem_kernel.dylib 0x32d00d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x380b25e8 pthread_workqueue_addthreads_np + 44
2 libdispatch.dylib 0x38417eb0 _dispatch_queue_wakeup_global_slow + 72
3 libdispatch.dylib 0x384097da _dispatch_wakeup$VARIANT$up + 106
4 libdispatch.dylib 0x38417a24 _dispatch_queue_push_list_slow2 + 16
5 libxpc.dylib 0x3742a820 _xpc_connection_mach_event + 828
6 libdispatch.dylib 0x38419df4 _dispatch_mach_msg_invoke$VARIANT$up + 120
7 libdispatch.dylib 0x3840995a _dispatch_queue_drain$VARIANT$up + 82
8 libdispatch.dylib 0x3841a06a _dispatch_mach_invoke$VARIANT$up + 150
9 libdispatch.dylib 0x38418212 _dispatch_root_queue_drain + 190
10 libdispatch.dylib 0x384183b4 _dispatch_worker_thread2 + 80
11 libsystem_c.dylib 0x380b2a0e _pthread_wqthread + 358
12 libsystem_c.dylib 0x380b28a0 start_wqthread + 4
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x32cf0648 kevent64 + 24
1 libdispatch.dylib 0x384194ec _dispatch_mgr_invoke + 792
2 libdispatch.dylib 0x3840bdf4 _dispatch_mgr_thread$VARIANT$up + 32
Thread 3 name: Dispatch queue: com.apple.uikit._UIViewServiceXPCProxy 0x1ededbb0 target:<_UIQueueRedirectingProxy: 0x1ed77750; target: <_UIViewServiceFencingControlProxy: 0x1ed82fc0; target: <_UIViewServiceImplicitAnimationDecodingProxy: 0x1ed678e0; target: <_UIObjectArgumentReplacingProxy: 0x1ed6ef60; target: <_UIStrongToWeakAdapter: 0x1edae420; target: <GKRemoteAuthenticateViewController: 0x1ed6c490>>>>; suspension count: 0>; queue: 0x3bebd580 (com.apple.main-thread)>
Thread 3:
0 libobjc.A.dylib 0x33800f2a objc_release + 10
1 XPCObjects 0x37d9fc66 __destroy_helper_block_133 + 18
2 libsystem_blocks.dylib 0x3427bab0 _Block_release + 220
3 libxpc.dylib 0x374256c4 _xpc_connection_call_reply + 28
4 libdispatch.dylib 0x38409996 _dispatch_queue_drain$VARIANT$up + 142
5 libdispatch.dylib 0x38409890 _dispatch_queue_invoke$VARIANT$up + 32
6 libdispatch.dylib 0x38418212 _dispatch_root_queue_drain + 190
7 libdispatch.dylib 0x384183b4 _dispatch_worker_thread2 + 80
8 libsystem_c.dylib 0x380b2a0e _pthread_wqthread + 358
9 libsystem_c.dylib 0x380b28a0 start_wqthread + 4
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x32cefeb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x32cf0048 mach_msg + 36
2 CoreFoundation 0x34006040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x34004d9e __CFRunLoopRun + 878
4 CoreFoundation 0x33f77eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x33f77d44 CFRunLoopRunInMode + 100
6 WebCore 0x34d5ba70 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x380bd30e _pthread_start + 306
8 libsystem_c.dylib 0x380bd1d4 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x32d00d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x380b2cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x380b2a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x380b28a0 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x3be7e534
r4: 0x00000006 r5: 0x3be7eb88 r6: 0x1ed61194 r7: 0x2fdc4a14
r8: 0x1ed61170 r9: 0x00000300 r10: 0x1ed65e20 r11: 0x36ffaa2f
ip: 0x00000148 sp: 0x2fdc4a08 lr: 0x380db123 pc: 0x32d00350
cpsr: 0x00070010
Can you provide any insight into what's wrong or how to determine what's wrong?
Edit:
I think i have found, it was a problem with Game Center and IOS 6. The method "authenticateWithCompletionHandler" is deprecated and make it crash.
Thanks.
1) Your 3GS works fine and its running iOS 6, right?
2) You don't need to switch completely to Xcode4.5 if you don't want to for some reason, just install it side by side with Xcode4.4.1 and just use it to test and run your app in a Retina iPhone simulator.
3) If you still cannot get the crash, then I am going to make a wild guess that this is your problem:
5 UIKit 0x36c54fca -[UIViewController presentViewController:withTransition:completion:] + 3390
Is the presentedViewController retained in a strong variable (if using ARC), or in a retained property in the presenting ViewController? If not make it so, but then, no way to know for sure if it fixes the problem.
A good reason to build up points here is to be able to add a bounty for an answer - I believe 50 points is the min. Assuming you know Android well (given last name, isn't going to make you friends here in iOS land), answer a few question now and get some points.
With a bounty, you maybe can get someone to test your app on their phone by building an Ad Hoc version of the app (but Provisioning H*ll awaits :-( )
Today i tried running my app on my iPhone device, and it crashed! It worked perfectly fine on the simulator, I don't know what the problem is.
These are the crash logs:
Identifier: Evader
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-09-13 16:41:54.656 -0700
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x377d888f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x354dd259 objc_exception_throw + 33
2 CoreFoundation 0x377d8789 +[NSException raise:format:] + 1
3 Foundation 0x380173a3 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 91
4 Evader 0x0012ca41 -[CCSprite initWithTexture:] (CCSprite.m:192)
5 Evader 0x0012c1b1 +[CCSprite spriteWithTexture:] (CCSprite.m:83)
6 Evader 0x0011eb3d -[CCProgressTimer initWithTexture:] (CCProgressTimer.m:69)
7 Evader 0x0011ea55 -[CCProgressTimer initWithFile:] (CCProgressTimer.m:59)
8 Evader 0x0011e9e1 +[CCProgressTimer progressWithFile:] (CCProgressTimer.m:55)
9 Evader 0x00173579 -[HelloWorldLayer lives] (HelloWorldLayer.m:256)
10 Evader 0x001723ed -[HelloWorldLayer init] (HelloWorldLayer.m:101)
11 Evader 0x0010f073 +[CCNode node] (CCNode.m:258)
12 Evader 0x0017bd11 -[StartMenu doThis:] (StartMenu.m:75)
13 CoreFoundation 0x377db7e4 __invoking___ + 68
14 CoreFoundation 0x377367b1 -[NSInvocation invoke] + 161
15 Evader 0x0010aa03 -[CCMenuItem activate] (CCMenuItem.m:129)
16 Evader 0x001085ff -[CCMenu ccTouchEnded:withEvent:] (CCMenu.m:198)
17 CoreFoundation 0x377323fd -[NSObject performSelector:withObject:withObject:] + 53
18 Evader 0x0014f4ff -[CCTouchDispatcher touches:withEvent:withTouchType:] (CCTouchDispatcher.m:268)
19 Evader 0x0014fc43 -[CCTouchDispatcher touchesEnded:withEvent:] (CCTouchDispatcher.m:338)
20 Evader 0x001515c3 -[EAGLView touchesEnded:withEvent:] (EAGLView.m:332)
21 UIKit 0x314c692b -[UIWindow _sendTouchesForEvent:] + 319
22 UIKit 0x314c6319 -[UIWindow sendEvent:] + 381
23 UIKit 0x314ac695 -[UIApplication sendEvent:] + 357
24 UIKit 0x314abf3b _UIApplicationHandleEvent + 5827
25 GraphicsServices 0x33eee22b PurpleEventCallback + 883
26 CoreFoundation 0x377ac523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
27 CoreFoundation 0x377ac4c5 __CFRunLoopDoSource1 + 141
28 CoreFoundation 0x377ab313 __CFRunLoopRun + 1371
29 CoreFoundation 0x3772e4a5 CFRunLoopRunSpecific + 301
30 CoreFoundation 0x3772e36d CFRunLoopRunInMode + 105
31 GraphicsServices 0x33eed439 GSEventRunModal + 137
32 UIKit 0x314dacd5 UIApplicationMain + 1081
33 Evader 0x00171029 main (main.m:14)
34 Evader 0x000dec68 start + 40
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3198f32c __pthread_kill + 8
1 libsystem_c.dylib 0x3408c208 pthread_kill + 48
2 libsystem_c.dylib 0x34085298 abort + 88
3 libc++abi.dylib 0x36f12f64 abort_message + 40
4 libc++abi.dylib 0x36f10346 _ZL17default_terminatev + 18
5 libobjc.A.dylib 0x354dd350 _objc_terminate + 140
6 libc++abi.dylib 0x36f103be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x36f1044a std::terminate() + 14
8 libc++abi.dylib 0x36f1181e __cxa_rethrow + 82
9 libobjc.A.dylib 0x354dd2a2 objc_exception_rethrow + 6
10 CoreFoundation 0x3772e506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x3772e366 CFRunLoopRunInMode + 98
12 GraphicsServices 0x33eed432 GSEventRunModal + 130
13 UIKit 0x314dacce UIApplicationMain + 1074
14 Evader 0x00171022 main (main.m:14)
15 Evader 0x000dec60 start + 32
I have tried to look for the error, but I do not know what to look for. Can someone help solve this problem?
CCSprite initWithTexture: raises the exception that causes your app to exit. I'm not entirely up on Cocos2d but a quick check in the documentation suggests it raises exceptions on failure to find named files.
That being the case, I'd guess the problem is simply one of filename case. Macs are by default case insensitive. So if you have FunnyImage.png then the simulator will succeed if you attempt to load funnyimage.png.
iOS devices are case sensitive. So it will fail if you attempt to load funnyimage.png.
So probably what you want to do is check that all the filenames you've used in code exactly match the case of the actual files.