Iphone App crashes on AD HOC - ios

my app runs fine on development mode, but for some reason on ad hoc i get a crash right after loading screen.
I really can't understand what could be wrong, any tips on how to test it better?
Apple rejected it with this message:
We found that your app failed to launch on an iPhone 5 and iPad 3rd gen running iOS 6.1.3, on both Wi-Fi and cellular networks.
We encountered the issue when selecting the application on the Home screen - the app displayed a launch image then quit unexpectedly. This may be because iOS 6 uses a watchdog timer for applications; if an application takes too long to complete its initial startup, the operating system terminates the application.
For information about the watchdog timer, please see Technical Q&A: Application does not crash when launched from debugger but crashes when launched by user..
Another possibility could be a missing entitlement. For more information, please see the Technical Note: Resolving "0x800003A", applications not launching and "missing entitlement".For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. Please be sure to:
include the complete details of your rejection issues
prepare any symbolicated crash logs, screenshots, and steps to reproduce the issues for when the DTS engineer follows up.
For information on how to symbolicate and read a crash log, please see Tech Note TN2151 Understanding and Analyzing iPhone OS Application Crash Reports.
If you have difficulty reproducing this issue, please try testing the workflow as described in https://developer.apple.com/library/ios/qa/qa1764/Testing Workflow with Xcode's Archive feature".
log:
Incident Identifier: 594EE41B-0B8D-419A-B9B8-84CB58D1C174
CrashReporter Key: bb741ef3c315eb6c114b0de36494c7de51511d89
Hardware Model: iPhone5,2
Process: tictactoe [85964]
Path: /var/mobile/Applications/F042F618-9077-4862-8938-ABADDC05E8B1/tictactoe.app/tictactoe
Identifier: tictactoe
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-04-17 11:11:02.661 +0100
OS Version: iOS 6.1.2 (10B146)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: EXC_ARM_DA_ALIGN at 0x20b8f671
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 tictactoe 0x00073708 -[CCBReader readFloat] (CCBReader.m:201)
1 tictactoe 0x00075972 -[CCBReader readSequences] (CCBReader.m:959)
2 tictactoe 0x00075bf8 -[CCBReader readFileWithCleanUp:actionManagers:] (CCBReader.m:1020)
3 tictactoe 0x00075e9c +[CCBReader nodeGraphFromData:owner:parentSize:] (CCBReader.m:1061)
4 tictactoe 0x0007605e +[CCBReader nodeGraphFromFile:owner:parentSize:] (CCBReader.m:1090)
5 tictactoe 0x00076122 +[CCBReader sceneWithNodeGraphFromFile:owner:parentSize:] (CCBReader.m:1105)
6 tictactoe 0x000760f2 +[CCBReader sceneWithNodeGraphFromFile:owner:] (CCBReader.m:1100)
7 tictactoe 0x000711f8 -[AppController application:didFinishLaunchingWithOptions:] (AppDelegate.m:85)
8 UIKit 0x34957a9c -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 248
9 UIKit 0x34957620 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1164
10 UIKit 0x3494f82e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694
11 UIKit 0x348f7d1a -[UIApplication handleEvent:withNewEvent:] + 1006
12 UIKit 0x348f77a8 -[UIApplication sendEvent:] + 68
13 UIKit 0x348f71ea _UIApplicationHandleEvent + 6194
14 GraphicsServices 0x3660e5f4 _PurpleEventCallback + 588
15 GraphicsServices 0x3660e222 PurpleEventCallback + 30
16 CoreFoundation 0x32abd3e4 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
17 CoreFoundation 0x32abd386 __CFRunLoopDoSource1 + 134
18 CoreFoundation 0x32abc20a __CFRunLoopRun + 1378
19 CoreFoundation 0x32a2f238 CFRunLoopRunSpecific + 352
20 CoreFoundation 0x32a2f0c4 CFRunLoopRunInMode + 100
21 UIKit 0x3494e468 -[UIApplication _run] + 664
22 UIKit 0x3494b2b4 UIApplicationMain + 1116
23 tictactoe 0x00070e1a main (main.m:14)
24 libdyld.dylib 0x3ac06b1c start + 0
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x3acbd5d0 kevent64 + 24
1 libdispatch.dylib 0x3abf8d22 _dispatch_mgr_invoke + 806
2 libdispatch.dylib 0x3abf4374 _dispatch_mgr_thread + 32
Thread 2:
0 libsystem_kernel.dylib 0x3accdd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3ac1bad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3ac1b7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3ac1b680 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x3accdd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3ac1bad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3ac1b7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3ac1b680 start_wqthread + 4
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x3acbce30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3acbcfd0 mach_msg + 48
2 CoreFoundation 0x32abd2b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x32abc02c __CFRunLoopRun + 900
4 CoreFoundation 0x32a2f238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x32a2f0c4 CFRunLoopRunInMode + 100
6 WebCore 0x38a2e390 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x3ac260de _pthread_start + 306
8 libsystem_c.dylib 0x3ac25fa4 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x3accdd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3ac1bad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3ac1b7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3ac1b680 start_wqthread + 4
Thread 6 name: com.apple.NSURLConnectionLoader
Thread 6:
0 libsystem_kernel.dylib 0x3acbce30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3acbcfd0 mach_msg + 48
2 CoreFoundation 0x32abd2b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x32abc02c __CFRunLoopRun + 900
4 CoreFoundation 0x32a2f238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x32a2f0c4 CFRunLoopRunInMode + 100
6 Foundation 0x3337c888 +[NSURLConnection(Loader) _resourceLoadLoop:] + 304
7 Foundation 0x3340022c __NSThread__main__ + 968
8 libsystem_c.dylib 0x3ac260de _pthread_start + 306
9 libsystem_c.dylib 0x3ac25fa4 thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x3accdd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3ac1bad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3ac1b7f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3ac1b680 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x0000000c r1: 0x00000275 r2: 0x20b8f671 r3: 0x00000271
r4: 0x1f570000 r5: 0x000eafc5 r6: 0x00000001 r7: 0x2fddd618
r8: 0x3859ca59 r9: 0x00000003 r10: 0x3859cbdc r11: 0x1f579bb0
ip: 0x00073495 sp: 0x2fddd614 lr: 0x000736e5 pc: 0x00073708
cpsr: 0x00000030
.......

