iPhone app crashes when coming to foreground - ios

I have an application that is communicating to a device through the accessory port. When the device is spitting data (at a rate of one 13-byte packet every 20 ms, so not very quickly) to the iPhone, if I press the home button to send the app to the background, then open it again it will crash. I have added listeners to the UIApplicationDidBecomeActiveNotification and UIApplicationWillResignActiveNotification to shut down the data transmission when the app goes to the background, and turn it back on when it comes back, and now it doesn't crash all the time, but irregularly. When it crashes, it crashes even before it sends the UIApplicationDidBecomeActiveNotification.
Here's the Device Log from the error:
Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x00000004
Crashed Thread: 3
Thread 0:
0 libSystem.B.dylib 0x000016a8 semaphore_wait_trap + 8
1 libSystem.B.dylib 0x0002ed9e semaphore_wait + 2
2 libSystem.B.dylib 0x000d7ce4 _dispatch_semaphore_wait_slow + 296
3 libSystem.B.dylib 0x000d64a0 _dispatch_barrier_sync_f_slow + 128
4 CoreFoundation 0x0001511e CFMachPortCreateRunLoopSource + 118
5 QuartzCore 0x00005466 CA::Context::client_port() + 78
6 QuartzCore 0x00005310 CA::Context::connect_remote() + 244
7 QuartzCore 0x00004fda -[CAContextImpl initRemoteWithOptions:] + 26
8 QuartzCore 0x00004f9c +[CAContext remoteContextWithOptions:] + 28
9 UIKit 0x0000dae0 -[UIWindow _createContext] + 532
10 UIKit 0x0015957e _UIWindowUpdateVisibleContextOrder + 98
11 UIKit 0x0015962a +[UIWindow _prepareWindowsForAppResume] + 10
12 UIKit 0x00152824 -[UIApplication _handleApplicationResumeEvent:] + 68
13 UIKit 0x0005da80 -[UIApplication handleEvent:withNewEvent:] + 3772
14 UIKit 0x0005ca56 -[UIApplication sendEvent:] + 38
15 UIKit 0x0005c500 _UIApplicationHandleEvent + 5016
16 GraphicsServices 0x00004140 PurpleEventCallback + 660
17 GraphicsServices 0x000041ca PurpleEventSignalCallback + 10
18 CoreFoundation 0x00071a86 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION_ + 6
19 CoreFoundation 0x000736ac _CFRunLoopDoSources0 + 188
20 CoreFoundation 0x00074504 _CFRunLoopRun + 224
21 CoreFoundation 0x0001d8e4 CFRunLoopRunSpecific + 224
22 CoreFoundation 0x0001d7ec CFRunLoopRunInMode + 52
23 GraphicsServices 0x000036e8 GSEventRunModal + 108
24 GraphicsServices 0x00003794 GSEventRun + 56
25 UIKit 0x000062a0 -[UIApplication _run] + 396
26 UIKit 0x00004e10 UIApplicationMain + 664
27 TestRaspLayer 0x00003034 main (main.m:14)
28 TestRaspLayer 0x00002fe8 start + 32
Thread 1:
0 libSystem.B.dylib 0x0002dc4c kevent + 24
1 libSystem.B.dylib 0x000d6e44 _dispatch_mgr_invoke + 88
2 libSystem.B.dylib 0x000d6894 _dispatch_queue_invoke + 96
3 libSystem.B.dylib 0x000d6a34 _dispatch_worker_thread2 + 120
4 libSystem.B.dylib 0x0007ad82 _pthread_wqthread + 258
5 libSystem.B.dylib 0x00073fcc start_wqthread + 0
Thread 2:
0 libSystem.B.dylib 0x00001658 mach_msg_trap + 20
1 libSystem.B.dylib 0x00003724 mach_msg + 44
2 CoreFoundation 0x000722c8 _CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x00074582 _CFRunLoopRun + 350
4 CoreFoundation 0x0001d8e4 CFRunLoopRunSpecific + 224
5 CoreFoundation 0x0001d7ec CFRunLoopRunInMode + 52
6 WebCore 0x00003056 RunWebThread(void*) + 362
7 libSystem.B.dylib 0x0007a986 _pthread_start + 242
8 libSystem.B.dylib 0x000700e4 thread_start + 0
Thread 3 Crashed:
0 libicucore.A.dylib 0x00001bd0 uhash_get + 24
1 libicucore.A.dylib 0x00055b10 ures_hasNext + 720
2 libicucore.A.dylib 0x00055d08 ures_hasNext + 1224
3 libicucore.A.dylib 0x00055e64 ures_hasNext + 1572
4 libicucore.A.dylib 0x00003a28 ures_openDirect + 80
5 libicucore.A.dylib 0x000b4dee icu::TimeZone::getGMT() + 442
6 libicucore.A.dylib 0x0000861a icu::TimeZone::createSystemTimeZone(icu::UnicodeString const&) + 22
7 libicucore.A.dylib 0x0000cf90 icu::TimeZone::createTimeZone(icu::UnicodeString const&) + 4
8 libicucore.A.dylib 0x000bc6f8 ucal_setAttribute + 96
9 libicucore.A.dylib 0x0000d650 ucal_open + 32
10 CoreFoundation 0x000a7968 _CFCalendarCreateUCalendar + 160
11 CoreFoundation 0x00029cde CFCalendarCreateWithIdentifier + 362
12 CoreFoundation 0x0008d128 _CFLogCString + 472
13 CoreFoundation 0x00029b52 _CFLogvEx + 166
14 CoreFoundation 0x0003d63e CFLog + 26
15 CoreFoundation 0x00015184 _CFAutoreleasePoolPop + 52
16 Foundation 0x0000422a NSPopAutoreleasePool + 2
17 Foundation 0x0000de16 -[_NSOperationInternal start] + 910
18 Foundation 0x0000da78 -[NSOperation start] + 16
19 Foundation 0x0007e5b4 _startOperations_block_invoke_2 + 40
20 libSystem.B.dylib 0x000d5c54 _dispatch_call_block_and_release + 12
21 libSystem.B.dylib 0x000d6a34 _dispatch_worker_thread2 + 120
22 libSystem.B.dylib 0x0007ad82 _pthread_wqthread + 258
23 libSystem.B.dylib 0x00073fcc start_wqthread + 0
Thread 4:
0 libSystem.B.dylib 0x00001f8e memcpy + 718
1 TestRaspLayer 0x00007718 _inline_memcpy_chk (_string.h:58)
2 TestRaspLayer 0x00007678 -[SERIALPort processRxBuffer] (SERIALPort.m:243)
3 CoreFoundation 0x0009f06c _invoking_ + 60
4 CoreFoundation 0x00032706 -[NSInvocation invoke] + 102
5 Foundation 0x0007eb50 -[NSInvocationOperation main] + 72
6 Foundation 0x0000dd14 -[_NSOperationInternal start] + 652
7 Foundation 0x0000da78 -[NSOperation start] + 16
8 Foundation 0x0007e5b4 _startOperations_block_invoke_2 + 40
9 libSystem.B.dylib 0x000d5c54 _dispatch_call_block_and_release + 12
10 libSystem.B.dylib 0x000d6a34 _dispatch_worker_thread2 + 120
11 libSystem.B.dylib 0x0007ad82 _pthread_wqthread + 258
12 libSystem.B.dylib 0x00073fcc start_wqthread + 0
Thread 3 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x0000007f r2: 0x00000077 r3: 0x80000001
r4: 0x0013fc50 r5: 0x0038003c r6: 0x0038012c r7: 0x0037ff70
r8: 0x00000000 r9: 0xffffffff r10: 0x0013fcb4 r11: 0x00000000
ip: 0x00000077 sp: 0x0037ff68 lr: 0x339fbe09 pc: 0x339b8bd0
cpsr: 0x50000030

Will your app crash when the device is disconnected or idle, or does the crash only occur when the device is sending data?

I think
Thread 4:
0 libSystem.B.dylib 0x00001f8e memcpy + 718
1 TestRaspLayer 0x00007718 _inline_memcpy_chk (_string.h:58)
2 TestRaspLayer 0x00007678 -[SERIALPort processRxBuffer] (SERIALPort.m:243)
is where the app crashes, the problem could be from method processRXBuffer in SERIALPort class.
Double check you code and you'll find where the problem is.

Related

Alamofire 5.2.2 TestFlight watchOS build crashes on Apple Watch Series 3 devices (32-bit) (Bitcode related?)

