iOS Application Crash while downloading resource from internet - ios

I'm trying to debug an application that download a lot of resources from internet. The issue is that sometimes while downloading the app crashes (not in the same place or for the same resource).The memory seems ok, no memory warnings, no leaks, no zombies, the dirty size stay around 10M§B +o- 2MB the resident 50MB.
The other weird things is that the error is still never happened on the simulator bu just on the device.
The crash log identifies a crash in another thread (num3) with EXC_BAD_ACCES(something gone) on an Apple lib. I can't understand if it's an application error or an API error.
Incident Identifier: 9138742F-0160-4220-8E62-000001650CF4
CrashReporter Key: 6f0ba5a6bbc182f6798918f01ccd6bac4f8e4713 Hardware
Model: iPad1,1 Process: XXX-Upgraded [949] Path:
/var/mobile/Applications/C98657F3-B7E6-4542-B0DA-70D8239E5210/XXX-Upgraded.app/XXX-Upgraded
Identifier: XXX-Upgraded Version: ??? (???) Code Type:
ARM (Native) Parent Process: launchd 1
Date/Time: 2011-11-18 11:13:25.994 +0100 OS Version: iPhone
OS 5.0.1 (9A405) Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes:
KERN_INVALID_ADDRESS at 0xf006191c Crashed Thread: 3
Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0: 0
libsystem_kernel.dylib 0x360ad010 0x360ac000 + 4112 1
libsystem_kernel.dylib 0x360ad206 0x360ac000 + 4614 2
CoreFoundation 0x33ac441c 0x33a37000 + 578588 3
CoreFoundation 0x33ac311a 0x33a37000 + 573722 4
CoreFoundation 0x33a464d6 0x33a37000 + 62678 5
CoreFoundation 0x33a4639e 0x33a37000 + 62366 6
GraphicsServices 0x35686fc6 0x35683000 + 16326 7 UIKit
0x34b8b73c 0x34b5a000 + 202556 8 XXX-Upgraded
0x000028a8 main (main.m:15) 9 XXX-Upgraded
0x00002860 start + 32
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager Thread
1: 0 libsystem_kernel.dylib 0x360ad3b4 0x360ac000 + 5044 1
libdispatch.dylib 0x36dd3e78 0x36dc7000 + 52856 2
libdispatch.dylib 0x36dd3b96 0x36dc7000 + 52118
Thread 2 name: WebThread Thread 2: 0 libsystem_kernel.dylib
0x360ad010 0x360ac000 + 4112 1 libsystem_kernel.dylib
0x360ad206 0x360ac000 + 4614 2 CoreFoundation
0x33ac441c 0x33a37000 + 578588 3 CoreFoundation
0x33ac3154 0x33a37000 + 573780 4 CoreFoundation
0x33a464d6 0x33a37000 + 62678 5 CoreFoundation
0x33a4639e 0x33a37000 + 62366 6 WebCore
0x33f02128 0x33e5a000 + 688424 7 libsystem_c.dylib
0x3492bc16 0x3491c000 + 64534 8 libsystem_c.dylib
0x3492bad0 0x3491c000 + 64208
Thread 3 name: com.apple.NSURLConnectionLoader Thread 3 Crashed: 0
libobjc.A.dylib 0x35206fbc 0x35203000 + 16316 1
CoreFoundation 0x33a73d16 0x33a37000 + 249110 2
CoreFoundation 0x33a395bc 0x33a37000 + 9660 3
CFNetwork 0x32e56fd8 0x32dc7000 + 589784 4
CFNetwork 0x32e57cee 0x32dc7000 + 593134 5
CFNetwork 0x32e56940 0x32dc7000 + 588096 6
CoreFoundation 0x33a8555c 0x33a37000 + 320860 7
CoreFoundation 0x33a857a4 0x33a37000 + 321444 8
CoreFoundation 0x33ac4afc 0x33a37000 + 580348 9
CoreFoundation 0x33ac42c8 0x33a37000 + 578248 10
CoreFoundation 0x33ac306e 0x33a37000 + 573550 11
CoreFoundation 0x33a464d6 0x33a37000 + 62678 12
CoreFoundation 0x33a4639e 0x33a37000 + 62366 13
Foundation 0x3152abc2 0x3151a000 + 68546 14
Foundation 0x3152aa8a 0x3151a000 + 68234 15
Foundation 0x315be59a 0x3151a000 + 673178 16
libsystem_c.dylib 0x3492bc16 0x3491c000 + 64534 17
libsystem_c.dylib 0x3492bad0 0x3491c000 + 64208
Thread 4 name: com.apple.CFSocket.private Thread 4: 0
libsystem_kernel.dylib 0x360bd570 0x360ac000 + 71024 1
CoreFoundation 0x33ac866a 0x33a37000 + 595562 2
libsystem_c.dylib 0x3492bc16 0x3491c000 + 64534 3
libsystem_c.dylib 0x3492bad0 0x3491c000 + 64208
Thread 5: 0 libsystem_kernel.dylib 0x360bdcd4 0x360ac000 +
72916 1 libsystem_c.dylib 0x3492630a 0x3491c000 + 41738
2 libsystem_c.dylib 0x3492609c 0x3491c000 + 41116
Thread 6: 0 libsystem_kernel.dylib 0x360bdcd4 0x360ac000 +
72916 1 libsystem_c.dylib 0x3492630a 0x3491c000 + 41738
2 libsystem_c.dylib 0x3492609c 0x3491c000 + 41116
Thread 7: 0 libsystem_kernel.dylib 0x360bdcd4 0x360ac000 +
72916 1 libsystem_c.dylib 0x3492630a 0x3491c000 + 41738
2 libsystem_c.dylib 0x3492609c 0x3491c000 + 41116
Thread 3 crashed with ARM Thread State:
r0: 0x006eaf90 r1: 0x328c119e r2: 0xf0061914 r3: 0x3eeb09a8
r4: 0xf0061914 r5: 0x006eaf94 r6: 0x020014c0 r7: 0x0343b2b0
r8: 0x3eecc690 r9: 0x0ca30467 r10: 0x00000014 r11: 0x00000080
ip: 0x3eea6814 sp: 0x0343b2a0 lr: 0x33a73d1d pc: 0x35206fbc cpsr: 0x20000030
[Update]
Finally I was cable to catch the error. It seems to be an overreleased chunk of data right at the end of connection:didReceiveData:. Actually to simplify debugging I've just left one line of code that appends data using output stream. I can't understand where I'm over-releasing.
Instruments shows pretty weird stuffs:
-first the zombie seems to be created inside some Apple API calling
-second, if you take a look at the image of the stack trace you can see that there is a CFRetain that doesn't increment the reference count of the object, thus unbalancing the other operations
Can someone help me out?
Thanks,
Andrea

