How to trace these crashes? - objective-c

I have been working with Obj-C, Xcode from years, but at times these crash happens to a project. I have no clue how to deal with these.
If someone has any idea, please guide me towards right direction, so that I can workout.
NOTE: The following logs are sent by customer from the live app.
Snipped of crash log is;
Date/Time: 2018-02-08 16:39:36.053 +0530
OS Version: Mac OS X 10.12.6 (16G29)
Report Version: 12
Anonymous UUID: 163431E3-7543-821C-B71C-392218AA5AD3
Sleep/Wake UUID: 1D59C34E-52D6-4F57-A2CE-4C8FAC4387FE
Time Awake Since Boot: 9100 seconds
Time Since Wake: 6000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: EXC_I386_GPFLT
Exception Note: EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libdispatch.dylib 0x00007fffdb6ca521 _dispatch_call_block_and_release + 9
1 libdispatch.dylib 0x00007fffdb6c18fc _dispatch_client_callout + 8
2 libdispatch.dylib 0x00007fffdb6ceaac _dispatch_main_queue_callback_4CF + 925
3 com.apple.CoreFoundation 0x00007fffc5facbc9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
4 com.apple.CoreFoundation 0x00007fffc5f6dc0d __CFRunLoopRun + 2205
5 com.apple.CoreFoundation 0x00007fffc5f6d114 CFRunLoopRunSpecific + 420
6 com.apple.HIToolbox 0x00007fffc54cdebc RunCurrentEventLoopInMode + 240
7 com.apple.HIToolbox 0x00007fffc54cdcf1 ReceiveNextEventCommon + 432
8 com.apple.HIToolbox 0x00007fffc54cdb26 _BlockUntilNextEventMatchingListInModeWithFilter + 71
9 com.apple.AppKit 0x00007fffc3a66a54 _DPSNextEvent + 1120
10 com.apple.AppKit 0x00007fffc41e27ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
11 com.apple.AppKit 0x00007fffc3a5b3db -[NSApplication run] + 926
12 com.apple.AppKit 0x00007fffc3a25e0e NSApplicationMain + 1237
13 libdyld.dylib 0x00007fffdb6f7235 start + 1
Thread 1:
0 libsystem_kernel.dylib 0x00007fffdb825bf2 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fffdb9117fa _pthread_cond_wait + 712
2 libc++.1.dylib 0x00007fffda28e4cd std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 47
3 com.apple.JavaScriptCore 0x00007fffc8f7b43c void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 108
4 com.apple.JavaScriptCore 0x00007fffc8f7b3bb bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop() + 155
5 com.apple.JavaScriptCore 0x00007fffc8f7b28d bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadEntryPoint(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*) + 29
6 com.apple.JavaScriptCore 0x00007fffc8f7b53d void* std::__1::__thread_proxy<std::__1::tuple<void (*)(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*), bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*> >(void*) + 93
7 libsystem_pthread.dylib 0x00007fffdb91093b _pthread_body + 180
8 libsystem_pthread.dylib 0x00007fffdb910887 _pthread_start + 286
9 libsystem_pthread.dylib 0x00007fffdb91008d thread_start + 13

0 libdispatch.dylib 0x00007fffdb6ca521 _dispatch_call_block_and_release + 9
1 libdispatch.dylib 0x00007fffdb6c18fc _dispatch_client_callout + 8
2 libdispatch.dylib 0x00007fffdb6ceaac _dispatch_main_queue_callback_4CF + 925
The crash is happening when GCD is trying to execute a block on the main thread. Check you callback blocks to make sure they are cleanly capturing state and that all blocks that need to be copied are copied correctly.
This is likely because there is some object captured by the block that was prematurely released or because the block itself was over-released (unlikely).

Related

Objective c dispatch_async crash