Related

Apple rejected app because of crash I cannot reproduce [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 9 years ago.
Improve this question
My app was rejected because of a crash on iPad, but I am unable to reproduce it. What should I do?
We found that your app crashed on iPad running iOS 7.0.4, which is
not in compliance with the App Store Review Guidelines.
Your app crashed when we launch the app.
This occurred when your app was used:
On Wi-Fi
We have attached detailed crash logs to help troubleshoot this issue. For information on how to symbolicate and read a crash log,
please see Tech Note TN2151 Understanding and Analyzing iPhone OS
Application Crash Reports.
If you have difficulty reproducing this issue, please try testing the workflow as described in Testing Workflow with Xcode's
Archive feature.
For discrete code-level questions, you may wish to consult with Apple Developer Technical Support. Please be sure to prepare any
symbolicated crash logs, screenshots, or steps to reproduce the issues
for when the DTS engineer follows up.
2.10
Also, we found that your app crashed on iPad, which doesn't meet the requirements for running on iPad, as required by the App Store
Review Guidelines.
This is the Crash Report.
Incident Identifier: BE08340B-BD3C-4834-A4B8-DEE44FDB8CF9
CrashReporter Key: c9a77ef4dcc63290176c21a5175ca5807a28eca5
Hardware Model: xxx
Process: Lottery [670]
Path: /var/mobile/Applications/470EA3B5-E92D-48AB-8DAD-66B4FB6F3950/Lottery.app/Lottery
Identifier: CaiwangClient
Version: 1.0.0 (1.0.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-01-26 09:14:30.717 -0800
OS Version: iOS 7.0.4 (11B554a)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
(0x2d9bee83 0x381656c7 0x2d9beb89 0x2e37ae3f 0x2e2e0139 0xd5b3d 0xd52c9 0xca485 0x2e3a2e4b 0x2d989f1f 0x2d9893e7 0x2d987bd7 0x2d8f2471 0x2d8f2253 0x326002eb 0x301a7845 0xdf37f 0x3865eab7)
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x387151fc __pthread_kill + 8
1 libsystem_pthread.dylib 0x3877ca4f pthread_kill + 55
2 libsystem_c.dylib 0x386c6029 abort + 73
3 libc++abi.dylib 0x37b1498b abort_message + 71
4 libc++abi.dylib 0x37b2d6e3 default_terminate_handler() + 251
5 libobjc.A.dylib 0x38165937 _objc_terminate() + 191
6 libc++abi.dylib 0x37b2b1b1 std::__terminate(void (*)()) + 77
7 libc++abi.dylib 0x37b2ad13 __cxa_rethrow + 99
8 libobjc.A.dylib 0x3816580b objc_exception_rethrow + 39
9 CoreFoundation 0x2d8f24e3 CFRunLoopRunSpecific + 639
10 CoreFoundation 0x2d8f224f CFRunLoopRunInMode + 103
11 GraphicsServices 0x326002e7 GSEventRunModal + 135
12 UIKit 0x301a7841 UIApplicationMain + 1133
13 Lottery 0x000df37b 0x98000 + 291707
14 libdyld.dylib 0x3865eab5 start + 1
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x38702838 kevent64 + 24
1 libdispatch.dylib 0x386510d1 _dispatch_mgr_invoke + 229
2 libdispatch.dylib 0x3864b61f _dispatch_mgr_thread + 35
Thread 2:
0 libsystem_kernel.dylib 0x38715c7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38779e07 _pthread_wqthread + 307
2 libsystem_pthread.dylib 0x38779cc0 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x38702a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3870287d mach_msg + 37
2 CoreFoundation 0x2d989555 __CFRunLoopServiceMachPort + 153
3 CoreFoundation 0x2d987c75 __CFRunLoopRun + 789
4 CoreFoundation 0x2d8f246d CFRunLoopRunSpecific + 521
5 CoreFoundation 0x2d8f224f CFRunLoopRunInMode + 103
6 Lottery 0x000d312f 0x98000 + 241967
7 Foundation 0x2e3a2c33 __NSThread__main__ + 1059
8 libsystem_pthread.dylib 0x3877bc5b _pthread_body + 139
9 libsystem_pthread.dylib 0x3877bbcb _pthread_start + 99
10 libsystem_pthread.dylib 0x38779ccc thread_start + 4
Thread 4 name: com.apple.NSURLConnectionLoader
Thread 4:
0 libsystem_kernel.dylib 0x38702a84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3870287d mach_msg + 37
2 CoreFoundation 0x2d989555 __CFRunLoopServiceMachPort + 153
3 CoreFoundation 0x2d987c75 __CFRunLoopRun + 789
4 CoreFoundation 0x2d8f246d CFRunLoopRunSpecific + 521
5 CoreFoundation 0x2d8f224f CFRunLoopRunInMode + 103
6 Foundation 0x2e32d4bd +[NSURLConnection(Loader) _resourceLoadLoop:] + 317
7 Foundation 0x2e3a2c33 __NSThread__main__ + 1059
8 libsystem_pthread.dylib 0x3877bc5b _pthread_body + 139
9 libsystem_pthread.dylib 0x3877bbcb _pthread_start + 99
10 libsystem_pthread.dylib 0x38779ccc thread_start + 4
Thread 5 name: Dispatch queue: com.apple.root.default-priority
Thread 5:
0 libsystem_kernel.dylib 0x38702ad4 semaphore_wait_trap + 8
1 libdispatch.dylib 0x3864fde1 _dispatch_semaphore_wait_slow + 173
2 libxpc.dylib 0x3878a0d7 xpc_connection_send_message_with_reply_sync + 151
3 SystemConfiguration 0x3011d35b _reach_server_target_remove + 91
4 SystemConfiguration 0x3011d2cb __SCNetworkReachabilityServer_targetRemove + 39
5 SystemConfiguration 0x30104311 __SCNetworkReachabilityDeallocate + 93
6 CoreFoundation 0x2d8eee2d CFRelease + 465
7 libdispatch.dylib 0x3864f7d5 _dispatch_root_queue_drain + 221
8 libdispatch.dylib 0x3864f9c1 _dispatch_worker_thread2 + 53
9 libsystem_pthread.dylib 0x38779dfd _pthread_wqthread + 297
10 libsystem_pthread.dylib 0x38779cc0 start_wqthread + 4
Thread 6 name: com.apple.CFSocket.private
Thread 6:
0 libsystem_kernel.dylib 0x38715440 __select + 20
1 CoreFoundation 0x2d98d457 __CFSocketManager + 483
2 libsystem_pthread.dylib 0x3877bc5b _pthread_body + 139
3 libsystem_pthread.dylib 0x3877bbcb _pthread_start + 99
4 libsystem_pthread.dylib 0x38779ccc thread_start + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00002060
r4: 0x00000006 r5: 0x3a2e618c r6: 0x00000000 r7: 0x27d6b594
r8: 0x14d6f380 r9: 0x00000001 r10: 0x00000000 r11: 0x001058cc
ip: 0x00000148 sp: 0x27d6b588 lr: 0x3877ca53 pc: 0x387151fc
cpsr: 0x00000010

symbolication with atos giving wrong reason for the crash

In my current project I am getting random crashes,may be due to memory overshoot.But I actually want to figure out which class lead to that crash.So I used symbolication method to find the reason of crash.
Here is what I have done:
Firstly, XCode Build settings are like this :
Strip Debug Sysbols During Copy : NO
Deployment PostProcessing : YES
Strip Linked Product : YES
Generate Debug Symbols : YES
Debug Info Format : DWARF with dSYM file
Use Separate Strip : YES
I am using iOS 5.1 with 4.3.2 version of XCode. I have used "symbolicatecrash" and "atos" methods to reveal the reason of the crash.But I was not able to find the reason for the crash.
So I tried this. I made the application crash by myself by accessing an out of bound index from the array. I have used that to verify the symbolicated crash result output with my actual crash.
Here is the crash report output:
Incident Identifier: 93678EE5-ED10-4502-A59B-5C7526640C4D
CrashReporter Key: 5a79e41767bd1988a9b4080ee5641f63ed42feb8
Hardware Model: iPad2,1
Process: MyAppName [887]
Path: /var/mobile/Applications/EF2C944B-4C26-4EB6-B41E-F89CF2232ADB/JAYPORE.app/MyAppName
Identifier: MyAppName
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-07-13 13:37:18.642 +0530
OS Version: iPhone OS 5.0.1 (9A405)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3028432c __pthread_kill + 8
1 libsystem_c.dylib 0x37725f54 pthread_kill + 48
2 libsystem_c.dylib 0x3771efe4 abort + 88
3 MyAppName 0x00104aa0 0x5e000 + 682656
4 Foundation 0x34ebc1b0 -[NSObject(NSThreadPerformAdditions) performSelector:onThread:withObject:waitUntilDone:modes:] + 260
5 Foundation 0x34ebbe42 -[NSObject(NSThreadPerformAdditions) performSelectorOnMainThread:withObject:waitUntilDone:] + 130
6 MyAppName 0x00104924 0x5e000 + 682276
7 MyAppName 0x00118634 0x5e000 + 763444
8 MyAppName 0x00116b36 0x5e000 + 756534
9 libsystem_c.dylib 0x37730532 _sigtramp + 42
10 libsystem_c.dylib 0x37725f54 pthread_kill + 48
11 libsystem_c.dylib 0x3771efe4 abort + 88
12 MyAppName 0x00118658 0x5e000 + 763480
13 CoreFoundation 0x37c23980 __handleUncaughtException + 68
14 libobjc.A.dylib 0x3776f2ca _objc_terminate + 122
15 libc++abi.dylib 0x3017e3be _ZL19safe_handler_callerPFvvE + 70
16 libc++abi.dylib 0x3017e44a std::terminate() + 14
17 libc++abi.dylib 0x3017f81e __cxa_rethrow + 82
18 libobjc.A.dylib 0x3776f22e objc_exception_rethrow + 6
19 CoreFoundation 0x37b7953e CFRunLoopRunSpecific + 398
20 CoreFoundation 0x37b7939e CFRunLoopRunInMode + 98
21 GraphicsServices 0x37950fc6 GSEventRunModal + 150
22 UIKit 0x316f973c UIApplicationMain + 1084
23 MyAppName 0x0005ffc8 0x5e000 + 8136
24 MyAppName 0x0005ff6c 0x5e000 + 8044
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x302743b4 kevent + 24
1 libdispatch.dylib 0x307dff74 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x307dfc92 _dispatch_mgr_thread + 30
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x30274010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x30274206 mach_msg + 50
2 CoreFoundation 0x37bf741c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x37bf6154 __CFRunLoopRun + 876
4 CoreFoundation 0x37b794d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x37b7939e CFRunLoopRunInMode + 98
6 WebCore 0x32650128 _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x376e7c16 _pthread_start + 314
8 libsystem_c.dylib 0x376e7ad0 thread_start + 0
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x30274010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x30274206 mach_msg + 50
2 CoreFoundation 0x37bf741c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x37bf6154 __CFRunLoopRun + 876
4 CoreFoundation 0x37b794d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x37b7939e CFRunLoopRunInMode + 98
6 Foundation 0x34ec8bc2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 302
7 Foundation 0x34ec8a8a -[NSThread main] + 66
8 Foundation 0x34f5c59a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x376e7c16 _pthread_start + 314
10 libsystem_c.dylib 0x376e7ad0 thread_start + 0
Thread 4 name: com.apple.CFSocket.private
Thread 4:
0 libsystem_kernel.dylib 0x30284570 __select + 20
1 CoreFoundation 0x37bfb66a __CFSocketManager + 726
2 libsystem_c.dylib 0x376e7c16 _pthread_start + 314
3 libsystem_c.dylib 0x376e7ad0 thread_start + 0
Thread 5 name: Dispatch queue: com.apple.CFURLCACHE_work_queue
Thread 5:
0 libsystem_kernel.dylib 0x30275ac4 fsync + 8
1 libsqlite3.dylib 0x30741656 0x30704000 + 251478
2 libsqlite3.dylib 0x30746434 0x30704000 + 271412
3 libsqlite3.dylib 0x30741394 0x30704000 + 250772
4 libsqlite3.dylib 0x30737350 0x30704000 + 209744
5 libsqlite3.dylib 0x30719a6c 0x30704000 + 88684
6 libsqlite3.dylib 0x3072ccb4 0x30704000 + 167092
7 libsqlite3.dylib 0x3072b6ce sqlite3_step + 2098
8 libsqlite3.dylib 0x3070a732 sqlite3_exec + 366
9 CFNetwork 0x33a3cedc __CFURLCache::ExecSQLStatement_NoLock(sqlite3*, char const*, int (*)(void*, int, char**, char**), void*, long) + 32
10 CFNetwork 0x33a3fc7c _ZL24_CFURLCacheTimerCallbackPv + 320
11 libdispatch.dylib 0x307e133e _dispatch_source_invoke + 510
12 libdispatch.dylib 0x307dec60 _dispatch_queue_invoke$VARIANT$mp + 44
13 libdispatch.dylib 0x307ded9e _dispatch_queue_drain + 198
14 libdispatch.dylib 0x307dec56 _dispatch_queue_invoke$VARIANT$mp + 34
15 libdispatch.dylib 0x307df860 _dispatch_worker_thread2 + 204
16 libsystem_c.dylib 0x376e21c8 _pthread_wqthread + 288
17 libsystem_c.dylib 0x376e209c start_wqthread + 0
Thread 6:
0 libsystem_kernel.dylib 0x30284cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x376e230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x376e209c start_wqthread + 0
Thread 7:
0 libsystem_kernel.dylib 0x30284cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x376e230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x376e209c start_wqthread + 0
Thread 8:
0 libsystem_kernel.dylib 0x30274010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x30274206 mach_msg + 50
2 CoreFoundation 0x37bf741c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x37bf6154 __CFRunLoopRun + 876
4 CoreFoundation 0x37b794d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x37b7939e CFRunLoopRunInMode + 98
6 Foundation 0x34ebcb7e -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x34ed652c -[NSRunLoop(NSRunLoop) run] + 72
8 JAYPORE 0x00108a9a 0x5e000 + 699034
9 Foundation 0x34ec8a8a -[NSThread main] + 66
10 Foundation 0x34f5c59a __NSThread__main__ + 1042
11 libsystem_c.dylib 0x376e7c16 _pthread_start + 314
12 libsystem_c.dylib 0x376e7ad0 thread_start + 0
Thread 9:
0 libsystem_kernel.dylib 0x30284cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x376e230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x376e209c start_wqthread + 0
Thread 10:
0 libsystem_kernel.dylib 0x30284cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x376e230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x376e209c start_wqthread + 0
Thread 11:
0 libsystem_kernel.dylib 0x30284cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x376e230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x376e209c start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3f504ce8 r6: 0x30caec02 r7: 0x2fe5c4ec
r8: 0x00000006 r9: 0x00000000 r10: 0x00000005 r11: 0x2fe5c558
ip: 0x00000148 sp: 0x2fe5c4e0 lr: 0x37725f5b pc: 0x3028432c
cpsr: 0x00000010
Binary Images:
0x5e000 - 0x14efff +JAYPORE armv7 <a9b02230373d3b4aba282d21f94fb780> /var/mobile/Applications/EF2C944B-4C26-4EB6-B41E-F89CF2232ADB/JAYPORE.app/JAYPORE
0x1178000 - 0x1182fff AccessibilitySettingsLoader armv7 <45d7c264810c364b976dba254572d73d> /System/Library/AccessibilityBundles/AccessibilitySettingsLoader.bundle/AccessibilitySettingsLoader
0x2fe5d000 - 0x2fe7efff dyld armv7 <be7c0b491a943054ad12eb5060f1da06> /usr/lib/dyld
0x3001c000 - 0x30179fff libmecabra.dylib armv7 <170c82a3c716372abe7ae0aae96d4805> /usr/lib/libmecabra.dylib
...long list of binary images.
Now when I use "atos" to get the reason of crash from the Thread 0(which caused the crash)
3 MyAppName 0x00104aa0 0x5e000 + 682656
using above address,it gives me this output:
MAC66:Resources sourabhbhardwaj$ atos -arch arm -o /Users/myPath/MyAppName.app.dSYM/Contents/Resources/DWARF/MyAppName 0x00079f6c 0x78000 + 8044
-[FirstViewController setUIAndText] (in MyAppName) (FirstViewController.m:85)
-[SecondViewController DeleteByID:] (in MyAppName) (SecondViewController.m:415)
+
-[MyController viewWillAppear:] (in MyAppName) (MyController.m:137)
which is not the actual line of crash which I have made. I have made crash on other view controller and the output is entirely different.How can this be possible??
Yes,I have cross checked that I am using the exact same dSYM file for that binary.
Quick help needed.
Thanks
Sourabh
I'm sure this is too late to help, but just in case: you may not be giving atos all the parameters it needs. In particular, make sure you are specifying (with -l) the load address of the application, and (with -arch) the architecture. You can find this in the binary image line you quoted above (it changes with each crashdump):
0x5e000 - 0x14efff +JAYPORE armv7 <a9b02230373d3b4aba282d21f94fb780> /var/mobile/Applications/EF2C944B-4C26-4EB6-B41E-F89CF2232ADB/JAYPORE.app/JAYPORE
The 0x5e000 is the load address. So try running something like xcrun atos -l 0x5e000 -arch armv7 -o YourArchive.xcarchive/Products/Applications/YourApp.app/YourApp 0x00104aa0.
You can find more details about what the load address is and why it changes each time in Kerni's answer to this similar question. (But while it's good to know how it works, it's usually more convenient to use the -l parameter to atos rather than doing the math yourself.)
Before symbolicating, make sure you have the same .app and the .dSYM of the build that crashed or else it will not be symbolicated properly.

Accepted AppStore app crash on every device

Just released this morning an app that I tested on all possible devices and simulators, but when I downloaded it from the store the application crashes at startup. I have tested it on many devices and iOS versions, but the result is the same:
Incident Identifier: B34024C9-9F00-4E57-B3AB-068CFFC55119
CrashReporter Key: 81ac2324b459bfeeb1a13c007d9d04e59e6efaf2
Hardware Model: iPhone4,1
Process: iMatematica [9546]
Path: /var/mobile/Applications/CFFA51F9-52F9-4555-8C5B-1B2DDF5E2D5B/iMatematica.app/iMatematica
Identifier: iMatematica
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-08-04 07:24:08.703 +0200
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x35eb532c __pthread_kill + 8
1 libsystem_c.dylib 0x32a01208 pthread_kill + 48
2 libsystem_c.dylib 0x329fa298 abort + 88
3 iMatematica 0x0007eee0 0x1000 + 515808
4 CoreFoundation 0x355ff950 __handleUncaughtException + 68
5 libobjc.A.dylib 0x379a633e _objc_terminate + 122
6 libc++abi.dylib 0x359b53be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x359b544a std::terminate() + 14
8 libc++abi.dylib 0x359b681e __cxa_rethrow + 82
9 libobjc.A.dylib 0x379a62a2 objc_exception_rethrow + 6
10 CoreFoundation 0x35555506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x35555366 CFRunLoopRunInMode + 98
12 UIKit 0x33064864 -[UIApplication _run] + 544
13 UIKit 0x33061cce UIApplicationMain + 1074
14 iMatematica 0x00009a88 main (main.m:18)
15 iMatematica 0x000039b0 0x1000 + 10672
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x35ea53a8 kevent + 24
1 libdispatch.dylib 0x3448ff04 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x3448fc22 _dispatch_mgr_thread + 30
Thread 2:
0 libsystem_kernel.dylib 0x35eb5cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x329bcf36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x329bccc8 start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x35eb5cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x329bcf36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x329bccc8 start_wqthread + 0
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x35ea5004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x35ea51fa mach_msg + 50
2 CoreFoundation 0x355d33ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x355d2124 __CFRunLoopRun + 876
4 CoreFoundation 0x3555549e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x35555366 CFRunLoopRunInMode + 98
6 WebCore 0x31454c9c _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x329c272e _pthread_start + 314
8 libsystem_c.dylib 0x329c25e8 thread_start + 0
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x35ea5004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x35ea51fa mach_msg + 50
2 CoreFoundation 0x355d33ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x355d2124 __CFRunLoopRun + 876
4 CoreFoundation 0x3555549e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x35555366 CFRunLoopRunInMode + 98
6 Foundation 0x3508ebb2 +[NSURLConnection(Loader) _resourceLoadLoop:] + 302
7 Foundation 0x3508ea7a -[NSThread main] + 66
8 Foundation 0x3512258a __NSThread__main__ + 1042
9 libsystem_c.dylib 0x329c272e _pthread_start + 314
10 libsystem_c.dylib 0x329c25e8 thread_start + 0
Thread 6:
0 libsystem_kernel.dylib 0x35eb5cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x329bcf36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x329bccc8 start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3ec0cd98 r6: 0x00000002 r7: 0x2fdff9c0
r8: 0x3f02bce0 r9: 0x00000000 r10: 0x0021f0a0 r11: 0x33410c0d
ip: 0x00000148 sp: 0x2fdff9b4 lr: 0x32a0120f pc: 0x35eb532c
cpsr: 0x00000010
The problem is only happening to me or is the same as last month: that is a problem of apple server that sign apps?
I solved the problem: changing the language from Italian (my native language) to English, the application works properly. This explains why the AppReview Team has not noticed the crash, and was due to a missing localization in a xib file: "Could not load NIB bundle: 'NSBundle (loaded)' with name 'MasterViewController'"

Crash while integrating Brad Larson's GPUImage

Im trying to integrate Brad Larson's GPUImage framework to my project. The sample code works fine. After I've intergrated, it builds fine but Im facing crash while running it. It crashes at AVCaptureVideoDataOutputSampleBufferDelegate method,
- (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection;
Particularly at
runOnMainQueueWithoutDeadlocking block. I tried to find out the crash area but couldn't find it even after some few hours of time on seeing the crash log too. I didnt get any idea about the crash. Below is the crash log of Im getting on it. Can some one point me out the issue in it? I also have a doubt that, can I use to continue the queue in name com.sunsetlakesoftware.GPUImage.processingQueue?
Date/Time: 2012-06-19 17:46:28.449 +0530
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0xb00566c0
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x344faf78 objc_msgSend + 16
1 GPUTest 0x0017d16a __74-[GPUImageVideoCamera captureOutput:didOutputSampleBuffer:fromConnection:]_block_invoke_0118 (GPUImageVideoCamera.m:415)
2 libdispatch.dylib 0x35b03b24 _dispatch_barrier_sync_f_slow_invoke + 72
3 libdispatch.dylib 0x35b02e8a _dispatch_main_queue_callback_4CF$VARIANT$up + 190
4 CoreFoundation 0x3247d2a6 __CFRunLoopRun + 1262
5 CoreFoundation 0x3240049e CFRunLoopRunSpecific + 294
6 CoreFoundation 0x32400366 CFRunLoopRunInMode + 98
7 GraphicsServices 0x31557432 GSEventRunModal + 130
8 UIKit 0x31effcce UIApplicationMain + 1074
9 GPUTest 0x000b0714 main (main.m:10)
10 GPUTest 0x000b06cc start + 32
Thread 1 name: Dispatch queue: com.sunsetlakesoftware.GPUImage.processingQueue
Thread 1:
0 libsystem_kernel.dylib 0x35b4b054 semaphore_wait_trap + 8
1 libdispatch.dylib 0x35b0447e _dispatch_thread_semaphore_wait$VARIANT$up + 6
2 libdispatch.dylib 0x35b0265e _dispatch_barrier_sync_f_slow + 82
3 libdispatch.dylib 0x35b025dc dispatch_barrier_sync_f$VARIANT$up + 16
4 libdispatch.dylib 0x35b02238 dispatch_sync_f$VARIANT$up + 12
5 libdispatch.dylib 0x35b028ee _dispatch_sync_slow + 46
6 libdispatch.dylib 0x35b028ae dispatch_sync$VARIANT$up + 18
7 GPUTest 0x00172796 runOnMainQueueWithoutDeadlocking (GPUImageOutput.m:13)
8 GPUTest 0x0017d0a6 -[GPUImageVideoCamera captureOutput:didOutputSampleBuffer:fromConnection:] (GPUImageVideoCamera.m:414)
9 AVFoundation 0x32dd0244 __74-[AVCaptureVideoDataOutput _AVCaptureVideoDataOutput_VideoDataBecameReady]_block_invoke_0 + 220
10 libdispatch.dylib 0x35af7c52 _dispatch_call_block_and_release + 6
11 libdispatch.dylib 0x35b02ca4 _dispatch_queue_drain + 268
12 libdispatch.dylib 0x35b02b12 _dispatch_queue_invoke$VARIANT$up + 30
13 libdispatch.dylib 0x35b03784 _dispatch_worker_thread2 + 208
14 libsystem_c.dylib 0x30d40df4 _pthread_wqthread + 288
15 libsystem_c.dylib 0x30d40cc8 start_wqthread + 0
Thread 2:
0 libsystem_kernel.dylib 0x35b5bcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x30d40f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x30d40cc8 start_wqthread + 0
Thread 3 name: Dispatch queue: com.apple.libdispatch-manager
Thread 3:
0 libsystem_kernel.dylib 0x35b4b3a8 kevent + 24
1 libdispatch.dylib 0x35b03ea4 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x35b03bc2 _dispatch_mgr_thread + 30
Thread 4:
0 libsystem_kernel.dylib 0x35b5bcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x30d40f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x30d40cc8 start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x35b5bcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x30d40f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x30d40cc8 start_wqthread + 0
Thread 6 name: WebThread
Thread 6:
0 libsystem_kernel.dylib 0x35b4b004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x35b4b1fa mach_msg + 50
2 CoreFoundation 0x3247e3ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x3247d124 __CFRunLoopRun + 876
4 CoreFoundation 0x3240049e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x32400366 CFRunLoopRunInMode + 98
6 WebCore 0x35c1dc9c _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x30d4672e _pthread_start + 314
8 libsystem_c.dylib 0x30d465e8 thread_start + 0
Thread 7 name: com.apple.coremedia.player.async
Thread 7:
0 libsystem_kernel.dylib 0x35b5b068 __psynch_cvwait + 24
1 libsystem_c.dylib 0x30d46a46 _pthread_cond_wait + 634
2 libsystem_c.dylib 0x30d467c2 pthread_cond_wait + 34
3 CoreMedia 0x32ec3868 FigSemaphoreWaitRelative + 268
4 MediaToolbox 0x309fb3e6 fpa_AsyncMovieControlThread + 22
5 CoreMedia 0x32ee28b4 figThreadMain + 168
6 libsystem_c.dylib 0x30d4672e _pthread_start + 314
7 libsystem_c.dylib 0x30d465e8 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00541c20 r1: 0x00190b4f r2: 0x0056f240 r3: 0x00190b4f
r4: 0xb00566b8 r5: 0x00000000 r6: 0x00000000 r7: 0x2feace34
r8: 0x2feace4c r9: 0x000642d3 r10: 0x2feace4c r11: 0x3e47dde0
ip: 0x3f3c22c8 sp: 0x2feace24 lr: 0x0017d171 pc: 0x344faf78
cpsr: 0x20000030
Finally, I found the solution. I just replaced the compiler flag of the AppDelegate in target's compile sources which is set for the purpose of ARC.
i.e. I removed the -fno-objc-arc flag and replaced it by -fobjc-arc flag for the AppDelegate class which caused the crash.

App rejected for crash on launch, but cannot replicate in either simulator or device, and device log is cryptic

I recently had an app rejected for crashing on launch on an iPhone 5 in iOS 5.0, and the good folks at Apple attached a crash report. However, I can't replicate this crash on either my device (also an iPhone 4 running iOS 5) or in the simulator for iOS 5. And, as you can see from the copy below, the report is cryptic. The crash is taking place in thread 5, which helpfully includes ??? where information should be.
First question - is this crash report symbolicated wrong? I kept the dSYM and dragged to the Organizer as per the guidelines.
If it is symbolicated right, I'm at a loss. I've checked through the warnings (all semantic, nothing that seems it could be a malloc/over-release problem), checked memory allocations, ran with NSZombie and malloc guards etc., but nothing seems wrong.
Can anyone help? Much appreciated, thanks.
Incident Identifier: 63777680-AF77-44B8-8264-47CF89D32C28
CrashReporter Key: 66ff952824b039efb0379c6c6fe11a2e035c7573
Hardware Model: iPhone3,1
Process: ---- [4453]
Path: /var/mobile/Applications/8F6C5D92-2052-4C56-9897-D6C50C1A7DA1/----/----
Identifier: ----
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2011-10-18 12:58:50.611 -0700
OS Version: iPhone OS 5.0 (9A334)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00157550
Crashed Thread: 5
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x31dff060 semaphore_wait_trap + 8
1 libdispatch.dylib 0x32554124 _dispatch_semaphore_wait_slow + 184
2 libdispatch.dylib 0x32554154 dispatch_semaphore_wait$VARIANT$up + 28
3 libxpc.dylib 0x3514189a xpc_connection_send_message_with_reply_sync + 206
4 SystemConfiguration 0x356dfbe6 _reach_server_target_status + 938
5 SystemConfiguration 0x356e0d56 __SCNetworkReachabilityServer_targetStatus + 14
6 SystemConfiguration 0x356c9aee __SCNetworkReachabilityGetFlags + 198
7 SystemConfiguration 0x356cabc4 reachPerform + 240
8 CoreFoundation 0x30afeafc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 8
9 CoreFoundation 0x30afe35e __CFRunLoopDoSources0 + 358
10 CoreFoundation 0x30afd06e __CFRunLoopRun + 646
11 CoreFoundation 0x30a804d6 CFRunLoopRunSpecific + 294
12 CoreFoundation 0x30a8039e CFRunLoopRunInMode + 98
13 GraphicsServices 0x336aefe6 GSEventRunModal + 150
14 UIKit 0x32af273c UIApplicationMain + 1084
15 ----- 0x000022f2 0x1000 + 4850
16 ----- 0x000022bc 0x1000 + 4796
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x31dff3b4 kevent + 24
1 libdispatch.dylib 0x32553e78 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x32553b96 _dispatch_mgr_thread + 30
Thread 2:
0 libsystem_kernel.dylib 0x31e0fcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x362c230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x362c209c start_wqthread + 0
Thread 3 name: WebThread
Thread 3:
0 libsystem_kernel.dylib 0x31dff010 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x31dff206 mach_msg + 50
2 CoreFoundation 0x30afe41c __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x30afd154 __CFRunLoopRun + 876
4 CoreFoundation 0x30a804d6 CFRunLoopRunSpecific + 294
5 CoreFoundation 0x30a8039e CFRunLoopRunInMode + 98
6 WebCore 0x37314128 _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x362c7c16 _pthread_start + 314
8 libsystem_c.dylib 0x362c7ad0 thread_start + 0
Thread 4:
0 libsystem_kernel.dylib 0x31e0fcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x362c230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x362c209c start_wqthread + 0
Thread 5 Crashed:
0 ??? 0x00157550 0 + 1406288
1 ??? 0x626b5ef8 0 + 1651203832
Thread 6:
0 libsystem_kernel.dylib 0x31e0fcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x362c230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x362c209c start_wqthread + 0
Thread 7:
0 libsystem_kernel.dylib 0x31e0fcd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x362c230a _pthread_wqthread + 610
2 libsystem_c.dylib 0x362c209c start_wqthread + 0
Thread 5 crashed with ARM Thread State:
r0: 0x00157550 r1: 0x0000013a r2: 0x00000001 r3: 0x00000000
r4: 0x00157550 r5: 0x00048e20 r6: 0x05395ef0 r7: 0x33e83857
r8: 0x00000000 r9: 0x0000003b r10: 0x00000001 r11: 0x053960cc
ip: 0x0001ee79 sp: 0x05395e78 lr: 0x00011acf pc: 0x00157550
cpsr: 0x20000010
This looks like a crash of non-threadsafe web work. try running the zombie instrument
Turns out the problem was incorrect specification of supported architectures. For some reason, this managed to slip past the uploader validation step. After adding support for both armv6 and armv7 in "Valid Architectures in the Project and Target build settings, the review process went through fine.

Resources