OK, after a lot of test a (DST request never taken in charge by Apple, NOT TRUE ANYMORE), headache, hysteria etc. It's turning out to be as a kind of false positive. If I test using leaks, allocation, zombie, the usual console debugger happens. If I run the application alone just on device (without connecting it) everything seems to run fine.
The DTS helped me out to find the bug, the issue refers probably to two bugs, one located in instruments and one CF.
The most important thing is that those bugs affect the application only while using allocation logging, so the app could run safe as I discovered during my tests session.

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

Iphone App crashes on AD HOC

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
.......

My app is being tested on iPad although it's developed for iPhone

My app was rejected but I don't know what's the exact problem.
Rejected reason is:
We found that your app crashed on iPad 3rd Gen. running iOS 5.1.1,
which is not in compliance with the App Store Review Guidelines.
Your app crashed on both Wi-Fi and cellular networks when we select an
item from the table view.
However I submitted my application for iPhones only. On top of that I couldn't figure out what's wrong in the crash files and could not debug as I tested it on my iPhone and I didn't have any bugs or crashes.
Any help or tip will be extremely appreciated as I feel totally lost in this one. Million thanks in advance.
You can find the crash reports below..
Incident Identifier: 5E4A2B4C-EC76-441B-82A2-3782F53B533B
CrashReporter Key: 5ee8aa21dffe8c0b7f3386a5290b271457c404c8
Hardware Model: iPad3,3
Process: *****
Path: *****
Identifier: *****
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-06-04 18:44:59.930 -0700
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:
'Application tried to present a nil modal view controller on target <ViewController:
0x176f80>.'
*** First throw call stack:
(0x3309e88f 0x35043259 0x35687441 00x356e26a7 0x84d9f 0x3565793d 0x356d1627 0x3777d933
0x33072a33 0x33072699 0x3307126f 0x32ff44a5 0x32ff436d 0x33141439 0x355d3cd5 0x83f03
0x83ec4)
Last Exception Backtrace:
(0x3309e88f 0x35043259 0x35687441 0x356e26a7 0x84d9f 0x3565793d 0x356d1627 0x3777d933
0x33072a33 0x33072699 0x3307126f 0x32ff44a5 0x32ff436d 0x33141439 0x355d3cd5 0x83f03
0x83ec4)
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3557532c __pthread_kill + 8
1 libsystem_c.dylib 0x3249b208 pthread_kill + 48
2 libsystem_c.dylib 0x32494298 abort + 88
3 libc++abi.dylib 0x34219f64 abort_message + 40
4 libc++abi.dylib 0x34217346 _ZL17default_terminatev + 18
5 libobjc.A.dylib 0x35043350 _objc_terminate + 140
6 libc++abi.dylib 0x342173be _ZL19safe_handler_callerPFvvE + 70
7 libc++abi.dylib 0x3421744a std::terminate() + 14
8 libc++abi.dylib 0x3421881e __cxa_rethrow + 82
9 libobjc.A.dylib 0x350432a2 objc_exception_rethrow + 6
10 CoreFoundation 0x32ff4506 CFRunLoopRunSpecific + 398
11 CoreFoundation 0x32ff4366 CFRunLoopRunInMode + 98
12 GraphicsServices 0x33141432 GSEventRunModal + 130
13 UIKit 0x355d3cce UIApplicationMain + 1074
14 ****** 0x00083efc 0x82000 + 7932
15 ****** 0x00083ebc 0x82000 + 7868
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x355653a8 kevent + 24
1 libdispatch.dylib 0x317c9f04 _dispatch_mgr_invoke + 708
2 libdispatch.dylib 0x317c9c22 _dispatch_mgr_thread + 30
Thread 2:
0 libsystem_kernel.dylib 0x35575cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x32456f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x32456cc8 start_wqthread + 0
Thread 3 name: WebThread
Thread 3:
0 libsystem_kernel.dylib 0x35565004 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x355651fa mach_msg + 50
2 CoreFoundation 0x330723ec __CFRunLoopServiceMachPort + 120
3 CoreFoundation 0x33071124 __CFRunLoopRun + 876
4 CoreFoundation 0x32ff449e CFRunLoopRunSpecific + 294
5 CoreFoundation 0x32ff4366 CFRunLoopRunInMode + 98
6 WebCore 0x35d92c9c _ZL12RunWebThreadPv + 396
7 libsystem_c.dylib 0x3245c72e _pthread_start + 314
8 libsystem_c.dylib 0x3245c5e8 thread_start + 0
Thread 4:
0 libsystem_kernel.dylib 0x35575cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x32456f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x32456cc8 start_wqthread + 0
Thread 5:
0 libsystem_kernel.dylib 0x35575cd4 __workq_kernreturn + 8
1 libsystem_c.dylib 0x32456f36 _pthread_wqthread + 610
2 libsystem_c.dylib 0x32456cc8 start_wqthread + 0
Thread 6:
0 AddressBook 0x338c7cc8 ABAddressBookCreate + 0
1 TextInput 0x345d11be
KB::fill_with_matchable_strings_from_address_book(KB::Hashmap<KB::String, bool>&) + 10
2 TextInput 0x345d7dee
KB::DynamicDictionaryImpl::background_load_address_book(KB::StaticDictionary const&) + 194
3 TextInput 0x345d8728 _ZN2KBL14BackgroundLoadEPv + 272
4 libsystem_c.dylib 0x3245c72e _pthread_start + 314
5 libsystem_c.dylib 0x3245c5e8 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000006 r5: 0x3ea85d98 r6: 0x00000002 r7: 0x2fe80a60
r8: 0x00000000 r9: 0x00000000 r10: 0x3f330d4c r11: 0x3f3459c0
ip: 0x00000148 sp: 0x2fe80a54 lr: 0x3249b20f pc: 0x3557532c
cpsr: 0x00020010
Apps are REQUIRED to run on the iPad too even if they target only the iPhone.
I assume that your iOS application target was set to iPhone and not universal?
If you believe all your settings are correct, you can submit an appeal to Apple:
https://developer.apple.com/appstore/contact/appreviewboard/index.html
Do what Lee Crossley said, but also you should go to the Resolution Center in iTunes Connect and tell the reviewer about this. They can reply and fix your problems. They will be better advice than us!