code :
- (void)stopCurrentSessionFromSuite:(NSNotification*)notification{
isCloseCurrentSession = YES;
dispatch_async(self.dataSendingQueue, ^{
CARD8 messageToDisableSession = rpcHostDisableMsg;
[readerNwriter writeExact:(char*)&messageToDisableSession ofLenght:sizeof(CARD8) secApplied:NO];
});
[rpcCaptureMgr stopCaptureSession];
}
Crash :
Time Awake Since Boot: 1400 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes:
KERN_INVALID_ADDRESS at 0x0000000000000070 Exception Note:
EXC_CORPSE_NOTIFY
Termination Signal: Segmentation fault: 11 Termination Reason:
Namespace SIGNAL, Code 0xb Terminating Process: exc handler [0]
VM Regions Near 0x70:
-->
__TEXT 000000010871a000-000000010873a000 [ 128K] r-x/rwx SM=COW
/Applications/RemotePCSuite/*/RemotePCDesktop.app/Contents/MacOS/RemotePCDesktop
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0
libdispatch.dylib 0x00007fff72de50db
_dispatch_continuation_async + 5 1 com.prosoftnet.remotepcDesktop 0x0000000108727fd5
-[RPCDesktopAppDelegate stopCurrentSessionFromSuite:] + 104 2 com.apple.CoreFoundation 0x00007fff4b7a333c
CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER + 12 3 com.apple.CoreFoundation 0x00007fff4b7a32cf
_CFXRegistrationPost_block_invoke + 63 4 com.apple.CoreFoundation 0x00007fff4b7ab92c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 12 5
com.apple.CoreFoundation 0x00007fff4b78e8a3 __CFRunLoopDoBlocks
+ 275 6 com.apple.CoreFoundation 0x00007fff4b78e668 __CFRunLoopRun + 3128 7 com.apple.CoreFoundation 0x00007fff4b78d797 CFRunLoopRunSpecific + 487 8 com.apple.HIToolbox
0x00007fff4aaa2866 RunCurrentEventLoopInMode + 286 9
com.apple.HIToolbox 0x00007fff4aaa25d6
ReceiveNextEventCommon + 613 10 com.apple.HIToolbox
0x00007fff4aaa2354 _BlockUntilNextEventMatchingListInModeWithFilter +
64 11 com.apple.AppKit 0x00007fff48d9fa23 _DPSNextEvent
+ 2085 12 com.apple.AppKit 0x00007fff49534e6c -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044 13 com.apple.AppKit 0x00007fff48d94831 -[NSApplication run]
+ 764 14 com.apple.AppKit 0x00007fff48d639d2 NSApplicationMain + 804 15 libdyld.dylib
0x00007fff72e0c145 start + 1

Why did IntelliJ IDEA crash?

My IntelliJ IDEA's Version is 15.0.6 (IU-143.2370.31)
It always crashes when I use it.
Here is the snippet of the problem report
Process: idea [7902]
Path: /Applications/IntelliJ IDEA 15.app/Contents/MacOS/idea
Identifier: com.jetbrains.intellij
Version: 15.0.6 (IU-143.2370.31)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: idea [7902]
User ID: 501
Date/Time: 2016-07-18 19:11:13.744 +0800
OS Version: Mac OS X 10.11.5 (15F34)
Report Version: 11
Anonymous UUID: F89C4D90-6E24-6839-A0EC-646466E39AF6
Sleep/Wake UUID: 483379D4-51BE-4BC7-9DAA-912784CD219D
Time Awake Since Boot: 68000 seconds
Time Since Wake: 37000 seconds
System Integrity Protection: enabled
Crashed Thread: 18 Java: Java2D Queue Flusher
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: EXC_I386_GPFLT
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
abort() called
Thread 0:: AppKit Thread Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff9ab45f72 mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff9ab453b3 mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff8b8e51c4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff8b8e468c __CFRunLoopRun + 1356
4 com.apple.CoreFoundation 0x00007fff8b8e3ed8 CFRunLoopRunSpecific + 296
5 com.apple.HIToolbox 0x00007fff9befc935 RunCurrentEventLoopInMode + 235
6 com.apple.HIToolbox 0x00007fff9befc76f ReceiveNextEventCommon + 432
7 com.apple.HIToolbox 0x00007fff9befc5af _BlockUntilNextEventMatchingListInModeWithFilter + 71
8 com.apple.AppKit 0x00007fff8bd1adf6 _DPSNextEvent + 1067
9 com.apple.AppKit 0x00007fff8bd1a226 -[NSApplication _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 454
10 libosxapp.dylib 0x000000012c0c54e3 -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 124
11 com.apple.AppKit 0x00007fff8bd0ed80 -[NSApplication run] + 682
12 libosxapp.dylib 0x000000012c0c5346 +[NSApplicationAWT runAWTLoopWithApp:] + 156
13 liblwawt.dylib 0x000000012cac617d -[AWTStarter starter:] + 873
14 com.apple.Foundation 0x00007fff9cf15fde __NSThreadPerformPerform + 279
15 com.apple.CoreFoundation 0x00007fff8b905881 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
16 com.apple.CoreFoundation 0x00007fff8b8e4fbc __CFRunLoopDoSources0 + 556
17 com.apple.CoreFoundation 0x00007fff8b8e44df __CFRunLoopRun + 927
18 com.apple.CoreFoundation 0x00007fff8b8e3ed8 CFRunLoopRunSpecific + 296
19 com.jetbrains.intellij 0x00000001000013bf main + 357
20 com.jetbrains.intellij 0x0000000100001238 start + 52
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff9ab4cefa kevent_qos + 10
1 libdispatch.dylib 0x00007fff97b8a165 _dispatch_mgr_invoke + 216
2 libdispatch.dylib 0x00007fff97b89dcd _dispatch_mgr_thread + 52
Thread 2:
0 libsystem_kernel.dylib 0x00007fff9ab4bdb6 __psynch_cvwait + 10
1 libsystem_pthread.dylib 0x00007fff8afaa728 _pthread_cond_wait + 767
2 libjvm.dylib 0x0000000104d2f85f os::PlatformEvent::park() + 173
3 libjvm.dylib 0x0000000104d0f97a ParkCommon(ParkEvent*, long long) + 42
4 libjvm.dylib 0x0000000104d1016c Monitor::IWait(Thread*, long long) + 160
5 libjvm.dylib 0x0000000104d10348 Monitor::wait(bool, long, bool) + 246
6 libjvm.dylib 0x0000000104e0943c Threads::destroy_vm() + 80
7 libjvm.dylib 0x0000000104c20cdd jni_DestroyJavaVM + 223
8 com.jetbrains.intellij 0x0000000100003837 -[Launcher launch] + 851
9 com.apple.Foundation 0x00007fff9ced4e64 __NSThread__start__ + 1351
10 libsystem_pthread.dylib 0x00007fff8afa999d _pthread_body + 131
11 libsystem_pthread.dylib 0x00007fff8afa991a _pthread_start + 168
12 libsystem_pthread.dylib 0x00007fff8afa7351 thread_start + 13
I don't know why is this, who can explain it for me?
Looks like a bug in IDEA, see the issue IDEA-146955.

CEF crashes on closing NSWindow in Macbook PRO(Only on Touchpad not for mouse click)

I have integrated CEF Framework into my project.
Its working fine for mouse based window close but it crashes If I use inbuilt touch pad of mac book pro while closing browser pop up window.
The pop up window is generate by CEF.
I am able to reproduce the crash like above most of the times.
Here is the crash log
Process: cefclient [1271] Path:
/Users/USER/Documents/*/cefclient.app/Contents/MacOS/cefclient
Identifier: com.genband.omni.mac Version:
1.0.0.30 (1.0.0.30) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: cefclient [1271] User
ID: 501
Date/Time: 2016-07-07 14:54:14.865 +0530 OS Version:
Mac OS X 10.10.2 (14C1514) Report Version: 11 Anonymous UUID:
0F54FCED-4D82-FEB9-5CD2-3A541BF3C022
Sleep/Wake UUID: C774E441-04B7-4295-A913-3AD622E6B6F3
Time Awake Since Boot: 4300 seconds Time Since Wake: 710 seconds
Crashed Thread: 0 CrBrowserMain Dispatch queue:
com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes:
KERN_INVALID_ADDRESS at 0x0000443e46cfbec0
VM Regions Near 0x443e46cfbec0:
mapped file 0000000124936000-0000000124b36000 [ 2048K] rw-/rwx SM=ALI /private/var/folders//.3KjSNY
-->
MALLOC_NANO 0000600000000000-0000600000200000 [ 2048K] rw-/rwx SM=PRV
Application Specific Information: objc_msgSend() selector name:
respondsToSelector: Performing #selector(_close:) from sender
_NSThemeCloseWidget 0x608000186320
Thread 0 Crashed:: CrBrowserMain Dispatch queue:
com.apple.main-thread 0 libobjc.A.dylib
0x00007fff9303f0dd objc_msgSend + 29 1 com.apple.AppKit
0x00007fff87802735 -[NSWindow close] + 312 2 libsystem_trace.dylib
0x00007fff84178cd7 _os_activity_initiate + 75 3 com.apple.AppKit
0x00007fff877b9b71 -[NSApplication sendAction:to:from:] + 452 4
com.apple.AppKit 0x00007fff877b9970 -[NSControl
sendAction:to:] + 86 5 com.apple.AppKit
0x00007fff8798f86c __26-[NSCell _sendActionFrom:]_block_invoke + 131 6
libsystem_trace.dylib 0x00007fff84178cd7
_os_activity_initiate + 75 7 com.apple.AppKit 0x00007fff87802509 -[NSCell _sendActionFrom:] + 144 8
libsystem_trace.dylib 0x00007fff84178cd7
_os_activity_initiate + 75 9 com.apple.AppKit 0x00007fff87801d66 -[NSButtonCell performClick:] + 1027 10
com.apple.Foundation 0x00007fff83eaecdc
__NSThreadPerformPerform + 293 11 com.apple.CoreFoundation 0x00007fff90285681
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17 12 com.apple.CoreFoundation 0x00007fff902778dc
__CFRunLoopDoSources0 + 476 13 com.apple.CoreFoundation 0x00007fff90276e3f __CFRunLoopRun + 927 14 com.apple.CoreFoundation
0x00007fff90276858 CFRunLoopRunSpecific + 296 15 com.apple.HIToolbox
0x00007fff8ab26aef RunCurrentEventLoopInMode + 235 16
com.apple.HIToolbox 0x00007fff8ab2686a
ReceiveNextEventCommon + 431 17 com.apple.HIToolbox
0x00007fff8ab266ab _BlockUntilNextEventMatchingListInModeWithFilter +
71 18 com.apple.AppKit 0x00007fff875eaf81
_DPSNextEvent + 964 19 com.apple.AppKit 0x00007fff875ea730 -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] + 194 20
com.apple.AppKit 0x00007fff875de593 -[NSApplication
run] + 594 21 org.chromium.ContentShell.framework 0x000000010d1b7c81
0x10d080000 + 1277057 22 org.chromium.ContentShell.framework
0x000000010d1b72e4 0x10d080000 + 1274596 23
org.chromium.ContentShell.framework 0x000000010d1ef893 0x10d080000 +
1505427 24 org.chromium.ContentShell.framework 0x000000010d1dd80d
0x10d080000 + 1431565 25 com.genband.omni.mac
0x000000010ceb9d69 client::MainMessageLoopStd::Run() + 9
(main_message_loop_std.cc:15) 26 com.genband.omni.mac
0x000000010cee6c12 main + 2354 (cefclient_mac.mm:1747) 27
libdyld.dylib 0x00007fff8433d5c9 start + 1
Any suggestions are highly welcome
Changing the window_ delegate to nil, in dealloc method of root_window_mac.mm cleared the crash problem for me.