I have a WatchOS Application on TestFlight that is crashing on startup on Apple Watch Series 3 devices (32-bit). It works flawlessly on Simulators (Xcode 11.7) and Apple Watch Series 4.
I am using Alamofire 5.2.2 with Swift Package Manager. Latest Xcode (version 11.7). The device is Apple Watch Series 3 devices (32-bit) running latest final watchOS (version 6.2.8). Can you help me or give some direction on what is happening here?
I am calling a REST service that returns a JSON error file (response) and HTTP status code 401 (Unauthorized) if no gateway access token is given.
As I said this works in simulator and Apple Watch Series 4 device. I suspect of Bitcode, as in the past versions I had an iOS companion app and disabled bitcode generation, but now we only have the watch app and I cannot disable Bitcode generation.
The crash is somewhat like this:
Hardware Model: Watch3,4
Process: Watch App Extension [616]
Version: 132 (1.0)
AppVariant: 1:Watch3,4:6
Beta: YES
Code Type: ARM (Native)
Role: Foreground
Parent Process: launchd [1]
Date/Time: 2020-09-02 15:52:50.8659 -0300
Launch Time: 2020-09-02 15:52:48.0000 -0300
OS Version: Watch OS 6.2.8 (17U63)
Release Type: User
Baseband Version: n/a
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x00000060
VM Region Info: 0x60 is not in any region. Bytes before following region: 2310048
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 00234000-0038c000 [ 1376K] r-x/r-x SM=COW ...App Extension
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [616]
Triggered by Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libswiftCore.dylib 0x6f7f4060 static _SetStorage.allocate+ 864352 (scale:age:seed:) + 16
1 libswiftCore.dylib 0x6f7f007e static _SetStorage.allocate+ 847998 (capacity:) + 126
2 Watch App Extension 0x002fcca4 specialized protocol witness for Collection.endIndex.getter in conformance [A] + 822436 (_$s30Watch_App_Extension12SimulaCambioMp:0)
3 Watch App Extension 0x002ebcfe static ResponseSerializer.defaultEmptyRequestMethods.getter + 752894 (contaFormatada.modify:102)
4 Watch App Extension 0x002801e2 AlamofireLoginService.loginSmartwatch(completion:) + 311778 (AlamofireLoginService.swift:49)
5 Watch App Extension 0x0027b568 specialized InterfaceController.doLogin(:semProgresso:) + 292200 (InterfaceController.swift:0)
6 Watch App Extension 0x00275ec6 InterfaceController.awake(withContext:) + 270022 (InterfaceController.swift:246)
7 Watch App Extension 0x00276888 #objc InterfaceController.awake(withContext:) + 272520 (<compiler-generated>:0
8 WatchKit 0x5f1959c2 _WKInterfaceControllerCreateClass + 444
9 WatchKit 0x5f1ceef4 __153-[SPRemoteInterface createViewController:className:properties:contextID:info:gestureDescriptions:clientIdentifier:interfaceControllerCreationCompletion:]_block_invoke_3 + 348
10 WatchKit 0x5f1cebbe __153-[SPRemoteInterface createViewController:className:properties:contextID:info:gestureDescriptions:clientIdentifier:interfaceControllerCreationCompletion:]_block_invoke_2 + 1070
11 WatchKit 0x5f194130 spUtils_dispatchAsyncToMainThread + 22
12 WatchKit 0x5f1ce75c __153-[SPRemoteInterface createViewController:className:properties:contextID:info:gestureDescriptions:clientIdentifier:interfaceControllerCreationCompletion:]_block_invoke + 156
13 WatchKit 0x5f1956c4 -[SPRemoteInterface performAfterApplicationDidFinishLaunching:] + 40
14 WatchKit 0x5f195410 -[SPRemoteInterface createViewController:className:properties:contextID:info:gestureDescriptions:clientIdentifier:interfaceControllerCreationCompletion:] + 282
15 WatchKit 0x5f23564a __178-[SPExtensionConnection interfaceViewController:createCompanionControllerClass:properties:initializationContextID:info:gestureDescriptions:interfaceControllerCreationCompletion:]_block_invoke + 294
16 WatchKit 0x5f192ba2 -[SPExtensionConnection performOnSendQueue:syncIfUnsuspended:] + 464
17 WatchKit 0x5f195298 -[SPExtensionConnection interfaceViewController:createCompanionControllerClass:properties:initializationContextID:info:gestureDescriptions:interfaceControllerCreationCompletion:] + 284
18 WatchKit 0x5f1950f4 -[SPApplicationDelegate viewController:createWKInterfaceControllerClass:properties:contextID:creationCompletion:] + 1588
19 WatchKit 0x5f183740 -[SPInterfaceViewController loadView] + 2004
20 UIKitCore 0x678d7aca -[UIViewController loadViewIfRequired] + 160
21 UIKitCore 0x678d80f0 -[UIViewController view] + 24
22 WatchKit 0x5f182536 -[SPInterfaceViewController applicationDidBecomeActive] + 126
23 WatchKit 0x5f182024 -[SPApplicationDelegate applicationDidBecomeActive:] + 670
24 UIKitCore 0x67d6dc9a -[UIApplication _stopDeactivatingForReason:] + 1150
25 UIKitCore 0x6772463e -[_UISceneLifecycleMultiplexer _performBlock:withApplicationOfDeactivationReasons:fromReasons:] + 414
26 UIKitCore 0x677248f0 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 632
27 UIKitCore 0x677242d6 -[_UISceneLifecycleMultiplexer uiScene:transitionedFromState:withTransitionContext:] + 266
28 UIKitCore 0x67727d88 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke_2 + 162
29 UIKitCore 0x679f8238 +[BSAnimationSettings+ 4551224 (UIKit) tryAnimatingWithSettings:actions:completion:] + 746
30 UIKitCore 0x67ab8a1c _UISceneSettingsDiffActionPerformChangesWithTransitionContext + 230
31 UIKitCore 0x67727ba8 __186-[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke + 116
32 UIKitCore 0x67ab892c _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext + 78
33 UIKitCore 0x67727a4c -[_UIWindowSceneFBSSceneTransitionContextDrivenLifecycleSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:] + 296
34 UIKitCore 0x675d7bd2 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 578
35 UIKitCore 0x675d6b48 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:] + 190
36 UIKitCore 0x675d795c -[UIScene scene:didUpdateWithDiff:transitionContext:completion:] + 158
37 UIKitCore 0x67a1480e -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 406
38 PepperUICore 0x59fc7e62 -[PUICApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 642
39 CarouselUIServices 0x5d67f498 -[CUISWatchKitApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 220
40 FrontBoardServices 0x52fa4b5c -[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:] + 510
41 FrontBoardServices 0x52fc3396 __88-[FBSWorkspaceScenesClient sceneID:updateWithSettingsDiff:transitionContext:completion:]_block_invoke_2 + 104
42 FrontBoardServices 0x52fad00c -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 204
43 FrontBoardServices 0x52fc32f8 __88-[FBSWorkspaceScenesClient sceneID:updateWithSettingsDiff:transitionContext:completion:]_block_invoke + 154
44 libdispatch.dylib 0x4f882e1e _dispatch_client_callout + 6
45 libdispatch.dylib 0x4f88507a _dispatch_block_invoke_direct + 180
46 FrontBoardServices 0x52fe1748 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 22
47 FrontBoardServices 0x52fe152e -[FBSSerialQueue _queue_performNextIfPossible] + 346
48 FrontBoardServices 0x52fe1926 -[FBSSerialQueue _performNextFromRunLoopSource] + 24
49 CoreFoundation 0x4fd0696e __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
50 CoreFoundation 0x4fd068c4 __CFRunLoopDoSource0 + 84
51 CoreFoundation 0x4fd062d6 __CFRunLoopDoSources0 + 200
52 CoreFoundation 0x4fd02264 __CFRunLoopRun + 732
53 CoreFoundation 0x4fd01cec CFRunLoopRunSpecific + 326
54 GraphicsServices 0x52b6bd3c GSEventRunModal + 132
55 UIKitCore 0x67d7736e UIApplicationMain + 1720
56 libxpc.dylib 0x4faa3f0c _xpc_objc_main.cold.3 + 152
57 libxpc.dylib 0x4fa94e8c _xpc_objc_main + 184
58 libxpc.dylib 0x4fa96ae8 xpc_main + 110
59 Foundation 0x50617090 +[NSXPCListener serviceListener] + 0
60 PlugInKit 0x577f0392 0x577de000 + 74642
61 WatchKit 0x5f18faf0 WKExtensionMain + 62
62 libdyld.dylib 0x4f8bd7b2 start + 2
Thread 1:
0 libsystem_pthread.dylib 0x4fa5bf24 start_wqthread + 0
Thread 2:
0 libsystem_pthread.dylib 0x4fa5bf24 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x4fa5bf24 start_wqthread + 0
Thread 4 name: com.apple.uikit.eventfetch-thread
Thread 4:
0 libsystem_kernel.dylib 0x4f9c76a8 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x4f9c6d7a mach_msg + 42
2 CoreFoundation 0x4fd06390 __CFRunLoopServiceMachPort + 106
3 CoreFoundation 0x4fd0238a __CFRunLoopRun + 1026
4 CoreFoundation 0x4fd01cec CFRunLoopRunSpecific + 326
5 Foundation 0x505e3a58 -[NSRunLoop+ 27224 (NSRunLoop) runMode:beforeDate:] + 180
6 Foundation 0x505e3974 -[NSRunLoop+ 26996 (NSRunLoop) runUntilDate:] + 76
7 UIKitCore 0x67df5f18 -[UIEventFetcher threadMain] + 140
8 Foundation 0x506e4308 __NSThread__start__ + 708
9 libsystem_pthread.dylib 0x4fa55236 _pthread_start + 130
10 libsystem_pthread.dylib 0x4fa5bf50 thread_start + 20
Thread 5:
0 libsystem_pthread.dylib 0x4fa5bf24 start_wqthread + 0
Thread 6:
0 libsystem_pthread.dylib 0x4fa5bf24 start_wqthread + 0
Thread 7:
0 libsystem_pthread.dylib 0x4fa5bf24 start_wqthread + 0
Thread 8 name: Dispatch queue: com.apple.NSXPCConnection.m-user.com.apple.nsurlsessiond.NSURLSessionProxyService
Thread 8:
0 libsystem_kernel.dylib 0x4f9e0bac kevent_id + 24
1 libdispatch.dylib 0x4f89aec8 _dispatch_kq_poll + 144
2 libdispatch.dylib 0x4f89a73a _dispatch_event_loop_poke + 650
3 libdispatch.dylib 0x4f889dee _dispatch_queue_wakeup + 354
4 CFNetwork 0x5044ee96 0x502f6000 + 1412758
5 CoreFoundation 0x4fd6f564 __invoking___ + 84
6 CoreFoundation 0x4fc83cf6 -[NSInvocation invoke] + 274
7 Foundation 0x507c00bc __NSXPCCONNECTION_IS_CALLING_OUT_TO_EXPORTED_OBJECT__ + 22
8 Foundation 0x506256fc -[NSXPCConnection _decodeAndInvokeMessageWithEvent:flags:] + 1168
9 Foundation 0x507c01e0 message_handler + 196
10 libxpc.dylib 0x4fa8f730 _xpc_connection_call_event_handler + 36
11 libxpc.dylib 0x4fa8fa04 _xpc_connection_mach_event + 716
12 libdispatch.dylib 0x4f882e8c _dispatch_client_callout4 + 8
13 libdispatch.dylib 0x4f895cda _dispatch_mach_msg_invoke + 312
14 libdispatch.dylib 0x4f887ca2 _dispatch_lane_serial_drain + 308
15 libdispatch.dylib 0x4f8966a8 _dispatch_mach_invoke + 418
16 libdispatch.dylib 0x4f887ca2 _dispatch_lane_serial_drain + 308
17 libdispatch.dylib 0x4f888650 _dispatch_lane_invoke + 352
18 libdispatch.dylib 0x4f890334 _dispatch_workloop_worker_thread + 508
19 libsystem_pthread.dylib 0x4fa56cfc _pthread_wqthread + 204
20 libsystem_pthread.dylib 0x4fa5bf38 start_wqthread + 20
Thread 9:
0 libsystem_pthread.dylib 0x4fa5bf24 start_wqthread + 0
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000001 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x00000001 r5: 0x00000001 r6: 0x000000e4 r7: 0x27bcd708
r8: 0x00000000 r9: 0x00000000 r10: 0x00000000 r11: 0x16db3fd0
ip: 0xfff00000 sp: 0x27bcd670 lr: 0x6f7f007f pc: 0x6f7f4060
cpsr: 0x60000030
Binary Images:
0x234000 - 0x3d3fff Watch App Extension armv7k <53780c55b55534578139202ab803cb6a> /var/containers/Bundle/Application/8D10BAB7-2EDF-4C98-8558-915BEBC0F499/Watch App.app/PlugIns/Watch App Extension.appex/Watch App Extension
0x504000 - 0x513fff libobjc-trampolines.dylib armv7k <6ad2db0ce5f230ef93a1624440cf513a> /usr/lib/libobjc-trampolines.dylib
0x590000 - 0x5ebfff dyld armv7k <3cbcec3e342e3bfab00f28eb029de430> /usr/lib/dyld
0x4f772000 - 0x4f775fff libSystem.B.dylib armv7k <bfe605fff46e3cfe8397e37435e59490> /usr/lib/libSystem.B.dylib
0x4f776000 - 0x4f7b9fff libc++.1.dylib armv7k <68da4f7256543e498f1e74e33a812556> /usr/lib/libc++.1.dylib
0x4f7ba000 - 0x4f7cdfff libc++abi.dylib armv7k <1d210edc8eba3fcfa230d00b69cb680e> /usr/lib/libc++abi.dylib
0x4f7ce000 - 0x4f7f9fff libobjc.A.dylib armv7k <0d9598610d3d3e1a8fe88321114d241b> /usr/lib/libobjc.A.dylib
0x4f7fa000 - 0x4f801fff libcache.dylib armv7k <08fbf121eaf13f1da5f709956c6e2c70> /usr/lib/system/libcache.dylib
...
...
...
This is a known issue
https://github.com/Alamofire/Alamofire/issues/3295
Beyond Apple releasing a fix for their bug -- the work arounds include:
Setting Dead Code stripping to No in the Watch Extension Target.
A different version of Alamofire.
Moving AF from SPM to CocoaPods.

EXC_CRASH (SIGABRT) crash error only for release version

The app that I have runs perfectly fine in debug mode but when tested in ad hoc in release mode a crash happens. The crash actually happens when the app first starts. I don't really know how to debug or proceed to find out what's the issue. Xcode doesn't throw any error.
The following is my crash log
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x2eb6dfce __exceptionPreprocess + 126
1 libobjc.A.dylib 0x3970ecca objc_exception_throw + 34
2 CoreFoundation 0x2eaa49c0 -[__NSArrayM removeObjectAtIndex:] + 420
3 geezer 0x0008dfce 0x25000 + 430030
4 geezer 0x0008d2c0 0x25000 + 426688
5 UIKit 0x3138e4c6 -[UIViewController loadViewIfRequired] + 514
6 UIKit 0x3138e284 -[UIViewController view] + 20
7 geezer 0x000413fa 0x25000 + 115706
8 geezer 0x00041082 0x25000 + 114818
9 geezer 0x0005616e 0x25000 + 201070
10 UIKit 0x313f95a2 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 270
11 UIKit 0x313f8ef6 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1606
12 UIKit 0x313f3586 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 710
13 UIKit 0x3138f704 -[UIApplication handleEvent:withNewEvent:] + 3536
14 UIKit 0x3138e86c -[UIApplication sendEvent:] + 68
15 UIKit 0x313f2cc4 _UIApplicationHandleEvent + 612
16 GraphicsServices 0x339c8ae8 _PurpleEventCallback + 604
17 GraphicsServices 0x339c86d2 PurpleEventCallback + 30
18 CoreFoundation 0x2eb38ab2 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
19 CoreFoundation 0x2eb38a4e __CFRunLoopDoSource1 + 342
20 CoreFoundation 0x2eb37222 __CFRunLoopRun + 1394
21 CoreFoundation 0x2eaa1f0a CFRunLoopRunSpecific + 518
22 CoreFoundation 0x2eaa1cee CFRunLoopRunInMode + 102
23 UIKit 0x313f1eec -[UIApplication _run] + 756
24 UIKit 0x313ed168 UIApplicationMain + 1132
25 geezer 0x0008b19a 0x25000 + 418202
26 libdyld.dylib 0x39c1bab2 tlv_initializer + 2
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x39cd11f0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x39d3b792 pthread_kill + 54
2 libsystem_c.dylib 0x39c81fd8 abort + 72
3 libc++abi.dylib 0x38fb0cd2 abort_message + 70
4 libc++abi.dylib 0x38fc96e0 default_terminate_handler() + 248
5 libobjc.A.dylib 0x3970ef62 _objc_terminate() + 190
6 libc++abi.dylib 0x38fc71c4 std::__terminate(void (*)()) + 76
7 libc++abi.dylib 0x38fc6d28 __cxa_rethrow + 96
8 libobjc.A.dylib 0x3970ee12 objc_exception_rethrow + 38
9 CoreFoundation 0x2eaa1f80 CFRunLoopRunSpecific + 636
10 CoreFoundation 0x2eaa1cee CFRunLoopRunInMode + 102
11 UIKit 0x313f1eec -[UIApplication _run] + 756
12 UIKit 0x313ed168 UIApplicationMain + 1132
13 geezer 0x0008b19a 0x25000 + 418202
14 libdyld.dylib 0x39c1bab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x39cbe808 kevent64 + 24
1 libdispatch.dylib 0x39c00078 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x39bffdfe _dispatch_mgr_thread$VARIANT$mp + 34
Thread 2:
0 libsystem_kernel.dylib 0x39cd1c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39d38bda _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x39d38a94 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x39cd1c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39d38bda _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x39d38a94 start_wqthread + 4
Thread 4 name: AFNetworking
Thread 4:
0 libobjc.A.dylib 0x3971794c objc_opt::objc_selopt_t::get(char const*) const + 36
1 libobjc.A.dylib 0x39717828 __sel_registerName(char const*, int, int) + 40
2 CFNetwork 0x2e7fec56 ___ZN24ClassicConnectionSession14processDefaultEv_block_invoke + 34
3 libdispatch.dylib 0x39bf681c _dispatch_client_callout + 20
4 libdispatch.dylib 0x39bfe60a dispatch_once_f$VARIANT$mp + 42
5 CFNetwork 0x2e7fec2e ClassicConnectionSession::processDefault() + 38
6 CFNetwork 0x2e7a9e90 URLProtocol::getProtocolRegistry() + 4
7 CFNetwork 0x2e761d28 _CFURLProtocolRegisterFoundationBridge + 8
8 Foundation 0x2f4dfb94 +[_NSCFURLProtocolBridge registerWithCFURLProtocol] + 168
9 Foundation 0x2f4dfa9c NSURLProtocolInit + 316
10 libsystem_pthread.dylib 0x39d3b82c __pthread_once_handler + 48
11 libsystem_platform.dylib 0x39d334e0 _os_once + 40
12 libsystem_pthread.dylib 0x39d39ada pthread_once + 46
13 Foundation 0x2f4aca0c +[NSURLProtocol(NSURLProtocolPrivate) _registeredClasses] + 48
14 libdispatch.dylib 0x39bf681c _dispatch_client_callout + 20
15 libdispatch.dylib 0x39bfe60a dispatch_once_f$VARIANT$mp + 42
16 Foundation 0x2f4abccc -[NSURLConnection(Private) _initWithRequest:delegate:usesCache:maxContentLength:startImmediately:connectionProperties:] + 464
17 Foundation 0x2f4fdd0a -[NSURLConnection initWithRequest:delegate:startImmediately:] + 50
18 geezer 0x0003153a 0x25000 + 50490
19 Foundation 0x2f556c6e __NSThreadPerformPerform + 382
20 CoreFoundation 0x2eb39258 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
21 CoreFoundation 0x2eb38726 __CFRunLoopDoSources0 + 202
22 CoreFoundation 0x2eb36f1a __CFRunLoopRun + 618
23 CoreFoundation 0x2eaa1f0a CFRunLoopRunSpecific + 518
24 CoreFoundation 0x2eaa1cee CFRunLoopRunInMode + 102
25 Foundation 0x2f4941e6 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
26 Foundation 0x2f4e509c -[NSRunLoop(NSRunLoop) run] + 76
27 geezer 0x0002fd12 0x25000 + 44306
28 Foundation 0x2f556a5a __NSThread__main__ + 1058
29 libsystem_pthread.dylib 0x39d3a916 _pthread_body + 138
30 libsystem_pthread.dylib 0x39d3a886 _pthread_start + 98
31 libsystem_pthread.dylib 0x39d38aa0 thread_start + 4
Thread 5 name: com.apple.NSURLConnectionLoader
Thread 5:
0 libsystem_kernel.dylib 0x39cbea58 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39cbe854 mach_msg + 44
2 CoreFoundation 0x2eb38896 __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x2eb36fbc __CFRunLoopRun + 780
4 CoreFoundation 0x2eaa1f0a CFRunLoopRunSpecific + 518
5 CoreFoundation 0x2eaa1cee CFRunLoopRunInMode + 102
6 Foundation 0x2f4e1082 +[NSURLConnection(Loader) _resourceLoadLoop:] + 314
7 Foundation 0x2f556a5a __NSThread__main__ + 1058
8 libsystem_pthread.dylib 0x39d3a916 _pthread_body + 138
9 libsystem_pthread.dylib 0x39d3a886 _pthread_start + 98
10 libsystem_pthread.dylib 0x39d38aa0 thread_start + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00002060
r4: 0x00000006 r5: 0x3bcb518c r6: 0x00000000 r7: 0x27dde584
r8: 0x17d745a0 r9: 0x00000001 r10: 0x000e6070 r11: 0x000e3994
ip: 0x00000148 sp: 0x27dde578 lr: 0x39d3b797 pc: 0x39cd11f0
cpsr: 0x00000010
Update: After reading tonnes of stuff on the internet about symbolicating, finally I managed to do it with Xcode 5. Some were pretty complicated with the need to use the terminal. Luckily all I needed to do was to go to Organizer in Xcode, grab the latest Archive in Finder. Show Package Contents from that file to get the dsym folder. Copy it out to a folder together with the ipa file and then just install the ipa through Organizer. The crash log will look much more meaningful.
After reading tonnes of stuff on the internet about symbolicating, finally I managed to do it with Xcode 5. Some were pretty complicated with the need to use the terminal. Luckily all I needed to do was to go to Organizer in Xcode, grab the latest Archive in Finder. Show Package Contents from that file to get the dsym folder. Copy it out to a folder together with the ipa file and then just install the ipa through Organizer. The crash log will look much more meaningful.

MKMapView crashes by setRegion

i want to show a specific adress on the Map. Here is my code.
- (void)viewDidLoad{
[super viewDidLoad];
CLLocationCoordinate2D startCoord = CLLocationCoordinate2DMake(51.514302, 7.616798);
MKCoordinateRegion adjustedRegion = [_map regionThatFits:MKCoordinateRegionMakeWithDistance(startCoord, 200.0, 200.0)];
adjustedRegion.span = MKCoordinateSpanMake(0.005, 0.005);
[_map setRegion:adjustedRegion];
On the Simulator it works fine but on my iPad it crashes...
Where is my fault?
Last Exception Backtrace:
0 CoreFoundation 0x33cbe3e2 __exceptionPreprocess + 158
1 libobjc.A.dylib 0x3bb4e95e objc_exception_throw + 26
2 CoreFoundation 0x33cbe0d0 -[NSException raise] + 4
3 MapKit 0x34aec530 -[MKMapView setRegion:animated:] + 672
4 MapKit 0x34aec64a __32-[MKMapView setRegion:animated:]_block_invoke_0 + 90
5 MapKit 0x34ad6006 -[MKMapView _updateCenteredAttributesWithCoordinate:] + 122
6 MapKit 0x34ad5f3a -[MKMapView _sizeDidChangeWithCenterCoordinate:] + 126
7 MapKit 0x34ae8b58 -[MKMapView setBounds:] + 224
8 UIKit 0x35cb2476 -[UIView(Geometry) _applyISEngineLayoutValues] + 246
9 UIKit 0x35b3068a -[UIView(Geometry) _resizeWithOldSuperviewSize:] + 138
10 CoreFoundation 0x33cb9c1c __NSArrayChunkIterate + 364
11 CoreFoundation 0x33cb2bb2 __NSArrayEnumerate + 590
12 CoreFoundation 0x33c14e32 -[NSArray enumerateObjectsWithOptions:usingBlock:] + 58
13 UIKit 0x35ae9096 -[UIView(Geometry) resizeSubviewsWithOldSize:] + 114
14 UIKit 0x35f09da8 -[UIView(AdditionalLayoutSupport) _is_layout] + 112
15 UIKit 0x35ad6ae0 -[UIView(Hierarchy) layoutSubviews] + 68
16 UIKit 0x35ad08c2 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 254
17 QuartzCore 0x3587c50e -[CALayer layoutSublayers] + 210
18 QuartzCore 0x3587c0b0 CA::Layer::layout_if_needed(CA::Transaction*) + 456
19 QuartzCore 0x358aaeca -[CALayer layoutIfNeeded] + 138
20 UIKit 0x35b7a0dc -[UIViewController window:setupWithInterfaceOrientation:] + 204
21 UIKit 0x35b792c6 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 3598
22 UIKit 0x35b784aa -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 42
23 UIKit 0x35b78434 -[UIWindow _setRotatableViewOrientation:duration:force:] + 64
24 UIKit 0x35cadcb4 __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke_0 + 100
25 UIKit 0x35b3667e -[UIWindow _updateToInterfaceOrientation:duration:force:] + 214
26 UIKit 0x35b363c2 -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 690
27 UIKit 0x35b35d2a -[UIViewController _tryBecomeRootViewControllerInWindow:] + 150
28 UIKit 0x35b2ce86 -[UIWindow addRootViewControllerViewIfPossible] + 366
29 UIKit 0x35b28af0 -[UIWindow _setHidden:forced:] + 360
30 UIKit 0x35b6a1dc -[UIWindow makeKeyAndVisible] + 56
31 UIKit 0x35b2d7fe -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1642
32 UIKit 0x35b2582e -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 694
33 UIKit 0x35acdd1a -[UIApplication handleEvent:withNewEvent:] + 1006
34 UIKit 0x35acd7a8 -[UIApplication sendEvent:] + 68
35 UIKit 0x35acd1ea _UIApplicationHandleEvent + 6194
36 GraphicsServices 0x377c05f2 _PurpleEventCallback + 586
37 GraphicsServices 0x377c0222 PurpleEventCallback + 30
38 CoreFoundation 0x33c933e2 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 30
39 CoreFoundation 0x33c93386 __CFRunLoopDoSource1 + 134
40 CoreFoundation 0x33c9220a __CFRunLoopRun + 1378
41 CoreFoundation 0x33c05238 CFRunLoopRunSpecific + 352
42 CoreFoundation 0x33c050c4 CFRunLoopRunInMode + 100
43 UIKit 0x35b24468 -[UIApplication _run] + 664
44 UIKit 0x35b212b4 UIApplicationMain + 1116
45 AD HOK 0x000bcd80 main (main.m:16)
46 libdyld.dylib 0x3bf7bb1c start + 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3c042350 __pthread_kill + 8
1 libsystem_c.dylib 0x3bfb8fb2 pthread_kill + 54
2 libsystem_c.dylib 0x3bff5366 abort + 90
3 libc++abi.dylib 0x3b59ddda abort_message + 70
4 libc++abi.dylib 0x3b59b094 _ZL17default_terminatev + 20
5 libobjc.A.dylib 0x3bb4ea58 _ZL15_objc_terminatev + 144
6 libc++abi.dylib 0x3b59b118 _ZL19safe_handler_callerPFvvE + 76
7 libc++abi.dylib 0x3b59b1b0 std::terminate() + 16
8 libc++abi.dylib 0x3b59c626 __cxa_rethrow + 90
9 libobjc.A.dylib 0x3bb4e9b0 objc_exception_rethrow + 8
10 CoreFoundation 0x33c0529c CFRunLoopRunSpecific + 452
11 CoreFoundation 0x33c050c4 CFRunLoopRunInMode + 100
12 UIKit 0x35b24468 -[UIApplication _run] + 664
13 UIKit 0x35b212b4 UIApplicationMain + 1116
14 AD HOK 0x000bcd80 main (main.m:16)
15 libdyld.dylib 0x3bf7bb1c start + 0
Thread 1:
0 libsystem_kernel.dylib 0x3c042d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3bf90ad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3bf907f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3bf90680 start_wqthread + 4
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x3c0325d0 kevent64 + 24
1 libdispatch.dylib 0x3bf6dd22 _dispatch_mgr_invoke + 806
2 libdispatch.dylib 0x3bf69374 _dispatch_mgr_thread + 32
Thread 3:
0 libsystem_kernel.dylib 0x3c042d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3bf90ad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3bf907f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3bf90680 start_wqthread + 4
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x3c031e30 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3c031fd0 mach_msg + 48
2 CoreFoundation 0x33c932b6 __CFRunLoopServiceMachPort + 126
3 CoreFoundation 0x33c9202c __CFRunLoopRun + 900
4 CoreFoundation 0x33c05238 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x33c050c4 CFRunLoopRunInMode + 100
6 WebCore 0x39be0390 _ZL12RunWebThreadPv + 440
7 libsystem_c.dylib 0x3bf9b0de _pthread_start + 306
8 libsystem_c.dylib 0x3bf9afa4 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x3c042d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3bf90ad6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3bf907f2 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3bf90680 start_wqthread + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x3db31524
r4: 0x00000006 r5: 0x3db31b78 r6: 0x210aa354 r7: 0x2fd459d4
r8: 0x210aa330 r9: 0x00000300 r10: 0x00000000 r11: 0x7ff80000
ip: 0x00000148 sp: 0x2fd459c8 lr: 0x3bfb8fb7 pc: 0x3c042350
cpsr: 0x00000010
It's not clear why you are asking the map for the region that fits, when you end up setting the span for that region again explicitly anyway. Further, the map doesn't have a meaningful answer to this question before layout is completed. This is probably why it is crashing, because the region is not correctly defined.
From your code, it looks like you just wanted to do this:
- (void)viewDidLoad{
[super viewDidLoad];
CLLocationCoordinate2D startCoord = CLLocationCoordinate2DMake(51.514302, 7.616798);
[_map setRegion:MKCoordinateRegionMakeWithDistance(startCoord, 200.0, 200.0) animated:NO];
}
I think that's much simpler, and should work fine on the device. Hope that helps.

solve Crash Log in ios

I have an app of sending free text MSG ..
While i select a contact i got my application crash and from crash log i didn't get solution of it ..
Can any one tell me how to solve crash log with proper stapes ..
Here is my Crash Log :
Incident Identifier: A8E3BBD6-CD0D-45C8-8134-65EF03CBFF5E
CrashReporter Key: 64c47e02a46dcc17a25718b8b3d9f579f535b545
Hardware Model: iPhone2,1
Process: [6703]
Path: /var/mobile/Applications/9055F800-A876-4D5E-B1CD-202BC6F80BDB/.app/
Identifier:
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2011-11-24 13:27:16.113 +0530
OS Version: iPhone OS 4.1 (8B117)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x656a6277
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x000027d8 objc_msgSend + 16
1 CoreFoundation 0x000042ae CFRetain + 62
2 CoreFoundation 0x0002832a +[__NSArrayI __new::] + 54
3 CoreFoundation 0x00028152 -[__NSPlaceholderArray initWithObjects:count:] + 122
4 CoreFoundation 0x00027ef4 +[NSArray arrayWithObjects:] + 356
5 0x00033fcc 0x1000 + 208844
6 0x00033f46 0x1000 + 208710
7 UIKit 0x0022fb26 -[UISearchDisplayController searchBar:textDidChange:] + 78
8 UIKit 0x001f48aa -[UISearchBar(UISearchBarStatic) _searchFieldEditingChanged] + 106
9 CoreFoundation 0x00047712 -[NSObject(NSObject) performSelector:withObject:withObject:] + 18
10 UIKit 0x0010dfa0 -[UIApplication sendAction:fromSender:toTarget:forEvent:] + 76
11 UIKit 0x00137c00 -[UIControl(Deprecated) sendAction:toTarget:forEvent:] + 28
12 UIKit 0x000ab930 -[UIControl(Internal) _sendActionsForEventMask:withEvent:] + 352
13 UIKit 0x000dd888 -[UITextField fieldEditorDidChange:] + 188
14 UIKit 0x000dd6c0 -[UIFieldEditor webViewDidChange:] + 48
15 Foundation 0x000146ac _nsnote_callback + 136
16 CoreFoundation 0x0002670c __CFXNotificationPost_old + 396
17 CoreFoundation 0x000263ac _CFXNotificationPostNotification + 112
18 Foundation 0x00003db0 -[NSNotificationCenter postNotificationName:object:userInfo:] + 64
19 CoreFoundation 0x0004b42c __invoking___ + 60
20 CoreFoundation 0x0004b2fe -[NSInvocation invoke] + 102
21 WebCore 0x00049816 SendMessage(NSInvocation*) + 10
22 WebCore 0x00057dc0 SendDelegateMessage(NSInvocation*) + 700
23 WebCore 0x000617f4 WebThreadPostNotification + 88
24 WebKit 0x0001347c WebEditorClient::respondToChangedContents() + 24
25 WebCore 0x0026d8ce WebCore::Editor::respondToChangedContents(WebCore::VisibleSelection const&) + 98
26 WebCore 0x0026db34 WebCore::Editor::appliedEditing(WTF::PassRefPtr<WebCore::EditCommand>) + 204
27 WebCore 0x004e852a WebCore::TypingCommand::insertTextRunWithoutNewlines(WebCore::String const&, bool) + 258
28 WebCore 0x004e8606 WebCore::TypingCommand::insertText(WebCore::String const&, bool) + 134
29 WebCore 0x004e6c7a WebCore::TypingCommand::doApply() + 126
30 WebCore 0x0026af2e WebCore::EditCommand::apply() + 86
31 WebCore 0x0026af8c WebCore::applyCommand(WTF::PassRefPtr<WebCore::EditCommand>) + 4
32 WebCore 0x004e8ba6 WebCore::TypingCommand::insertText(WebCore::Document*, WebCore::String const&, WebCore::VisibleSelection const&, bool, bool) + 526
33 WebCore 0x0027020a WebCore::Editor::insertTextWithoutSendingTextEvent(WebCore::String const&, bool, WebCore::Event*) + 210
34 WebCore 0x002751e0 WebCore::EventHandler::defaultTextInputEventHandler(WebCore::TextEvent*) + 76
35 WebCore 0x00066a86 WebCore::Node::defaultEventHandler(WebCore::Event*) + 342
36 WebCore 0x000666e2 WebCore::Node::dispatchGenericEvent(WTF::PassRefPtr<WebCore::Event>) + 578
37 WebCore 0x00066440 WebCore::Node::dispatchEvent(WTF::PassRefPtr<WebCore::Event>) + 144
38 WebCore 0x00164232 WebCore::EventTarget::dispatchEvent(WTF::PassRefPtr<WebCore::Event>, int&) + 54
39 WebCore 0x0027535c WebCore::EventHandler::handleTextInputEvent(WebCore::String const&, WebCore::Event*, bool, bool) + 43 WebCore 0x004ee42c -[WAKResponder tryToPerform:with:] + 40
44 WebKit 0x000122ac -[WebView(WebViewEditingActions) _performResponderOperation:with:] + 76
45 WebKit 0x00012254 -[WebView(WebViewEditingActions) insertText:] + 16
46 UIKit 0x00100f46 -[UIWebDocumentView insertText:] + 26
47 UIKit 0x0010076c -[UIKeyboardImpl addInputString:fromVariantK
ey:] + 2504
48 UIKit 0x000ffd80 -[UIKeyboardImpl handleStringInput:fromVariantKey:] + 128
49 UIKit 0x000fec0c -[UIKeyboardImpl handleKeyEvent:] + 1292
50 UIKit 0x000fe6ec -[UIApplication _handleKeyEvent:] + 28
51 UIKit 0x000fe6be -[UIResponder(Internal) _handleKeyEvent:] + 22
52 UIKit 0x000fe6be -[UIResponder(Internal) _handleKeyEvent:] + 22
53 UIKit 0x000fe6be -[UIResponder(Internal) _handleKeyEvent:] + 22
54 UIKit 0x000fe6be -[UIResponder(Internal) _handleKeyEvent:] + 22
55 UIKit 0x000fe6be -[UIResponder(Internal) _handleKeyEvent:] + 22
56 UIKit 0x000fe6be -[UIResponder(Internal) _handleKeyEvent:] + 22
57 UIKit 0x000fe694 -[UIApplication handleKeyEvent:] + 40
58 UIKit 0x000fe5ae -[UIKeyboardLayoutStar sendStringAction:forKey:] + 394
59 UIKit 0x000fc2e4 -[UIKeyboardLayoutStar touchUp:] + 1656
60 UIKit 0x000fbbe0 -[UIKeyboardLayout touchesEnded:withEvent:] + 296
61 UIKit 0x00062dd6 -[UIWindow _sendTouchesForEvent:] + 362
62 UIKit 0x00062750 -[UIWindow sendEvent:] + 256
63 UIKit 0x0005d9f8 -[UIApplication sendEvent:] + 292
64 UIKit 0x0005d330 _UIApplicationHandleEvent + 5104
65 GraphicsServices 0x00005044 PurpleEventCallback + 660
66 CoreFoundation 0x00034cdc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20
67 CoreFoundation 0x00034ca0 __CFRunLoopDoSource1 + 160
68 CoreFoundation 0x00027566 __CFRunLoopRun + 514
69 CoreFoundation 0x00027270 CFRunLoopRunSpecific + 224
70 CoreFoundation 0x00027178 CFRunLoopRunInMode + 52
71 GraphicsServices 0x000045ec GSEventRunModal + 108
72 GraphicsServices 0x00004698 GSEventRun + 56
73 UIKit 0x0000411c -[UIApplication _run] + 396
74 UIKit 0x00002128 UIApplicationMain + 664
75 0x0000265a 0x1000 + 5722
76 0x1000 + 5668
Thread 1:
0 libSystem.B.dylib 0x0002d330 kevent + 24
1 libSystem.B.dylib 0x000d6b6c _dispatch_mgr_invoke + 88
2 libSystem.B.dylib 0x000d65bc _dispatch_queue_invoke + 96
3 libSystem.B.dylib 0x000d675c _dispatch_worker_thread2 + 120
4 libSystem.B.dylib 0x0007a67a _pthread_wqthread + 258
5 libSystem.B.dylib 0x00073190 start_wqthread + 0
Thread 2:
0 libSystem.B.dylib 0x0007b19c __workq_kernreturn + 8
1 libSystem.B.dylib 0x0007a790 _pthread_wqthread + 536
2 libSystem.B.dylib 0x00073190 start_wqthread + 0
Thread 3:
0 libSystem.B.dylib 0x00000cf4 semaphore_wait_signal_trap + 8
1 libSystem.B.dylib 0x0002e4ee semaphore_wait_signal + 2
2 libSystem.B.dylib 0x00002ae4 pthread_mutex_lock + 248
3 WebCore 0x00002620 _WebTryThreadLock(bool) + 140
4 WebCore 0x00002566 WebRunLoopLock(__CFRunLoopObserver*, unsigned long, void*) + 18
5 CoreFoundation 0x00030236 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 10
6 CoreFoundation 0x000300aa __CFRunLoopDoObservers + 406
7 CoreFoundation 0x000276c0 __CFRunLoopRun + 860
8 CoreFoundation 0x00027270 CFRunLoopRunSpecific + 224
9 CoreFoundation 0x00027178 CFRunLoopRunInMode + 52
10 WebCore 0x000024e2 RunWebThread(void*) + 362
11 libSystem.B.dylib 0x0007a27e _pthread_start + 242
12 libSystem.B.dylib 0x0006f2a8 thread_start + 0
Thread 4:
0 libSystem.B.dylib 0x00000c98 mach_msg_trap + 20
1 libSystem.B.dylib 0x00002d64 mach_msg + 44
2 CoreFoundation 0x00027c38 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x000274c2 __CFRunLoopRun + 350
4 CoreFoundation 0x00027270 CFRunLoopRunSpecific + 224
5 CoreFoundation 0x00027178 CFRunLoopRunInMode + 52
6 CFNetwork 0x00069074 CFURLConnectionSendSynchronousRequest + 244
7 Foundation 0x000aed8c +[NSURLConnection sendSynchronousRequest:returningResponse:error:] + 76
8 0x00025ea4 0x1000 + 151204
9 0x000296c8 0x1000 + 165576
10 Foundation 0x0000b222 -[NSThread main] + 38
11 Foundation 0x000042d6 __NSThread__main__ + 966
12 libSystem.B.dylib 0x0007a27e _pthread_start + 242
13 libSystem.B.dylib 0x0006f2a8 thread_start + 0
Thread 5:
0 libSystem.B.dylib 0x00000c98 mach_msg_trap + 20
1 libSystem.B.dylib 0x00002d64 mach_msg + 44
2 CoreFoundation 0x00027c38 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x000274c2 __CFRunLoopRun + 350
4 CoreFoundation 0x00027270 CFRunLoopRunSpecific + 224
5 CoreFoundation 0x00027178 CFRunLoopRunInMode + 52
6 Foundation 0x0002d686 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:] + 206
7 Foundation 0x0000b222 -[NSThread main] + 38
8 Foundation 0x000042d6 __NSThread__main__ + 966
9 libSystem.B.dylib 0x0007a27e _pthread_start + 242
10 libSystem.B.dylib 0x0006f2a8 thread_start + 0
Thread 6:
0 libSystem.B.dylib 0x00025060 select$DARWIN_EXTSN + 20
1 CoreFoundation 0x0005edfc __CFSocketManager + 540
2 libSystem.B.dylib 0x0007a27e _pthread_start + 242
3 libSystem.B.dylib 0x0006f2a8 thread_start + 0
Thread 7:
0 libSystem.B.dylib 0x0007b19c __workq_kernreturn + 8
1 libSystem.B.dylib 0x0007a790 _pthread_wqthread + 536
2 libSystem.B.dylib 0x00073190 start_wqthread + 0
Thread 8:
0 libSystem.B.dylib 0x00000c98 mach_msg_trap + 20
1 libSystem.B.dylib 0x00002d64 mach_msg + 44
2 libSystem.B.dylib 0x0002591e thread_policy + 118
3 libSystem.B.dylib 0x00025896 pthread_setschedparam_internal + 62
4 libSystem.B.dylib 0x000257d0 pthread_setschedparam + 68
5 UIKit 0x00100ea2 InitTextChecker + 22
6 libSystem.B.dylib 0x0007a27e _pthread_start + 242
7 libSystem.B.dylib 0x0006f2a8 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x32ca2efa r1: 0x32ca3270 r2: 0x656a626f r3: 0x339737c9
r4: 0x656a626f r5: 0x3e8055e4 r6: 0x00000005 r7: 0x2fffd824
r8: 0x06417f18 r9: 0x2fffd7c0 r10: 0x06417f10 r11: 0x2fffd870
ip: 0x3e7f23e4 sp: 0x2fffd80c lr: 0x3440f2b5 pc: 0x339737d8
cpsr: 0x20010030
Thanks in Advance ....
arrayWithObjects: takes a nil terminated list of object ids. You might have forget the nil
myArray = [NSArray arrayWithObjects:aDate, aValue, aString, nil];
Check reference
Without any details (like a completely symbolicated crash log and the corresponding code) this is like looking into a crystal ball: we have to guess.
From the crash log I'd say you create an array (via [NSArray arrayWithObjects:]) and feed it something that is not an Objective-C object. Maybe you forgot to add nil as the last object in the list? It's necessary so Objective-C knows where your list of objects ends.
You are getting EXC_BAD_ACCESS that means you are trying to reach a released object. Best practice is to put some break points and go step by step. I also recommend you to turn the zombies on. Product->Edit Scheme->Diagnostics and check Enable Zombie Objects.
after you do this when you crash you can see the point you crash and which method is trying to reach the released object.
The crash log gives you some information, which is not much, but better than nothing if you are not able to reproduce the crash yourself.
As you can see from these lines:
4 CoreFoundation 0x00027ef4 +[NSArray arrayWithObjects:] + 356
5 - 0x00033fcc 0x1000 + 208844
6 - 0x00033f46 0x1000 + 208710
7 UIKit 0x0022fb26 -[UISearchDisplayController searchBar:textDidChange:] + 78
the crash happens after a change in your searchBar, which triggers the corresponding action in your code. The action then tries to create an array and it crashes.
So, I would start checking the action that you associated to the search bar and see what happens there. You could also post it here, so that we can have a look.

App Store crash report

My app got rejected from store and saying it's crashing. But we cannot reproduce the crash, not with simulator nor the devices. And looking at the crash report doesn't mean much. Any help or tips would be greatly appreciated. Here's the first crash report:
Date/Time: 2011-04-28 19:14:10.181 -0700
OS Version: iPhone OS 4.3.2 (8H7)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x624f7473
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x33b2b72a prepareForMethodLookup + 10
1 libobjc.A.dylib 0x33b27876 lookUpMethod + 34
2 libobjc.A.dylib 0x33b24ffa _class_lookupMethodAndLoadCache + 6
3 libobjc.A.dylib 0x33b24ce4 objc_msgSend_uncached + 20
4 UIKit 0x358b5ec2 -[UIApplication sendAction:to:from:forEvent:] + 78
5 UIKit 0x358b5e62 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
6 UIKit 0x358b5e34 -[UIControl sendAction:to:forEvent:] + 32
7 UIKit 0x358b5b86 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 350
8 UIKit 0x358b641c -[UIControl touchesEnded:withEvent:] + 336
9 UIKit 0x3589b52e _UIGestureRecognizerSortAndSendDelayedTouches + 2194
10 UIKit 0x3589abfa _UIGestureRecognizerUpdateObserver + 690
11 CoreFoundation 0x3039ca2e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 10
12 CoreFoundation 0x3039e45e __CFRunLoopDoObservers + 406
13 CoreFoundation 0x3039f754 __CFRunLoopRun + 848
14 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
15 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
16 GraphicsServices 0x35571418 GSEventRunModal + 108
17 GraphicsServices 0x355714c4 GSEventRun + 56
18 UIKit 0x358c7d62 -[UIApplication _run] + 398
19 UIKit 0x358c5800 UIApplicationMain + 664
20 MyApp 0x0000206e main (main.m:14)
21 MyApp 0x00002038 0x1000 + 4152
Thread 1:
0 libsystem_kernel.dylib 0x361003ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x33e0a6d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager
Thread 2:
0 libsystem_kernel.dylib 0x36100fbc kevent + 24
1 libdispatch.dylib 0x33d0b032 _dispatch_mgr_invoke + 706
2 libdispatch.dylib 0x33d0c03a _dispatch_queue_invoke + 86
3 libdispatch.dylib 0x33d0b5ea _dispatch_worker_thread2 + 186
4 libsystem_c.dylib 0x33e0a58a _pthread_wqthread + 258
5 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 3:
0 libsystem_kernel.dylib 0x361003ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x33e0a6d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x360fdc00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x360fd758 mach_msg + 44
2 CoreFoundation 0x3039d2b8 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x3039f562 __CFRunLoopRun + 350
4 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
6 WebCore 0x34c2627e RunWebThread(void*) + 382
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 5 name: com.apple.coremedia.player.async
Thread 5:
0 libsystem_kernel.dylib 0x360ffd18 __semwait_signal + 24
1 libsystem_c.dylib 0x33e30860 _pthread_cond_wait + 756
2 libsystem_c.dylib 0x33dd7eb2 pthread_cond_wait + 26
3 CoreMedia 0x3661d8f4 WaitOnCondition + 4
4 CoreMedia 0x3661d83a FigSemaphoreWaitRelative + 66
5 MediaToolbox 0x324a9a64 fpa_AsyncMovieControlThread + 48
6 CoreMedia 0x3663b4dc figThreadMain + 156
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x3662562e r1: 0x3665003c r2: 0x00000001 r3: 0x624f7473
r4: 0x001aa690 r5: 0x3662562e r6: 0x00000001 r7: 0x2fdfe57c
r8: 0x3662562e r9: 0x3edb2a18 r10: 0x001c36c0 r11: 0x001c36c0
ip: 0x345b6ff5 sp: 0x2fdfe570 lr: 0x345b987d pc: 0x345bd72a
cpsr: 0x600f0030
And the 2nd one:
Date/Time: 2011-04-28 19:14:03.591 -0700
OS Version: iPhone OS 4.3.2 (8H7)
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 0x360ffa1c __pthread_kill + 8
1 libsystem_c.dylib 0x33e093b4 pthread_kill + 52
2 libsystem_c.dylib 0x33e01bf8 abort + 72
3 libstdc++.6.dylib 0x363fca64 __gnu_cxx::__verbose_terminate_handler() + 376
4 libobjc.A.dylib 0x33b2806c _objc_terminate + 104
5 libstdc++.6.dylib 0x363fae36 __cxxabiv1::__terminate(void (*)()) + 46
6 libstdc++.6.dylib 0x363fae8a std::terminate() + 10
7 libstdc++.6.dylib 0x363faf5a __cxa_throw + 78
8 libobjc.A.dylib 0x33b26c84 objc_exception_throw + 64
9 CoreFoundation 0x303c91b8 -[NSObject(NSObject) doesNotRecognizeSelector:] + 96
10 CoreFoundation 0x303c8642 ___forwarding___ + 502
11 CoreFoundation 0x3033f178 _CF_forwarding_prep_0 + 40
12 CoreFoundation 0x3033556a -[NSObject(NSObject) performSelector:withObject:withObject:] + 18
13 UIKit 0x358b5ec2 -[UIApplication sendAction:to:from:forEvent:] + 78
14 UIKit 0x358b5e62 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
15 UIKit 0x358b5e34 -[UIControl sendAction:to:forEvent:] + 32
16 UIKit 0x358b5b86 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 350
17 UIKit 0x358b5834 -[UIControl touchesBegan:withEvent:] + 180
18 UIKit 0x358b4baa -[UIWindow _sendTouchesForEvent:] + 294
19 UIKit 0x358b4568 -[UIWindow sendEvent:] + 256
20 UIKit 0x3589d30c -[UIApplication sendEvent:] + 292
21 UIKit 0x3589cc4c _UIApplicationHandleEvent + 5084
22 GraphicsServices 0x35571e70 PurpleEventCallback + 660
23 CoreFoundation 0x3039ca90 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 20
24 CoreFoundation 0x3039e838 __CFRunLoopDoSource1 + 160
25 CoreFoundation 0x3039f606 __CFRunLoopRun + 514
26 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
27 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
28 GraphicsServices 0x35571418 GSEventRunModal + 108
29 GraphicsServices 0x355714c4 GSEventRun + 56
30 UIKit 0x358c7d62 -[UIApplication _run] + 398
31 UIKit 0x358c5800 UIApplicationMain + 664
32 MyApp 0x0000206e main (main.m:14)
33 MyApp 0x00002038 0x1000 + 4152
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x36100fbc kevent + 24
1 libdispatch.dylib 0x33d0b032 _dispatch_mgr_invoke + 706
2 libdispatch.dylib 0x33d0c03a _dispatch_queue_invoke + 86
3 libdispatch.dylib 0x33d0b5ea _dispatch_worker_thread2 + 186
4 libsystem_c.dylib 0x33e0a58a _pthread_wqthread + 258
5 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 2:
0 libsystem_kernel.dylib 0x361003ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x33e0a6d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 3 name: WebThread
Thread 3:
0 libsystem_kernel.dylib 0x360fdc00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x360fd758 mach_msg + 44
2 CoreFoundation 0x3039d2b8 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x3039f562 __CFRunLoopRun + 350
4 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
6 WebCore 0x34c2627e RunWebThread(void*) + 382
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 4 name: com.apple.coremedia.player.async
Thread 4:
0 libsystem_kernel.dylib 0x360ffd18 __semwait_signal + 24
1 libsystem_c.dylib 0x33e30860 _pthread_cond_wait + 756
2 libsystem_c.dylib 0x33dd7eb2 pthread_cond_wait + 26
3 CoreMedia 0x3661d8f4 WaitOnCondition + 4
4 CoreMedia 0x3661d83a FigSemaphoreWaitRelative + 66
5 MediaToolbox 0x324a9a64 fpa_AsyncMovieControlThread + 48
6 CoreMedia 0x3663b4dc figThreadMain + 156
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 5:
0 libsystem_kernel.dylib 0x361003ec __workq_kernreturn + 8
1 libsystem_c.dylib 0x33e0a6d8 _pthread_wqthread + 592
2 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 0 crashed with ARM Thread State:
r0: 0x00000000 r1: 0x00000000 r2: 0x00000001 r3: 0x00000000
r4: 0x3ee4648c r5: 0x00000006 r6: 0x001f1dac r7: 0x2fdfe0d4
r8: 0x0001d6cc r9: 0x00000065 r10: 0x001befb0 r11: 0x00000000
ip: 0x00000148 sp: 0x2fdfe0c8 lr: 0x3489b3bb pc: 0x36b91a1c
cpsr: 0x000f0010
The last one:
Date/Time: 2011-04-28 19:13:44.770 -0700
OS Version: iPhone OS 4.3.2 (8H7)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x624f7473
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libobjc.A.dylib 0x33b2b72a prepareForMethodLookup + 10
1 libobjc.A.dylib 0x33b27876 lookUpMethod + 34
2 libobjc.A.dylib 0x33b24ffa _class_lookupMethodAndLoadCache + 6
3 libobjc.A.dylib 0x33b24ce4 objc_msgSend_uncached + 20
4 UIKit 0x358b5ec2 -[UIApplication sendAction:to:from:forEvent:] + 78
5 UIKit 0x358b5e62 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26
6 UIKit 0x358b5e34 -[UIControl sendAction:to:forEvent:] + 32
7 UIKit 0x358b5b86 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 350
8 UIKit 0x358b641c -[UIControl touchesEnded:withEvent:] + 336
9 UIKit 0x3589b52e _UIGestureRecognizerSortAndSendDelayedTouches + 2194
10 UIKit 0x3589abfa _UIGestureRecognizerUpdateObserver + 690
11 CoreFoundation 0x3039ca2e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 10
12 CoreFoundation 0x3039e45e __CFRunLoopDoObservers + 406
13 CoreFoundation 0x3039f754 __CFRunLoopRun + 848
14 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
15 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
16 GraphicsServices 0x35571418 GSEventRunModal + 108
17 GraphicsServices 0x355714c4 GSEventRun + 56
18 UIKit 0x358c7d62 -[UIApplication _run] + 398
19 UIKit 0x358c5800 UIApplicationMain + 664
20 MyApp 0x0000206e main (main.m:14)
21 MyApp 0x00002038 0x1000 + 4152
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x36100fbc kevent + 24
1 libdispatch.dylib 0x33d0b032 _dispatch_mgr_invoke + 706
2 libdispatch.dylib 0x33d0c03a _dispatch_queue_invoke + 86
3 libdispatch.dylib 0x33d0b5ea _dispatch_worker_thread2 + 186
4 libsystem_c.dylib 0x33e0a58a _pthread_wqthread + 258
5 libsystem_c.dylib 0x33e0abbc start_wqthread + 0
Thread 2 name: WebThread
Thread 2:
0 libsystem_kernel.dylib 0x360fdc00 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x360fd758 mach_msg + 44
2 CoreFoundation 0x3039d2b8 __CFRunLoopServiceMachPort + 88
3 CoreFoundation 0x3039f562 __CFRunLoopRun + 350
4 CoreFoundation 0x3032febc CFRunLoopRunSpecific + 224
5 CoreFoundation 0x3032fdc4 CFRunLoopRunInMode + 52
6 WebCore 0x34c2627e RunWebThread(void*) + 382
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 3 name: com.apple.coremedia.player.async
Thread 3:
0 libsystem_kernel.dylib 0x360ffd18 __semwait_signal + 24
1 libsystem_c.dylib 0x33e30860 _pthread_cond_wait + 756
2 libsystem_c.dylib 0x33dd7eb2 pthread_cond_wait + 26
3 CoreMedia 0x3661d8f4 WaitOnCondition + 4
4 CoreMedia 0x3661d83a FigSemaphoreWaitRelative + 66
5 MediaToolbox 0x324a9a64 fpa_AsyncMovieControlThread + 48
6 CoreMedia 0x3663b4dc figThreadMain + 156
7 libsystem_c.dylib 0x33e0930a _pthread_start + 242
8 libsystem_c.dylib 0x33e0abb4 thread_start + 0
Thread 0 crashed with ARM Thread State:
r0: 0x3662562e r1: 0x3665003c r2: 0x00000001 r3: 0x624f7473
r4: 0x00180af0 r5: 0x3662562e r6: 0x00000001 r7: 0x2fdfe57c
r8: 0x3662562e r9: 0x3edb2a18 r10: 0x0019b7c0 r11: 0x0019b7c0
ip: 0x345b6ff5 sp: 0x2fdfe570 lr: 0x345b987d pc: 0x345bd72a
cpsr: 0x600f0030
Does your app compile without any warnings?
If not, I'd suggest you tackle those first.

Resources