Crash...not able to trace because of inconsistency

Here is the error from device..error is not consistent..like I am not facing it on my iPad but user is keep saying it happen to him many times..app crashed as soon as it is launched.
Any suggestion on how to fix it?
Incident Identifier: 44236112-151D-410F-B153-CB8CC1F06536
CrashReporter Key: 08725115e7c9e53feab87f9009d6b8ec91283252
Hardware Model: iPad1,1
Process: MyProject [2221]
Path: /var/mobile/Applications/FA21B5D6-A45A-4014-801D-C0B818A76A49/MyProject.app/MyProject
Identifier: MyProject
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-02-26 22:49:07.511 -0500
OS Version: iPhone OS 5.0 (9A334)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000004
Crashed Thread: 7
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0:
0 libsystem_kernel.dylib 0x359d9010 0x359d8000 + 4112
1 libsystem_kernel.dylib 0x359d9206 0x359d8000 + 4614
2 CoreFoundation 0x3524f41c 0x351c2000 + 578588
3 CoreFoundation 0x3524e11a 0x351c2000 + 573722
4 CoreFoundation 0x351d14d6 0x351c2000 + 62678
5 CoreFoundation 0x351d139e 0x351c2000 + 62366
6 GraphicsServices 0x37164fe6 0x37161000 + 16358
7 UIKit 0x3136e73c 0x3133d000 + 202556
8 MyProject 0x0000206a 0x1000 + 4202
9 MyProject 0x00002028 0x1000 + 4136
Thread 1:
0 libsystem_kernel.dylib 0x359e9628 0x359d8000 + 71208
1 libsystem_c.dylib 0x35a05ff2 0x359f2000 + 81906
2 MyProject 0x0036adb0 0x1000 + 3579312
3 MyProject 0x002819d0 0x1000 + 2623952
4 MyProject 0x002c7bcc 0x1000 + 2911180
5 MyProject 0x0036ab62 0x1000 + 3578722
6 libsystem_c.dylib 0x35a01c16 0x359f2000 + 64534
7 libsystem_c.dylib 0x35a01ad0 0x359f2000 + 64208
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x359d93b4 0x359d8000 + 5044
1 libdispatch.dylib 0x32c2ce78 0x32c20000 + 52856
2 libdispatch.dylib 0x32c2cb96 0x32c20000 + 52118
Thread 3:
0 libsystem_kernel.dylib 0x359e9cd4 0x359d8000 + 72916
1 libsystem_c.dylib 0x359fc30a 0x359f2000 + 41738
2 libsystem_c.dylib 0x359fc09c 0x359f2000 + 41116
Thread 4:
0 libsystem_kernel.dylib 0x359e9cd4 0x359d8000 + 72916
1 libsystem_c.dylib 0x359fc30a 0x359f2000 + 41738
2 libsystem_c.dylib 0x359fc09c 0x359f2000 + 41116
Thread 5 name: WebThread
Thread 5:
0 libsystem_kernel.dylib 0x359d9010 0x359d8000 + 4112
1 libsystem_kernel.dylib 0x359d9206 0x359d8000 + 4614
2 CoreFoundation 0x3524f41c 0x351c2000 + 578588
3 CoreFoundation 0x3524e154 0x351c2000 + 573780
4 CoreFoundation 0x351d14d6 0x351c2000 + 62678
5 CoreFoundation 0x351d139e 0x351c2000 + 62366
6 WebCore 0x32329128 0x32281000 + 688424
7 libsystem_c.dylib 0x35a01c16 0x359f2000 + 64534
8 libsystem_c.dylib 0x35a01ad0 0x359f2000 + 64208
Thread 6 name: com.apple.NSURLConnectionLoader
Thread 6:
0 libsystem_kernel.dylib 0x359d9010 0x359d8000 + 4112
1 libsystem_kernel.dylib 0x359d9206 0x359d8000 + 4614
2 CoreFoundation 0x3524f41c 0x351c2000 + 578588
3 CoreFoundation 0x3524e154 0x351c2000 + 573780
4 CoreFoundation 0x351d14d6 0x351c2000 + 62678
5 CoreFoundation 0x351d139e 0x351c2000 + 62366
6 Foundation 0x32aaebc2 0x32a9e000 + 68546
7 Foundation 0x32aaea8a 0x32a9e000 + 68234
8 Foundation 0x32b4259a 0x32a9e000 + 673178
9 libsystem_c.dylib 0x35a01c16 0x359f2000 + 64534
10 libsystem_c.dylib 0x35a01ad0 0x359f2000 + 64208
Thread 7 name: Dispatch queue: com.DQ.SessionEstablishmentqueue1
Thread 7 Crashed:
0 MyProject 0x0025c7fc 0x1000 + 2471932
1 MyProject 0x0006199e 0x1000 + 395678
2 MyProject 0x0005fe78 0x1000 + 388728
3 libdispatch.dylib 0x32c20d4e 0x32c20000 + 3406
4 libdispatch.dylib 0x32c2bccc 0x32c20000 + 48332
5 libdispatch.dylib 0x32c2bb66 0x32c20000 + 47974
6 libdispatch.dylib 0x32c2c76c 0x32c20000 + 51052
7 libsystem_c.dylib 0x359fc1c8 0x359f2000 + 41416
8 libsystem_c.dylib 0x359fc09c 0x359f2000 + 41116
Thread 8:
0 libsystem_kernel.dylib 0x359e9cd4 0x359d8000 + 72916
1 libsystem_c.dylib 0x359fc30a 0x359f2000 + 41738
2 libsystem_c.dylib 0x359fc09c 0x359f2000 + 41116
Thread 9 name: com.apple.CFSocket.private
Thread 9:
0 libsystem_kernel.dylib 0x359e9570 0x359d8000 + 71024
1 CoreFoundation 0x3525366a 0x351c2000 + 595562
2 libsystem_c.dylib 0x35a01c16 0x359f2000 + 64534
3 libsystem_c.dylib 0x35a01ad0 0x359f2000 + 64208
Thread 7 crashed with ARM Thread State:
r0: 0xffffffff r1: 0x03a8fcac r2: 0x00000000 r3: 0x03a8fccc
r4: 0x03a8fcb8 r5: 0x0025c725 r6: 0x03a90048 r7: 0x03a8fd38
r8: 0x00000000 r9: 0x00000000 r10: 0x00000000 r11: 0x00010001
ip: 0x004b0370 sp: 0x03a8fc34 lr: 0x0025c735 pc: 0x0025c7fc
cpsr: 0x60000030
This is a shot in the dark, but I see that the thread that crashed is a dispatch queue. I'm assuming you're using blocks to execute. I had a problem with KERN_INVALID_ADDRESS because I was storing blocks (in an array, ivar, etc) but I had forgotten to copy them first. Any block that's stored (not passed directly to the execution) needs to be copied. You can accomplish this by [blockToCopy copy]; or Block_copy().
That is difficult to read, but you can view crash logs agains the compiled binary.
"With the latest version of Xcode (3.2.2), you can drag and drop any crash reports into the Device Logs section of the Xcode Organiser and they will automatically by symbolicated for you. I think this works best if you built that version of the App using Build & Archive (also part of Xcode 3.2.2)"
Symbolicating iPhone App Crash Reports
that is certainly easier then looking at the crash log with no source to work with.

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