Would really appreciate if someone could point me in right direction. My app was rejected by apple app review board stating that the application crashed at launch. Unfortunately I am unable to reproduce the crash. The relevant sections of the symbolicated crash log are listed below. Would really appreciate some guidance on resolving this
Hardware Model: xxx
Process: Havana [11291]
Path: /private/var/containers/Bundle/Application/7168627A-AC55-4E81-9FE0-05228C71B31E/Havana.app/Havana
Identifier: au.com.nextx.havana
Version: 6 (1.0)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: au.com.nextx.havana [3636]
Date/Time: 2018-09-10 18:04:16.6495 -0700
Launch Time: 2018-09-10 18:04:15.6077 -0700
OS Version: iPhone OS 11.4.1 (15G77)
Baseband Version: 6.80.00
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000101310d3c
Termination Signal: Trace/BPT trap: 5
Termination Reason: Namespace SIGNAL, Code 0x5
Terminating Process: exc handler [0]
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libswiftCore.dylib 0x0000000101310d3c 0x101160000 + 1772860
1 libswiftCore.dylib 0x0000000101310d3c 0x101160000 + 1772860
2 libswiftCore.dylib 0x00000001011a8094 0x101160000 + 295060
3 Havana 0x0000000100dea374 #objc AppDelegate.applicationWillResignActive(_:) + 172916 (AppDelegate.swift:0)
4 UIKit 0x000000018f06ddbc -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 408
5 UIKit 0x000000018f06d1c4 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3484
6 UIKit 0x000000018f03a5e0 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1680
7 UIKit 0x000000018f66ab1c __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 784
8 UIKit 0x000000018f039dd0 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 160
9 UIKit 0x000000018f039c6c -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 240
10 UIKit 0x000000018f038afc -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 724
11 UIKit 0x000000018fcce84c __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 296
12 UIKit 0x000000018f0381ec -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 432
13 UIKit 0x000000018fab3ac8 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 220
14 UIKit 0x000000018fc01bf8 _performActionsWithDelayForTransitionContext + 112
15 UIKit 0x000000018f037c0c -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 248
16 UIKit 0x000000018f0375a8 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 368
17 UIKit 0x000000018f0345e0 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 540
18 UIKit 0x000000018f034330 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 364
19 FrontBoardServices 0x0000000187c60470 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 364
20 FrontBoardServices 0x0000000187c68d6c __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 224
21 libdispatch.dylib 0x0000000184d50a60 _dispatch_client_callout + 16
22 libdispatch.dylib 0x0000000184d58170 _dispatch_block_invoke_direct$VARIANT$mp + 224
23 FrontBoardServices 0x0000000187c94878 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36
24 FrontBoardServices 0x0000000187c9451c -[FBSSerialQueue _performNext] + 404
25 FrontBoardServices 0x0000000187c94ab8 -[FBSSerialQueue _performNextFromRunLoopSource] + 56
26 CoreFoundation 0x0000000185407404 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
27 CoreFoundation 0x0000000185406c2c __CFRunLoopDoSources0 + 276
28 CoreFoundation 0x000000018540479c __CFRunLoopRun + 1204
29 CoreFoundation 0x0000000185324da8 CFRunLoopRunSpecific + 552
30 GraphicsServices 0x000000018730a020 GSEventRunModal + 100
31 UIKit 0x000000018f344758 UIApplicationMain + 236
32 Havana 0x0000000100dc7e88 main + 32392 (ThresholdPanGesture.swift:13)
33 libdyld.dylib 0x0000000184db5fc0 start + 4
Thread 1:
0 libsystem_kernel.dylib 0x0000000184ee5d78 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x0000000185083eb4 _pthread_wqthread + 928
2 libsystem_pthread.dylib 0x0000000185083b08 start_wqthread + 4
Thread 2:
0 libsystem_pthread.dylib 0x0000000185083b04 start_wqthread + 0
Thread 3:
0 libsystem_pthread.dylib 0x0000000185083b04 start_wqthread + 0
Thread 4 name: com.apple.uikit.eventfetch-thread
Thread 4:
0 libsystem_kernel.dylib 0x0000000184ec3de8 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x0000000184ec3c60 mach_msg + 72
2 CoreFoundation 0x0000000185406e40 __CFRunLoopServiceMachPort + 196
3 CoreFoundation 0x0000000185404908 __CFRunLoopRun + 1568
4 CoreFoundation 0x0000000185324da8 CFRunLoopRunSpecific + 552
5 Foundation 0x0000000185d99674 -[NSRunLoop+ 34420 (NSRunLoop) runMode:beforeDate:] + 304
6 Foundation 0x0000000185d994dc -[NSRunLoop+ 34012 (NSRunLoop) runUntilDate:] + 84
7 UIKit 0x000000018f029768 -[UIEventFetcher threadMain] + 136
8 Foundation 0x0000000185ea9efc __NSThread__start__ + 1040
9 libsystem_pthread.dylib 0x0000000185085220 _pthread_body + 272
10 libsystem_pthread.dylib 0x0000000185085110 _pthread_body + 0
11 libsystem_pthread.dylib 0x0000000185083b10 thread_start + 4
Thread 5:
0 libsystem_pthread.dylib 0x0000000185083b04 start_wqthread + 0
Related
Lately installed Xcode 7 beta 4.
My app will not run on an iOS 9.0 device, although it will run on an iOS 9.0 simulator, and an iOS 8.4 device (using Xcode 7b4).
Xcode shows "Running %app_name on %device_name", the icon shows up on the device, but does not run, and that's how it stays.
Debug console shows nothing (checked the preferences, also, when using an iOS 8.4 device it shows output log as expected).
Another app that I created runs fine, it's just this app, on iOS9 device (Sim works smoothly).
No exception is thrown, no compilation error... nothing to go on.
Trying to start the app from the phone itself results in a request to send notifications (ok behaviour) and crashes...
Any ideas ?
EDIT:
In the device console output, I these two messages (not always):
Aug 4 11:39:53 iOS-9-test-device syslog_relay(liblockdown.dylib)[117]
: The connection is now invalid. Aug 4 11:39:53
iOS-9-test-device lockbot[79] : got an unknown event
And this is a crash report from the device itself :
Incident Identifier: C6A70E35-2ACD-4A17-959C-547DE3CC39F0 CrashReporter Key: 5c34ba5da623fd5860d5d4059ad9f46615e4e3f9 Hardware Model: iPhone5,1 Process: MyAppName [6737] Path: /var/mobile/Containers/Bundle/Application/099D6717-A7A5-45A5-96DE-92810AE0476A/MyAppName.app/MyAppName Identifier: com.MyOrgName.MyAppName Version: 7 (2.2.10) Code Type: ARM (Native) Parent Process: launchd [1]
Date/Time: 2015-08-04 11:47:38.38 +0300 Launch Time: 2015-08-04 11:47:23.23 +0300 OS Version: iOS 9.0 (13A4254v) Report Version: 105
Exception Type: 00000020 Exception Codes: 0x000000008badf00d Exception Note: SIMULATED (this is NOT a crash) Highlighted by Thread: 0
Application Specific Information: com.MyOrgName.MyAppName failed to scene-create after 14.65s (launch took 0.35s of total time limit
15.00s)
Elapsed total CPU time (seconds): 3.220 (user 3.220, system 0.000), 11% CPU Elapsed application CPU time (seconds): 0.779, 3% CPU
Filtered syslog: None found
Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0: 0 libsystem_kernel.dylib 0x35a09b08 __psynch_mutexwait + 24 1 libsystem_pthread.dylib 0x35a9cad0 _pthread_mutex_lock + 412 2 libc++.1.dylib 0x349bfa60 std::__1::mutex::lock() + 4 3 VectorKit 0x323165be
-[VKTileSetBackedTileSource setStyleManager:] + 222 4 VectorKit 0x320db374 -[VKMapModel createSourceForLayer:tileSet:mode:] + 1260 5 VectorKit 0x320dab7c -[VKMapModel sourceForLayer:mode:] + 228 6 VectorKit 0x320da52a -[VKMapModel configureTileSources] + 402 7 VectorKit 0x32166234 -[VKMapModel forceMapType:animated:] + 5068 8 VectorKit 0x3216a64a -[VKMapModel initShouldRasterize:mapPurpose:tileGroupIdentifier:locale:contentScale:]
+ 3378 9 VectorKit 0x32157a74 -[VKMapCanvas initShouldRasterize:contentScale:target:device:inBackground:locale:] + 680 10 VectorKit 0x320cd1de -[VKMapView initWithGlobe:shouldRasterize:inBackground:] + 846 11 MapKit 0x24e5299a -[MKBasicMapView initWithFrame:andGlobe:shouldRasterize:]
+ 346 12 MapKit 0x24e821a0 -[MKMapView _commonInitFromIB:gestureRecognizerHostView:showsAttribution:] + 976 13 MapKit 0x24e82d28 -[MKMapView initWithCoder:] + 124 14 UIKit 0x27cecd14 UINibDecoderDecodeObjectForValue + 776 15 UIKit 0x27cec9fc -[UINibDecoder decodeObjectForKey:] + 292 16 UIKit 0x27bf794a -[UIRuntimeConnection initWithCoder:] + 110 17 UIKit 0x27cecd14 UINibDecoderDecodeObjectForValue + 776 18 UIKit 0x27cecca6 UINibDecoderDecodeObjectForValue + 666 19 UIKit 0x27cec9fc -[UINibDecoder decodeObjectForKey:] + 292 20 UIKit 0x27bf6ede -[UINib instantiateWithOwner:options:] + 1106 21 UIKit 0x27ad2396 -[UIViewController _loadViewFromNibNamed:bundle:] + 318 22 UIKit 0x278bd842 -[UIViewController loadView]
+ 138 23 UIKit 0x27785fb0 -[UIViewController loadViewIfRequired] + 132 24 UIKit 0x27842a92 -[UINavigationController _layoutViewController:] + 34 25 UIKit 0x27842992 -[UINavigationController
_updateScrollViewFromViewController:toViewController:] + 282 26 UIKit 0x27841d9c -[UINavigationController
_startTransition:fromViewController:toViewController:] + 80 27 UIKit 0x278419f2 -[UINavigationController
_startDeferredTransitionIfNeeded:] + 842 28 UIKit 0x2784163c -[UINavigationController __viewWillLayoutSubviews] + 48 29 UIKit 0x278415b2 -[UILayoutContainerView layoutSubviews] + 210 30 UIKit 0x2778246c
-[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 640 31 QuartzCore 0x27099f64 -[CALayer layoutSublayers] + 124 32 QuartzCore 0x27095714 CA::Layer::layout_if_needed(CA::Transaction*) + 348 33 QuartzCore 0x270955a4 CA::Layer::layout_and_display_if_needed(CA::Transaction*)
+ 12 34 QuartzCore 0x27094b0c CA::Context::commit_transaction(CA::Transaction*) + 364 35 QuartzCore 0x270947ce CA::Transaction::commit() + 586 36 QuartzCore 0x2708e17a CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 134 37 CoreFoundation 0x23638a3a
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18 38 CoreFoundation 0x23636d02 __CFRunLoopDoObservers + 278 39 CoreFoundation 0x23587abc CFRunLoopRunSpecific + 544 40 CoreFoundation 0x23587890 CFRunLoopRunInMode + 104 41 UIKit 0x277f2a82 -[UIApplication
_run] + 522 42 UIKit 0x277ed314 UIApplicationMain + 140 43 MyAppName 0x000bb176 main (main.m:16) 44 libdyld.dylib 0x3593a9cc start + 0
Thread 1: 0 libsystem_kernel.dylib 0x35a0a92c
__workq_kernreturn + 8 1 libsystem_pthread.dylib 0x35a9c8c0 _pthread_wqthread + 1032 2 libsystem_pthread.dylib 0x35a9c4a4 start_wqthread + 4
Thread 2 name: Dispatch queue: com.apple.libdispatch-manager Thread 2: 0 libsystem_kernel.dylib 0x35a0b3c0 kevent_qos + 24 1 libdispatch.dylib 0x3591ecfa _dispatch_mgr_invoke + 250 2 libdispatch.dylib 0x3591170a _dispatch_mgr_thread + 34
Thread 3: 0 libsystem_kernel.dylib 0x35a0a92c
__workq_kernreturn + 8 1 libsystem_pthread.dylib 0x35a9c8c0 _pthread_wqthread + 1032 2 libsystem_pthread.dylib 0x35a9c4a4 start_wqthread + 4
Thread 4: 0 libsystem_kernel.dylib 0x35a0a92c
__workq_kernreturn + 8 1 libsystem_pthread.dylib 0x35a9c8c0 _pthread_wqthread + 1032 2 libsystem_pthread.dylib 0x35a9c4a4 start_wqthread + 4
Thread 5 name: com.apple.NSURLConnectionLoader Thread 5: 0 libsystem_kernel.dylib 0x359f60b0 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x359f5eac mach_msg + 36 2 CoreFoundation 0x23638e34 __CFRunLoopServiceMachPort + 132 3 CoreFoundation 0x2363718e __CFRunLoopRun + 1046 4 CoreFoundation 0x23587a9c CFRunLoopRunSpecific + 512 5 CoreFoundation 0x23587890 CFRunLoopRunInMode + 104 6 CFNetwork 0x22f166ea +[NSURLConnection(Loader) _resourceLoadLoop:] + 482 7 Foundation 0x2447eb0e __NSThread__start__ + 1098 8 libsystem_pthread.dylib 0x35a9ea84 _pthread_body + 136 9 libsystem_pthread.dylib 0x35a9e9f6 _pthread_start + 106 10 libsystem_pthread.dylib 0x35a9c4b0 thread_start + 4
Thread 6 name: GAIThread Thread 6: 0 libsystem_kernel.dylib 0x359f60b0 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x359f5eac mach_msg + 36 2 CoreFoundation 0x23638e34 __CFRunLoopServiceMachPort + 132 3 CoreFoundation 0x2363718e __CFRunLoopRun + 1046 4 CoreFoundation 0x23587a9c CFRunLoopRunSpecific + 512 5 CoreFoundation 0x23587890 CFRunLoopRunInMode + 104 6 Foundation 0x243afb44 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 264 7 Foundation 0x243fe8c0 -[NSRunLoop(NSRunLoop) run]
+ 76 8 MyAppName 0x0015ccac +[GAI threadMain:] + 60 9 Foundation 0x2447eb0e __NSThread__start__ + 1098 10 libsystem_pthread.dylib 0x35a9ea84 _pthread_body + 136 11 libsystem_pthread.dylib 0x35a9e9f6 _pthread_start + 106 12 libsystem_pthread.dylib 0x35a9c4b0 thread_start + 4
Thread 7 name: NetworkLoad Thread 7: 0 libsystem_kernel.dylib 0x359f60b0 mach_msg_trap + 20 1 libsystem_kernel.dylib 0x359f5eac mach_msg + 36 2 CoreFoundation 0x23638e34 __CFRunLoopServiceMachPort + 132 3 CoreFoundation 0x2363718e __CFRunLoopRun + 1046 4 CoreFoundation 0x23587a9c CFRunLoopRunSpecific + 512 5 CoreFoundation 0x23587890 CFRunLoopRunInMode + 104 6 GeoServices 0x2c90c76a _runNetworkThread + 462 7 libsystem_pthread.dylib 0x35a9ea84 _pthread_body + 136 8 libsystem_pthread.dylib 0x35a9e9f6 _pthread_start + 106 9 libsystem_pthread.dylib 0x35a9c4b0 thread_start + 4
Thread 8 name: com.apple.CFSocket.private Thread 8: 0 libsystem_kernel.dylib 0x35a09fec __select + 20 1 CoreFoundation 0x2363dd44 __CFSocketManager + 568 2 libsystem_pthread.dylib 0x35a9ea84 _pthread_body + 136 3 libsystem_pthread.dylib 0x35a9e9f6 _pthread_start + 106 4 libsystem_pthread.dylib 0x35a9c4b0 thread_start + 4
No thread state (register information) available
Upgrading to the latest Xcode 7 beta 5 and iOS 9 beta 5 just resolved the issue. Thanks for the help guys.
How to resolve "SpringBoard quit unexpected" issues?
I don't use Test Cloud, would anyone be able to explain in detail what is happening?
Process: SpringBoard [7365] Path:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/CoreServices/SpringBoard.app/SpringBoard
Identifier: SpringBoard Version: 1.0 (50) Code Type: X86 (Native)
Parent Process: launchd_sim [7247] Responsible: launchd_sim [7247]
User ID: 501
Date/Time: 2015-07-12 18:27:14.767 +0700 OS Version: Mac OS X 10.10.4
(14E46) Report Version: 11 Anonymous UUID:
4F86C8E2-284F-6FD5-30D3-E2519C6D5409
Time Awake Since Boot: 36000 seconds
Crashed Thread: 8 Dispatch queue:
com.apple.frontboard.applicationLibrary.taskQueue
Exception Type: EXC_CRASH (SIGABRT) Exception Codes:
0x0000000000000000, 0x0000000000000000
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Application is required.'
terminating with uncaught exception of type NSException abort() called
CoreSimulator 110.4 - Device: iPhone 4s - Runtime: iOS 8.1 (12B411) -
DeviceType: iPhone 4s
Application Specific Backtrace 1: 0 CoreFoundation 0x0821c946
exceptionPreprocess + 182 1 libobjc.A.dylib 0x07cffa97
objc_exception_throw + 44 2 CoreFoundation 0x0821c7da +[NSException
raise:format:arguments:] + 138 3 Foundation 0x04059810
-[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 118 4
FrontBoard 0x01d09b66 __47-[FBApplicationLibrary
applicationsDidInstall:]block_invoke_2 + 335 5 FrontBoard 0x01d0998f
__47-[FBApplicationLibrary applicationsDidInstall:]_block_invoke + 1784 6 libdispatch.dylib 0x087f303f _dispatch_client_callout + 14 7
libdispatch.dylib 0x087dadb8 _dispatch_barrier_sync_f_invoke + 79 8
libdispatch.dylib 0x087da8ea dispatch_barrier_sync_f + 105 9
libdispatch.dylib 0x087dae40 dispatch_barrier_sync + 54 10 FrontBoard
0x01d091ca -[FBApplicationLibrary applicationsDidInstall:] + 292 11
MobileCoreServices 0x060e5ce9 -[LSApplicationWorkspaceRemoteObserver
applicationsDidInstall:] + 233 12 CoreFoundation 0x080ff76d __invoking
+ 29 13 CoreFoundation 0x080ff618 -[NSInvocation invoke] + 360 14 Foundation 0x041913fd
NSXPCCONNECTION_IS_CALLING_OUT_TO_EXPORTED_OBJECT + 30 15 Foundation
0x0401f568 -[NSXPCConnection _decodeAndInvokeMessageWithData:] + 1881
16 Foundation 0x0401bbb5 message_handler + 721 17 Foundation
0x0401b8cd __51-[NSXPCConnection
initWithMachServiceName:options:]_block_invoke + 20 18 libxpc.dylib
0x08ac1973 _xpc_connection_call_event_handler + 65 19 libxpc.dylib
0x08ac1779 _xpc_connection_mach_event + 2278 20 libdispatch.dylib
0x087f3121 _dispatch_client_callout4 + 37 21 libdispatch.dylib
0x087e35a9 _dispatch_mach_msg_invoke + 318 22 libdispatch.dylib
0x087dbc1b _dispatch_queue_drain + 527 23 libdispatch.dylib 0x087e3ab7
_dispatch_mach_invoke + 225 24 libdispatch.dylib 0x087dbc1b _dispatch_queue_drain + 527 25 libdispatch.dylib 0x087db8ac _dispatch_queue_invoke + 197 26 libdispatch.dylib 0x087dd9e7 _dispatch_root_queue_drain + 367 27 libdispatch.dylib 0x087de985 _dispatch_worker_thread3 + 108 28 libsystem_pthread.dylib 0x08b491da _pthread_wqthread + 724 29 libsystem_pthread.dylib 0x08b46e2e start_wqthread + 30
Thread 0:: Dispatch queue: com.apple.main-thread 0
libsystem_kernel.dylib 0x08b169ce mach_msg_trap + 10 1
libsystem_kernel.dylib 0x08b15a70 mach_msg + 68 2
com.apple.CoreFoundation 0x08136026 __CFRunLoopServiceMachPort + 214 3
com.apple.CoreFoundation 0x08135408 __CFRunLoopRun + 1400 4
com.apple.CoreFoundation 0x08134bcb CFRunLoopRunSpecific + 443 5
com.apple.CoreFoundation 0x081349fb CFRunLoopRunInMode + 123 6
com.apple.GraphicsServices 0x043ef24f GSEventRunModal + 192 7
com.apple.GraphicsServices 0x043ef08c GSEventRun + 104 8
com.apple.UIKit 0x0096d8b6 UIApplicationMain + 1526 9
com.apple.springboard 0x0007e4b0 0x76000 + 33968 10 libdyld.dylib
0x08819ac9 start + 1
Thread 1:: Dispatch queue: com.apple.libdispatch-manager 0
libsystem_kernel.dylib 0x08b1d8ce kevent64 + 10 1 libdispatch.dylib
0x087e23be _dispatch_mgr_invoke + 245 2 libdispatch.dylib 0x087e2116
_dispatch_mgr_thread + 60
Thread 2: 0 libsystem_kernel.dylib 0x08b169ce mach_msg_trap + 10 1
libsystem_kernel.dylib 0x08b15a70 mach_msg + 68 2
com.apple.CoreFoundation 0x08136026 CFRunLoopServiceMachPort + 214 3
com.apple.CoreFoundation 0x08135408 __CFRunLoopRun + 1400 4
com.apple.CoreFoundation 0x08134bcb CFRunLoopRunSpecific + 443 5
com.apple.CoreFoundation 0x081349fb CFRunLoopRunInMode + 123 6
com.apple.Foundation 0x03fecd98 -[NSRunLoop(NSRunLoop)
runMode:beforeDate:] + 309 7 com.apple.Foundation 0x0408c67b
-[NSRunLoop(NSRunLoop) run] + 82 8 com.apple.UIKit 0x00ea982b -[UIStatusBarServerThread main] + 796 9 com.apple.Foundation 0x03feae60 __NSThread__main + 1326 10 libsystem_pthread.dylib
0x08b48e13 _pthread_body + 138 11 libsystem_pthread.dylib 0x08b48d89
_pthread_start + 162 12 libsystem_pthread.dylib 0x08b46e52 thread_start + 34
Thread 3: 0 libsystem_kernel.dylib 0x08b169ce mach_msg_trap + 10 1
libsystem_kernel.dylib 0x08b15a70 mach_msg + 68 2
com.apple.CoreFoundation 0x08136026 __CFRunLoopServiceMachPort + 214 3
com.apple.CoreFoundation 0x08135408 __CFRunLoopRun + 1400 4
com.apple.CoreFoundation 0x08134bcb CFRunLoopRunSpecific + 443 5
com.apple.CoreFoundation 0x081349fb CFRunLoopRunInMode + 123 6
com.apple.springboard 0x000f5592 0x76000 + 521618 7
libsystem_pthread.dylib 0x08b48e13 _pthread_body + 138 8
libsystem_pthread.dylib 0x08b48d89 _pthread_start + 162 9
libsystem_pthread.dylib 0x08b46e52 thread_start + 34xamarin.
I'm finding it impossible to solve.
One of my customers reports consistent crashing, about 75% of the times he performs a particular operation in the app. That operation involves some image processing. He's using an iPhone 4S (the same model I used when developing the app) and iOS 7.1.1. No other customer has reported this issue. He has deleted the app and reinstalled from the App Store. He's using the app's default settings. I cannot recreate the issue.
Thread 8 crashes, but does not show any lines in my code ("gCard"). The issue appears to be "doesNotRecognizeSelector:" in a thread that does not show any lines in my code. I don't understand this. (The app uses brad Larson's GPUImage but I don't know if that's a factor.)
I need help to understand the dump and suggestions on my next step.
{"name":"gCard","bug_type":"109","os_version":"iPhone OS 7.1.1 (11D201)","bundleID":"com.PFM3.Ghost-Card","version":"1.2.1 (1.2.1)","app_name":"gCard"}
Incident Identifier: E85F86F8-0F39-4E55-9EAD-48461F1EF955
CrashReporter Key: 64c031d9f1572910e1137bebea2b9be924396928
Hardware Model: iPhone4,1
Process: gCard [136]
Path: /var/mobile/Applications/4E5D5D22-0202-47DE-B8B2-B9C9D90825B2/gCard.app/gCard
Identifier: com.PFM3.Ghost-Card
Version: 1.2.1 (1.2.1)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2014-06-23 00:03:18.728 -0700
OS Version: iOS 7.1.1 (11D201)
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x000000000000defe
Triggered by Thread: 8
Last Exception Backtrace:
0 CoreFoundation 0x2ec27fce __exceptionPreprocess + 126
1 libobjc.A.dylib 0x394a0cca objc_exception_throw + 34
2 CoreFoundation 0x2ec2b962 -[NSObject(NSObject) doesNotRecognizeSelector:] + 198
3 CoreFoundation 0x2ec2a24e ___forwarding___ + 702
4 CoreFoundation 0x2eb797b4 _CF_forwarding_prep_0 + 20
5 UIFoundation 0x36865a20 __NSStringDrawingEngine + 12200
6 UIFoundation 0x368629a2 -[NSString(NSExtendedStringDrawing) drawWithRect:options:attributes:context:] + 146
7 UIKit 0x3145cd1c -[UILabel _drawTextInRect:baselineCalculationOnly:] + 4220
8 UIKit 0x314c3004 -[UILabel drawTextInRect:] + 496
9 UIKit 0x314c2e06 -[UILabel drawRect:] + 74
10 UIKit 0x314c2da0 -[UIView(CALayerDelegate) drawLayer:inContext:] + 368
11 QuartzCore 0x310f02bc -[CALayer drawInContext:] + 96
12 QuartzCore 0x310d9e3a CABackingStoreUpdate_ + 1850
13 QuartzCore 0x311b4d68 ___ZN2CA5Layer8display_Ev_block_invoke + 48
14 QuartzCore 0x310d96ee x_blame_allocations + 78
15 QuartzCore 0x310d9396 CA::Layer::display_() + 1102
16 QuartzCore 0x310bd038 CA::Layer::display_if_needed(CA::Transaction*) + 204
17 QuartzCore 0x310bccd0 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 20
18 QuartzCore 0x310bc6da CA::Context::commit_transaction(CA::Transaction*) + 226
19 QuartzCore 0x310bc4ea CA::Transaction::commit() + 310
20 QuartzCore 0x310e9a7e CA::Transaction::release_thread(void*) + 158
21 libsystem_pthread.dylib 0x39acb688 _pthread_tsd_cleanup + 160
22 libsystem_pthread.dylib 0x39acb406 _pthread_exit + 82
23 libsystem_pthread.dylib 0x39acabe2 _pthread_wqthread + 314
24 libsystem_pthread.dylib 0x39acaa94 start_wqthread + 4
Thread 0:
0 libsystem_kernel.dylib 0x39a50a58 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39a50854 mach_msg + 44
2 CoreFoundation 0x2ebf2896 __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x2ebf1002 __CFRunLoopRun + 850
4 CoreFoundation 0x2eb5bf0a CFRunLoopRunSpecific + 518
5 CoreFoundation 0x2eb5bcee CFRunLoopRunInMode + 102
6 GraphicsServices 0x33ab465e GSEventRunModal + 134
7 UIKit 0x314a7168 UIApplicationMain + 1132
8 gCard 0x00089e12 main (main.m:16)
9 libdyld.dylib 0x399adab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x39a50808 kevent64 + 24
1 libdispatch.dylib 0x39992078 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x39991dfe _dispatch_mgr_thread$VARIANT$mp + 34
Thread 2:
0 libsystem_kernel.dylib 0x39a50a58 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39a50854 mach_msg + 44
2 CoreFoundation 0x2ebf2896 __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x2ebf0fbc __CFRunLoopRun + 780
4 CoreFoundation 0x2eb5bf0a CFRunLoopRunSpecific + 518
5 CoreFoundation 0x2eb5bcee CFRunLoopRunInMode + 102
6 Foundation 0x2f54e1e6 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x2f59f09c -[NSRunLoop(NSRunLoop) run] + 76
8 gCard 0x000cd8d4 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:151)
9 Foundation 0x2f610a5a __NSThread__main__ + 1058
10 libsystem_pthread.dylib 0x39acc916 _pthread_body + 138
11 libsystem_pthread.dylib 0x39acc886 _pthread_start + 98
12 libsystem_pthread.dylib 0x39acaaa0 thread_start + 4
Thread 3:
0 libsystem_kernel.dylib 0x39a50a58 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39a50854 mach_msg + 44
2 CoreFoundation 0x2ebf2896 __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x2ebf0fbc __CFRunLoopRun + 780
4 CoreFoundation 0x2eb5bf0a CFRunLoopRunSpecific + 518
5 CoreFoundation 0x2eb9f9fe CFRunLoopRun + 94
6 CoreMotion 0x2f2193a8 ___lldb_unnamed_function1423$$CoreMotion + 724
7 libsystem_pthread.dylib 0x39acc916 _pthread_body + 138
8 libsystem_pthread.dylib 0x39acc886 _pthread_start + 98
9 libsystem_pthread.dylib 0x39acaaa0 thread_start + 4
Thread 4 name: com.apple.NSURLConnectionLoader
Thread 4:
0 libsystem_kernel.dylib 0x39a50a58 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x39a50854 mach_msg + 44
2 CoreFoundation 0x2ebf2896 __CFRunLoopServiceMachPort + 150
3 CoreFoundation 0x2ebf0fbc __CFRunLoopRun + 780
4 CoreFoundation 0x2eb5bf0a CFRunLoopRunSpecific + 518
5 CoreFoundation 0x2eb5bcee CFRunLoopRunInMode + 102
6 Foundation 0x2f59b082 +[NSURLConnection(Loader) _resourceLoadLoop:] + 314
7 Foundation 0x2f610a5a __NSThread__main__ + 1058
8 libsystem_pthread.dylib 0x39acc916 _pthread_body + 138
9 libsystem_pthread.dylib 0x39acc886 _pthread_start + 98
10 libsystem_pthread.dylib 0x39acaaa0 thread_start + 4
Thread 5 name: com.apple.CFSocket.private
Thread 5:
0 libsystem_kernel.dylib 0x39a63434 __select + 20
1 CoreFoundation 0x2ebf6758 __CFSocketManager + 480
2 libsystem_pthread.dylib 0x39acc916 _pthread_body + 138
3 libsystem_pthread.dylib 0x39acc886 _pthread_start + 98
4 libsystem_pthread.dylib 0x39acaaa0 thread_start + 4
Thread 6:
0 libsystem_kernel.dylib 0x39a63c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39acabda _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x39acaa94 start_wqthread + 4
Thread 7:
0 libsystem_kernel.dylib 0x39a63c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x39acabda _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x39acaa94 start_wqthread + 4
Thread 8 Crashed:
0 libsystem_c.dylib 0x39a1404e __abort + 102
1 libsystem_c.dylib 0x39a13fe4 abort + 84
2 libc++abi.dylib 0x38d42cd2 abort_message + 70
3 libc++abi.dylib 0x38d5b6e0 default_terminate_handler() + 248
4 libobjc.A.dylib 0x394a0f62 _objc_terminate() + 190
5 libc++abi.dylib 0x38d591c4 std::__terminate(void (*)()) + 76
6 libc++abi.dylib 0x38d58a18 __cxa_throw + 112
7 libobjc.A.dylib 0x394a0d9e objc_exception_throw + 246
8 CoreFoundation 0x2ec2b962 -[NSObject(NSObject) doesNotRecognizeSelector:] + 198
9 CoreFoundation 0x2ec2a24e ___forwarding___ + 702
10 CoreFoundation 0x2eb797b4 _CF_forwarding_prep_0 + 20
11 UIFoundation 0x36865a20 __NSStringDrawingEngine + 12200
12 UIFoundation 0x368629a2 -[NSString(NSExtendedStringDrawing) drawWithRect:options:attributes:context:] + 146
13 UIKit 0x3145cd1c -[UILabel _drawTextInRect:baselineCalculationOnly:] + 4220
14 UIKit 0x314c3004 -[UILabel drawTextInRect:] + 496
15 UIKit 0x314c2e06 -[UILabel drawRect:] + 74
16 UIKit 0x314c2da0 -[UIView(CALayerDelegate) drawLayer:inContext:] + 368
17 QuartzCore 0x310f02bc -[CALayer drawInContext:] + 96
18 QuartzCore 0x310d9e3c CABackingStoreUpdate_ + 1852
19 QuartzCore 0x311b4d68 ___ZN2CA5Layer8display_Ev_block_invoke + 48
20 QuartzCore 0x310d96f0 x_blame_allocations + 80
21 QuartzCore 0x310d9396 CA::Layer::display_() + 1102
22 QuartzCore 0x310bd038 CA::Layer::display_if_needed(CA::Transaction*) + 204
23 QuartzCore 0x310bccd0 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 20
24 QuartzCore 0x310bc6da CA::Context::commit_transaction(CA::Transaction*) + 226
25 QuartzCore 0x310bc4ea CA::Transaction::commit() + 310
26 QuartzCore 0x310e9a7e CA::Transaction::release_thread(void*) + 158
27 libsystem_pthread.dylib 0x39acb68a _pthread_tsd_cleanup + 162
28 libsystem_pthread.dylib 0x39acb406 _pthread_exit + 82
29 libsystem_pthread.dylib 0x39acabe2 _pthread_wqthread + 314
30 libsystem_pthread.dylib 0x39acaa94 start_wqthread + 4
Thread 8 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00000001
r4: 0x06277c84 r5: 0xffffffff r6: 0x00000000 r7: 0x06277c94
r8: 0x1767ed40 r9: 0x39ac7f69 r10: 0x368b94c8 r11: 0x00000000
ip: 0x00000030 sp: 0x06277c7c lr: 0x39a1404f pc: 0x39a1404e
cpsr: 0x40000030
You should/must do all( or nearly all) ui specific operations on the main thread. Possibly you alter the view hierarchy in a block performed on another block.
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.
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.