What does this crash mean (iOS)? - ios

When I submitted my app, Apple complained for a crash (which doesn't occur on my devices). (the app uses both Cocos2d and Kamcord). Here is the log they sent me. Does anyone have any idea on what's going on ?
Incident Identifier: DF08231F-6870-4BA1-B676-FABB198B2C1D
CrashReporter Key: aca1b4fd3ac58a223f67f43ce5c768e6e94616f0
Hardware Model: xxx
Process: Intro Maker [21098]
Path: /var/mobile/Applications/58D16C18-20F2-4A98-ADA0-DDF7518F7704/Intro Maker.app/Intro Maker
Identifier: Intro Maker
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-01-17 17:47:44.172 -0800
OS Version: iOS 6.0.1 (10A523)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x60000008
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x385b15b0 objc_msgSend + 16
1 Intro Maker 0x000842b6 0x34000 + 328374
2 Intro Maker 0x0006ec82 0x34000 + 240770
3 Intro Maker 0x0006ef06 0x34000 + 241414
4 UIKit 0x375f751e -[UIWindow _sendTouchesForEvent:] + 314
5 UIKit 0x375e47fc -[UIApplication sendEvent:] + 376
6 UIKit 0x375e4116 _UIApplicationHandleEvent + 6150
7 GraphicsServices 0x34d605a0 _PurpleEventCallback + 588
8 GraphicsServices 0x34d601ce PurpleEventCallback + 30
9 CoreFoundation 0x318a9170 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
10 CoreFoundation 0x318a9112 __CFRunLoopDoSource1 + 134
11 CoreFoundation 0x318a7f94 __CFRunLoopRun + 1380
12 CoreFoundation 0x3181aeb8 CFRunLoopRunSpecific + 352
13 CoreFoundation 0x3181ad44 CFRunLoopRunInMode + 100
14 GraphicsServices 0x34d5f2e6 GSEventRunModal + 70
15 UIKit 0x376382f4 UIApplicationMain + 1116
16 Intro Maker 0x0008204e 0x34000 + 319566
17 Intro Maker 0x0003685c 0x34000 + 10332
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x307ee648 kevent64 + 24
1 libdispatch.dylib 0x3990a974 _dispatch_mgr_invoke + 792
2 libdispatch.dylib 0x3990a654 _dispatch_mgr_thread$VARIANT$mp + 32
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x307edeb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x307ee048 mach_msg + 36
2 CoreFoundation 0x318a9040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x318a7d9e __CFRunLoopRun + 878
4 CoreFoundation 0x3181aeb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x3181ad44 CFRunLoopRunInMode + 100
6 WebCore 0x32777a40 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x3853730e _pthread_start + 306
8 libsystem_c.dylib 0x385371d4 thread_start + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x210addc0 r1: 0x0024f355 r2: 0x210afa60 r3: 0x00000000
r4: 0x60000000 r5: 0x0024f355 r6: 0x210addc0 r7: 0x2fdcb688
r8: 0x21072f40 r9: 0x00093cd5 r10: 0x42200000 r11: 0x0024cdc5
ip: 0x385c21f1 sp: 0x2fdcb5d8 lr: 0x000842bb pc: 0x385b15b0
cpsr: 0x00000030

When you created the .ipa file that you uploaded to Apple, you had to first create an app archive (a .xcarchive folder). If that folder (and its contents) still exist on your Mac, and you drag the crash report onto the Xcode Organizer, then Xcode should symbolicate the crash report. That means that each of frames 1, 2, 3, 16, and 17 will show you the function, filename, and line number in your source code. This may help you track down your problem.
The most common reason for a SIGSEGV in objc_msgSend is sending a message to a deallocated object through a dangling pointer.
Running the static analyzer on your app may help you track down improper memory management, if you are following Apple's memory management naming conventions. From the menu bar, choose Product > Analyze.
Running your app with zombies enabled may also help you track down your problem. You can do this on the simulator using Instruments; it has a Zombie preset. To do it on a device, you must edit your scheme, go to the Diagnostics tab, and turn on the “Enable Zombie Objects” checkbox.

Related

Dealing With Old iOs Devices

I am making an education app specifically designed for use in schools. When I started the project I didn't take into account how old many of the iPads in the school. Some of them are iOs 9.3.5 and these seem to be the troublesome ones. Because they are locked out I can't do much with them except read the error log but I don't see much info that would help me.
The crash seems to be a little random but always happens at view controller changes but some of them crash occasionally, others crash 100% of the time and others crash intermittantly. This is the code I use to change views:
let nextViewController = self.storyboard?.instantiateViewController(withIdentifier: "drawNotesViewController") as! drawNotesViewController
self.present(nextViewController, animated: true, completion: nil)
This is the crash report:
Incident Identifier: 9C9815CC-F932-4E28-AB1B-132B330430EE
CrashReporter Key: 344cf11c25d3ceced28918b31fcdb3a79aaea75e
Hardware Model: iPad2,5
Process: Reading Music Tests [847]
Path: /private/var/containers/Bundle/Application/4587C3D5-5A00-4B7C-9056-81BCB97A1B59/Reading Music Tests.app/Reading Music Tests
Identifier: ..
Version: 8 (0.9.7)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2018-10-17 09:40:28.28 +0100
Launch Time: 2018-10-17 09:31:59.59 +0100
OS Version: iOS 9.3.5 (13G36)
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000000000defe
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 Reading Music Tests 0x0014b9a4 0xfc000 + 326052
1 Reading Music Tests 0x0015eed4 0xfc000 + 405204
2 Reading Music Tests 0x0015e584 0xfc000 + 402820
3 Reading Music Tests 0x0015e7a8 0xfc000 + 403368
4 UIKit 0x2558ad8a -[UIViewController loadViewIfRequired] + 1026
5 UIKit 0x2558a970 -[UIViewController view] + 24
6 UIKit 0x25e1fec0 -[_UIFullscreenPresentationController _setPresentedViewController:] + 72
7 UIKit 0x258d6d00 -[UIPresentationController initWithPresentedViewController:presentingViewController:] + 112
8 UIKit 0x258fa6e4 -[UIViewController _presentViewController:withAnimationController:completion:] + 3668
9 UIKit 0x258fcd24 __62-[UIViewController presentViewController:animated:completion:]_block_invoke + 336
10 UIKit 0x258fcf90 -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 416
11 UIKit 0x25683db8 -[UIViewController presentViewController:animated:completion:] + 144
12 Reading Music Tests 0x0016a33e 0xfc000 + 451390
13 Reading Music Tests 0x0016a6ce 0xfc000 + 452302
14 UIKit 0x25af09ea _UIGestureRecognizerSendTargetActions + 142
15 UIKit 0x2572b84e _UIGestureRecognizerSendActions + 170
16 UIKit 0x255bcff0 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 1004
17 UIKit 0x25af1d4e ___UIGestureRecognizerUpdate_block_invoke898 + 62
18 UIKit 0x2557da56 _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 298
19 UIKit 0x2557a016 _UIGestureRecognizerUpdate + 2902
20 UIKit 0x255baec8 -[UIWindow _sendGesturesForEvent:] + 904
21 UIKit 0x255ba67a -[UIWindow sendEvent:] + 622
22 UIKit 0x2558b124 -[UIApplication sendEvent:] + 204
23 UIKit 0x255896d2 _UIApplicationHandleEventQueue + 5010
24 CoreFoundation 0x20fd1dfe __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
25 CoreFoundation 0x20fd19ec __CFRunLoopDoSources0 + 452
26 CoreFoundation 0x20fcfd5a __CFRunLoopRun + 794
27 CoreFoundation 0x20f1f228 CFRunLoopRunSpecific + 520
28 CoreFoundation 0x20f1f014 CFRunLoopRunInMode + 108
29 GraphicsServices 0x2250fac8 GSEventRunModal + 160
30 UIKit 0x255f3188 UIApplicationMain + 144
31 Reading Music Tests 0x00103a7e 0xfc000 + 31358
32 libdyld.dylib 0x20bc7872 start + 2
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x20c9c2f8 kevent_qos + 24
1 libdispatch.dylib 0x20b91d60 _dispatch_mgr_invoke + 256
2 libdispatch.dylib 0x20b91abe _dispatch_mgr_thread$VARIANT$mp + 38
Thread 2:
0 libsystem_kernel.dylib 0x20c9b864 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x20d41b34 _pthread_wqthread + 1036
2 libsystem_pthread.dylib 0x20d41718 start_wqthread + 8
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000002 r3: 0x00000202
r4: 0x155bf580 r5: 0x155bb5d0 r6: 0x00000000 r7: 0x002d9598
r8: 0x156cf8b0 r9: 0x155bf584 r10: 0x001b4158 r11: 0x00195912
ip: 0x00549d75 sp: 0x002d9530 lr: 0x0014b589 pc: 0x0014b9a4
cpsr: 0x60000030
Error Formulating Crash Report:
Failed while requesting activity/breadcrumb diagnostics
I hate just dumping crash reports on here and asking for help but I've been staring at it and can't work out what the error is. If there isn't a clear answer from the crash reports then I will go back to the project and see if I can see a pattern to what sets it off. So far all I know is it is intermittant which makes me concerned!
I discovered that it was a missing font that was not included in iOs until after 9.3.5. I have now learnt that those crash reports don't include enough info in this case so lesson learned!

Interface Builder crashes (iOSRenderServer)

On closing my storyboard with Xcode (by quitting Xcode itself or switching to another file), it makes me awaiting for a while until I do Force Quit.
On opening my storyboard with AppCode, I see the alert about iOSRenderServer just crashed. Well it's the only project with this trouble, and I believe there is some mistakes inside storyboard, but I can't figure out what exactly is wrong.
Somebody have seen this before?
reason: 'MainScreenScale is not valid: 0.000000'
Process: iOSRenderServer [25123]
Path: /Applications/AppCode.app/Contents/plugins/appcode-designer/iOSRenderServer.app/iOSRenderServer
Identifier: iOSRenderServer
Version: 1.0 (1.0)
Code Type: X86-64 (Native)
Parent Process: appcode [25007]
Responsible: appcode [25007]
User ID: 503
Date/Time: 2015-04-12 10:40:12.951 +0300
OS Version: Mac OS X 10.10.3 (14D131)
Report Version: 11
Anonymous UUID: 82A2E61F-7F5F-9CDC-F8CC-3AE376F99B61
Sleep/Wake UUID: 38298837-20D2-4686-8D6D-EEC965606B5D
Time Awake Since Boot: 54000 seconds
Time Since Wake: 2400 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'MainScreenScale is not valid: 0.000000'
terminating with uncaught exception of type NSException
abort() called
Application Specific Backtrace 1:
0 CoreFoundation 0x000000010d683c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010d31cbb7 objc_exception_throw + 45
2 CoreFoundation 0x000000010d683aca +[NSException raise:format:arguments:] + 106
3 Foundation 0x000000010cf31a57 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 169
4 BaseBoard 0x000000010f1c89c1 ___BSMainScreenGetInfo_block_invoke + 351
5 libdispatch.dylib 0x000000010dc91964 _dispatch_client_callout + 8
6 libdispatch.dylib 0x000000010dc7f902 dispatch_once_f + 129
7 BaseBoard 0x000000010f1c8808 BSMainScreenScale + 43
8 FrontBoardServices 0x000000010f156b0e -[FBSDisplay initWithCADisplay:isMainDisplay:seed:tags:scale:] + 234
9 UIKit 0x000000010bba7d02 -[UIApplication __completeAndRunAsPlugin] + 355
10 iOSRenderServer 0x000000010b8b0a61 -[AppDelegate doStart] + 129
11 iOSRenderServer 0x000000010b8b3b84 my_registerAsSystemApp + 132
12 UIKit 0x000000010bba7ad3 -[UIApplication _run] + 302
13 UIKit 0x000000010bbaa900 UIApplicationMain + 1282
14 iOSRenderServer 0x000000010b8b3fa2 main + 962
15 libdyld.dylib 0x000000010dcc1145 start + 1
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x000000010dfc9286 __pthread_kill + 10
1 libsystem_sim_c.dylib 0x000000010dd6919a abort + 129
2 libc++abi.dylib 0x000000010db3b481 abort_message + 257
3 libc++abi.dylib 0x000000010db633d5 default_terminate_handler() + 267
4 libobjc.A.dylib 0x000000010d31ce19 _objc_terminate() + 103
5 libc++abi.dylib 0x000000010db60b01 std::__terminate(void (*)()) + 8
6 libc++abi.dylib 0x000000010db60b73 std::terminate() + 51
7 libobjc.A.dylib 0x000000010d31cd93 objc_terminate + 9
8 libdispatch.dylib 0x000000010dc91978 _dispatch_client_callout + 28
9 libdispatch.dylib 0x000000010dc7f902 dispatch_once_f + 129
10 com.apple.BaseBoard 0x000000010f1c8808 BSMainScreenScale + 43
11 com.apple.FrontBoardServices 0x000000010f156b0e -[FBSDisplay initWithCADisplay:isMainDisplay:seed:tags:scale:] + 234
12 com.apple.UIKit 0x000000010bba7d02 -[UIApplication __completeAndRunAsPlugin] + 355
13 com.jetbrains.iOSRenderServer 0x000000010b8b0a61 -[AppDelegate doStart] + 129
14 com.jetbrains.iOSRenderServer 0x000000010b8b3b84 my_registerAsSystemApp + 132
15 com.apple.UIKit 0x000000010bba7ad3 -[UIApplication _run] + 302
16 com.apple.UIKit 0x000000010bbaa900 UIApplicationMain + 1282
17 com.jetbrains.iOSRenderServer 0x000000010b8b3fa2 main + 962
18 libdyld.dylib 0x000000010dcc1145 start + 1
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x000000010dfca232 kevent64 + 10
1 libdispatch.dylib 0x000000010dc81d94 _dispatch_mgr_thread + 54
Thread 2:
0 libsystem_kernel.dylib 0x000000010dfc994a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x000000010dff840d start_wqthread + 13
Thread 3:
0 libsystem_kernel.dylib 0x000000010dfc994a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x000000010dff840d start_wqthread + 13
Thread 4:
0 libsystem_kernel.dylib 0x000000010dfc994a __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x000000010dff840d start_wqthread + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000006 rcx: 0x00007fff54355e78 rdx: 0x0000000000000000
rdi: 0x000000000000070b rsi: 0x0000000000000006 rbp: 0x00007fff54355ea0 rsp: 0x00007fff54355e78
r8: 0x0000000000000000 r9: 0x000000010dd8f600 r10: 0x0000000008000000 r11: 0x0000000000000206
r12: 0x00007fff54356000 r13: 0x0000000000000000 r14: 0x000000010e001300 r15: 0x00007fff54355ee0
rip: 0x000000010dfc9286 rfl: 0x0000000000000206 cr2: 0x000000010db643b2
Can you check the following
[NSLayoutContraint constraintWithItem ...] method are nil.
You could have switched off auto layout , but adding a constraint to subview via a code.
3.The view hasn't been created in the nib/UIView, but the constraint has been applied, move the Constraint code from the initWithNib method to viewDidLoad.
The storyboard file is a simple text file in XML format. So, if Xcode won't open it, just use a text editor of your choice. Then search the file for MainScreenScale and see if there is something strange.
If you can remember the last edits you made on your storyboard, try to roll them back.
And take care on not to mess up the XML structure. Make a copy of the file first.
Best solution: If you have your project under Source Control, roll back to the last commit.
Well, I figured it out.
After doing something like git-bisect (remove some VCs and its contents until IB stops crashing), the reason was found.
I have my own view as titleView on two screens. I don't know exactly why, but this had been causing my troubles. Moving my own titleView from IB to code stopped these crashes at all.
And for now, it would be great to understand why exactly this happened.
Maybe there is anything wrong implemented inside my view...

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!

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