In MAC 10.10.5 MyApp crashes

MyApp has crashed and I have collected the below crash log from that MAC book. As it is mentioned the application crashed at thread 3, I could not able to figure out what has happened,
I was suspecting it could be because of a NSTimer Lock and tryLock, but not sure how to figure it out. Crash is not happening with all MAC book but only to a certain set of users all of them are just migrated to MAC 10.10.5. But I have also other MAC book which has MAC 10.10.5 in which MyApp is running perfectly.
can anyone help me out to find the problem?
If i looked at the code at [AppMainController sendPacketForLoginStatus] + 1644
it is just a comment line just after the curly brace { starting of an else{}
if
...
else
{
<< line no: 1644>> // Change the status icon if necessary when losing the focus
[self performSelectorOnMainThread:#selector(showClickStatusIconWhenLoseFocusInThread) withObject:nil waitUntilDone:NO];
...
Crash log:
Process: MyAppAgent [581]
Path: /Applications/MyAppAgent.app/Contents/MacOS/MyAppAgent
Identifier: com.Mycmp.MyApp.MyAppAgent
Version: 1.0.0.1
Code Type: X86 (Native)
Parent Process: ??? [1]
Responsible: MyAppAgent [581]
User ID: 501
Date/Time: 2015-09-08 10:32:09.940 -0400
OS Version: Mac OS X 10.10.5 (14F27)
Crashed Thread: 3
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000022b0dd78
....
Thread 3 Crashed:
0 com.Mycmp.MyApp.MyAppAgent 0x00012a74 -[AppMainController sendPacketForLoginStatus] + 1644
1 com.Mycmp.MyApp.MyAppAgent 0x0001012c -[AppMainController timerQueryDiscovery:] + 1726
2 com.apple.Foundation 0x943ba76f __NSFireTimer + 119
3 com.apple.CoreFoundation 0x90653006 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22
4 com.apple.CoreFoundation 0x90652ab4 __CFRunLoopDoTimer + 1316
5 com.apple.CoreFoundation 0x906ce54f __CFRunLoopDoTimers + 351
6 com.apple.CoreFoundation 0x9060a531 __CFRunLoopRun + 2081
7 com.apple.CoreFoundation 0x90609aa6 CFRunLoopRunSpecific + 390
8 com.apple.CoreFoundation 0x9060990b CFRunLoopRunInMode + 123
9 com.apple.Foundation 0x944043ea -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 305
10 com.apple.Foundation 0x944847fa -[NSRunLoop(NSRunLoop) run] + 76
11 com.Mycmp.MyApp.MyAppAgent 0x00002ff0 -[AppMainController threadDiscovery:] + 360
12 com.apple.Foundation 0x943acb8d -[NSThread main] + 45
13 com.apple.Foundation 0x943ac936 __NSThread__main__ + 1538
14 libsystem_pthread.dylib 0x9abfcc25 _pthread_body + 138
15 libsystem_pthread.dylib 0x9abfcb9b _pthread_start + 162
16 libsystem_pthread.dylib 0x9abf9e32 thread_start + 34

Crash log from Apple approval team

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 :-( )