SIGSEGV SEGV_ACCERR in ios6 - ios7

I have developed the ios App for a client . The application is crashing in regular interval in ios 6 . The application is GPS based and run background and foreground . Below is the crash report which I received:
libobjc.A.dylib 0x3a7c25b0 objc_msgSend + 16
Foundation 0x33306599 -[NSNotificationCenter
postNotificationName:object:userInfo:] + 73
Foundation 0x3330a05b -[NSNotificationCenter
postNotificationName:object:] + 31
UIKit 0x34a01307 -[UIApplication _performMemoryWarning] +
103
libdispatch.dylib 0x3abde4b7 _dispatch_client_callout + 23
libdispatch.dylib 0x3abe5139 _dispatch_source_invoke$VARIANT$mp + 253
libdispatch.dylib 0x3abe317f _dispatch_main_queue_callback_4CF$VARIANT$mp + 163
CoreFoundation 0x32a72f3b __CFRunLoopRun + 1291
CoreFoundation 0x329e5ebd CFRunLoopRunSpecific + 357
CoreFoundation 0x329e5d49 CFRunLoopRunInMode + 105
GraphicsServices 0x365be2eb GSEventRunModal + 75
UIKit 0x348fb301 UIApplicationMain + 1121
Can anybody let me know what is the above issue is about ?
Surjan

Related

I'm having various crashes in the UIActivityGroupViewController which is part of UIDocumentInteractionController & UIActivityViewController

What are the chances those crashes are totally unrelated to my app, and caused by some other 3rd party app installed on users device?
Application Specific Information:
objc_msgSend() selector name: nsli_layoutEngine
Thread 0 Crashed:
0 libobjc.A.dylib 0x0000000192eefbd0 objc_msgSend + 16
1 Foundation 0x0000000183473370 -[NSLayoutConstraint _layoutEngine] + 48
2 Foundation 0x0000000183473c18 +[NSLayoutConstraint _addOrRemoveConstraints:activate:] + 236
3 UIKit 0x00000001873bf4a0 -[_UIAlertControllerView _updateBackdrop] + 504
4 UIKit 0x00000001873beb40 -[_UIAlertControllerView _updateStyle] + 164
5 UIKit 0x000000018703fc48 -[UIAlertController traitCollectionDidChange:] + 192
6 UIKit 0x0000000186f84118 -[UIViewController _updateTraitsIfNecessary] + 232
7 UIKit 0x0000000186c71564 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 340
8 QuartzCore 0x00000001865c9994 -[CALayer layoutSublayers] + 164
9 QuartzCore 0x00000001865c4564 CA::Layer::layout_if_needed(CA::Transaction*) + 316
10 QuartzCore 0x00000001865c4408 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 28
11 QuartzCore 0x00000001865c3c08 CA::Context::commit_transaction(CA::Transaction*) + 272
12 QuartzCore 0x00000001865c398c CA::Transaction::commit() + 432
13 UIKit 0x0000000186ee4db0 _UIWindowUpdateVisibleContextOrder + 236
14 UIKit 0x0000000186ee4bf8 +[UIWindow _prepareWindowsPassingTestForAppResume:] + 28
15 UIKit 0x0000000186f08710 -[UIApplication _updateSnapshotAndStateRestorationArchiveForBackgroundEvent:saveState:exitIfCouldNotRestoreState:] + 192
16 UIKit 0x0000000186f07924 __80-[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:]_block_invoke_2 + 132
17 libdispatch.dylib 0x00000001935213ac _dispatch_call_block_and_release + 20
18 libdispatch.dylib 0x000000019352136c _dispatch_client_callout + 12
19 libdispatch.dylib 0x0000000193525980 _dispatch_main_queue_callback_4CF + 928
20 CoreFoundation 0x0000000182479fa4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
21 CoreFoundation 0x000000018247804c __CFRunLoopRun + 1488
22 CoreFoundation 0x00000001823a50a4 CFRunLoopRunSpecific + 392
23 GraphicsServices 0x000000018b50b5a4 GSEventRunModal + 164
24 UIKit 0x0000000186cda3c0 UIApplicationMain + 1484
25 Pogoplug 0x00000001000ef9f4 main (main.m:11)
26 libdyld.dylib 0x000000019354aa08 start + 0
And another one:
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0x0
Crashed Thread: 9
Application Specific Information:
Selector name found in current argument registers: URL
Thread 9 Crashed:
0 libobjc.A.dylib 0x38ddcf78 lookUpImpOrForward
+ 48
1 libobjc.A.dylib 0x38ddcf3f _class_lookupMethodAndLoadCache3 + 32
2 libobjc.A.dylib 0x38de31f9 _objc_msgSend_uncached + 22
3 UIKit 0x2e91f539 -[UIActivityItemProvider main] + 22
4 Foundation 0x2ba51505 -[__NSOperationInternal _start:] + 766
5 Foundation 0x2baf6557 __NSOQSchedule_f + 184
6 libdispatch.dylib 0x3934c4d3 _dispatch_queue_drain$VARIANT$mp + 1460
7 libdispatch.dylib 0x3934bda1 _dispatch_queue_invoke$VARIANT$mp + 82
8 libdispatch.dylib 0x3934e491 _dispatch_root_queue_drain + 386
9 libdispatch.dylib 0x3934f8a3 _dispatch_worker_thread3 + 104
10 libsystem_pthread.dylib 0x394c2da9 _pthread_wqthread + 666
11 libsystem_pthread.dylib 0x394c2afc start_wqthread + 6
And here the list of view controllers being presented before those crashes occur:
2015/03/28 01:07:20:382 {DEBUG} : _UIDocumentActivityViewController
2015/03/28 01:07:20:382 {DEBUG} : UIAlertController
2015/03/28 01:07:20:383 {DEBUG} : _UIActivityGroupListViewController
2015/03/28 01:07:20:383 {DEBUG} : SFAirDropActivityViewController
2015/03/28 01:07:20:391 {DEBUG} : UIActivityGroupViewController
2015/03/28 01:07:20:391 {DEBUG} : UIActivityGroupViewController
I had the same crash and found that I was trying to present UIActivityViewController from non-existent item (actually, from rightBarButtonItem that was nil).

iOS App crash issue `[UIWindow warpPoint:]`

I found a weird crash issue in my app, and I can't got enough message from the crash report.
Here is the crash report:
-[TileLayer _isChargeEnabled]: unrecognized selector sent to instance 0x14aeadb0
(null)
(
0 CoreFoundation 0x376298a7 __exceptionPreprocess + 186
1 libobjc.A.dylib 0x3169e259 objc_exception_throw + 32
2 CoreFoundation 0x3762ca9b -[NSObject doesNotRecognizeSelector:] + 174
3 CoreFoundation 0x3762b915 ___forwarding___ + 300
4 CoreFoundation 0x37586650 _CF_forwarding_prep_0 + 48
5 UIKit 0x30775e43 -[UIWindow warpPoint:] + 686
6 UIKit 0x3075c1ff _UIApplicationHandleEvent + 2438
7 GraphicsServices 0x3777922b PurpleEventCallback + 882
8 CoreFoundation 0x375fd523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 38
9 CoreFoundation 0x375fd4c5 __CFRunLoopDoSource1 + 140
10 CoreFoundation 0x375fc313 __CFRunLoopRun + 1370
11 CoreFoundation 0x3757f4a5 CFRunLoopRunSpecific + 300
12 CoreFoundation 0x3757f36d CFRunLoopRunInMode + 104
13 GraphicsServices 0x37778439 GSEventRunModal + 136
14 UIKit 0x3078bcd5 UIApplicationMain + 1080
15 Movie 0x00022eb3 _mh_execute_header + 7859
16 Movie 0x00022e40 _mh_execute_header + 7744
)
Well, it means you tried passing a message (a.k.a calling a method) _isChargeEnabled to an object of class TileLayer, but it is non-existent.
UPDATE
I did a quick google search and turns out _isChargeEnabled is private API of Apple. You could check this and this for more information.

iPhone SIGSEGV crash with any level of Optimization using ARC+ASIHTTPRequest

I currently use ASIHTTPRequest for synchronous requests
I recently refactored my code to comply with ARC and omit the ASIHTTPRequest class using the compiler flag -fno-objc-arc
I have a _mh_execute_header SIGSEGV crash when I use any type of optimization
While turning off all optimization allows my app to run - I need to be able to optimize the app using the iOS default settings which use Fastest, Smallest [-Os]
Since this is a memory related issue and since the only manually managed memory resides within ASIHTTPRequest - is using ASI with ARC my problem?
Stack Trace:
Thread: Unknown Name (Crashed)
0 libobjc.A.dylib 0x37b9ef7e objc_msgSend + 21
1 Test 0x000dcda5 _mh_execute_header + 126373
2 Test 0x000dc4b9 _mh_execute_header + 124089
3 Test 0x000cd801 _mh_execute_header + 63489
4 Test 0x000ce39d _mh_execute_header + 66461
5 Test 0x000cf561 _mh_execute_header + 71009
6 Test 0x000d3e3d _mh_execute_header + 89661
7 UIKit 0x3334ccbd -[UITextField keyboardInput:shouldInsertText:isMarkedText:] + 148
8 UIKit 0x3334cc1f -[UIFieldEditor keyboardInput:shouldInsertText:isMarkedText:] + 94
9 UIKit 0x3334cbb9 -[UIKeyboardImpl callShouldInsertText:] + 108
10 UIKit 0x3334bb5b -[UIKeyboardImpl addInputString:fromVariantKey:] + 114
11 UIKit 0x3334bae1 -[UIKeyboardImpl handleStringInput:fromVariantKey:] + 164
12 UIKit 0x3334a775 -[UIKeyboardImpl handleKeyEvent:] + 1320
13 UIKit 0x334e48a3 -[UIKeyboardLayoutStar sendStringAction:forKey:isPopupVariant:] + 486
14 UIKit 0x33348dcd -[UIKeyboardLayoutStar touchUp:] + 3196
15 UIKit 0x333480fd -[UIKeyboardLayout touchesEnded:withEvent:] + 380
16 UIKit 0x3324b92b -[UIWindow _sendTouchesForEvent:] + 318
17 UIKit 0x3324b319 -[UIWindow sendEvent:] + 380
18 UIKit 0x33231695 -[UIApplication sendEvent:] + 356
19 UIKit 0x33230f3b _UIApplicationHandleEvent + 5826
20 GraphicsServices 0x373f022b PurpleEventCallback + 882
21 CoreFoundation 0x357d1523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 38
22 CoreFoundation 0x357d14c5 __CFRunLoopDoSource1 + 140
23 CoreFoundation 0x357d0313 __CFRunLoopRun + 1370
24 CoreFoundation 0x357534a5 CFRunLoopRunSpecific + 300
25 CoreFoundation 0x3575336d CFRunLoopRunInMode + 104
26 GraphicsServices 0x373ef439 GSEventRunModal + 136
27 UIKit 0x3325fcd5 UIApplicationMain + 1080
28 Test 0x000bfc1b _mh_execute_header + 7195

iOS app crashing for apple review team and can't replicate

My app is crashing for the apple review team but I can't replicate the issue. They sent me the crash log.
Incident Identifier:
CrashReporter Key: d91f018f5afc31f948a80025c7a09bb112a3caf4
Hardware Model: iPhone3,1
Process:
Path:
Identifier:
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2012-06-12 09:27:55.479 -0700
OS Version: iPhone OS 5.1.1 (9B206)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x3766b88f __exceptionPreprocess + 163
1 libobjc.A.dylib 0x35370259 objc_exception_throw + 33
2 CoreFoundation 0x3766ea9b -[NSObject doesNotRecognizeSelector:] + 175
3 CoreFoundation 0x3766d915 ___forwarding___ + 301
4 CoreFoundation 0x375c8650 _CF_forwarding_prep_0 + 48
5 Sportal_TDF 0x00031515 -[MenuViewController showStageList:] (MenuViewController.m:62)
6 CoreFoundation 0x375ca1fb -[NSObject performSelector:withObject:] + 43
7 Sportal_TDF 0x00005d93 -[DataViewControllerBase retrieveCachedJson:json:cacheAction:] (DataViewControllerBase.m:468)
8 Sportal_TDF 0x00005e57 -[DataViewControllerBase callWebService:json:cacheAction:successAction:] (DataViewControllerBase.m:480)
9 Sportal_TDF 0x000314f9 -[MenuViewController loadUpcomingStage] (MenuViewController.m:57)
10 Sportal_TDF 0x000317b9 -[MenuViewController viewWillAppear:] (MenuViewController.m:142)
11 UIKit 0x31381b95 -[UIViewController _setViewAppearState:isAnimating:] + 145
12 UIKit 0x31525ad1 __52-[UIViewController _setViewAppearState:isAnimating:]_block_invoke_0 + 137
13 CoreFoundation 0x3765f631 __NSArrayEnumerate + 365
14 CoreFoundation 0x375c4ed5 -[NSArray enumerateObjectsWithOptions:usingBlock:] + 65
15 UIKit 0x31381c39 -[UIViewController _setViewAppearState:isAnimating:] + 309
16 UIKit 0x31381a49 -[UIViewController viewWillMoveToWindow:] + 233
17 UIKit 0x31342b05 -[UIView(Hierarchy) _willMoveToWindow:withAncestorView:] + 529
18 UIKit 0x313424ab -[UIView(Internal) _addSubview:positioned:relativeTo:] + 303
19 UIKit 0x31342377 -[UIView(Hierarchy) addSubview:] + 31
20 UIKit 0x31377555 -[UIWindow addRootViewControllerViewIfPossible] + 289
21 UIKit 0x31369e87 -[UIWindow _setHidden:forced:] + 295
22 UIKit 0x313da7d5 -[UIWindow makeKeyAndVisible] + 25
23 Sportal_TDF 0x000030b3 -[Sportal_TDFAppDelegate application:didFinishLaunchingWithOptions:] (Sportal_TDFAppDelegate.m:107)
24 UIKit 0x31377cab -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1183
25 UIKit 0x313717dd -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 409
26 UIKit 0x3133fac3 -[UIApplication handleEvent:withNewEvent:] + 1011
27 UIKit 0x3133f567 -[UIApplication sendEvent:] + 55
28 UIKit 0x3133ef3b _UIApplicationHandleEvent + 5827
29 GraphicsServices 0x33d8122b PurpleEventCallback + 883
30 CoreFoundation 0x3763f523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 39
31 CoreFoundation 0x3763f4c5 __CFRunLoopDoSource1 + 141
32 CoreFoundation 0x3763e313 __CFRunLoopRun + 1371
33 CoreFoundation 0x375c14a5 CFRunLoopRunSpecific + 301
34 CoreFoundation 0x375c136d CFRunLoopRunInMode + 105
35 UIKit 0x3137086b -[UIApplication _run] + 551
36 UIKit 0x3136dcd5 UIApplicationMain + 1081
37 0x00002a07 main (main.m:16)
38 0x000029a0 0x1000 + 6560
It is crashing on line
#autoreleasepool
{
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
How can I debug when I can't replicate the issue? Has anyone experienced this issue. My app was working fine in previous versions but this time it is crashing in 5.1.1. Any help would be greatly appreciated.
What does [MenuViewController showStageList:] contain on line 62!?
Obviously you are calling a method, that's non existent: [NSObject doesNotRecognizeSelector:].

This class is not key value coding-compliant for the key featured

I suspect some code is trying to use my FooterArchiveView similar to a NSDictionary so I tried using breakpoints to find the bottleneck but my breakpoints are sending me on a wild goose chase into system files like UINibDecoderDecodeObjectForValue. What should I do?
2012-03-08 08:35:55.417 JOM App[44161:207] Uncaught exception: [<FooterArchiveView 0x9b27770> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key featured.
2012-03-08 08:35:55.420 JOM App[44161:207] Stack trace: (
0 CoreFoundation 0x0169c06e __exceptionPreprocess + 206
1 libobjc.A.dylib 0x01c50d0a objc_exception_throw + 44
2 CoreFoundation 0x0169bf11 -[NSException raise] + 17
3 Foundation 0x00f89032 -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
4 Foundation 0x00efaf7b _NSSetUsingKeyValueSetter + 136
5 Foundation 0x00efaeeb -[NSObject(NSKeyValueCoding) setValue:forKey:] + 287
6 UIKit 0x00628268 -[UIView(CALayerDelegate) setValue:forKey:] + 168
7 Foundation 0x00f15d60 -[NSObject(NSKeyValueCoding) setValue:forKeyPath:] + 393
8 UIKit 0x0080891a -[UIRuntimeOutletConnection connect] + 106
9 CoreFoundation 0x0169de1a -[NSObject performSelector:] + 58
10 CoreFoundation 0x01607821 -[NSArray makeObjectsPerformSelector:] + 273
11 UIKit 0x0080746e -[UINib instantiateWithOwner:options:] + 1178
12 UIKit 0x00809010 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 157
13 JOM App 0x0000e9ca -[ContentView setContent:] + 1258
14 JOM App 0x0000c906 -[NavigationView devotionsTUI:] + 390
15 CoreFoundation 0x0169dec9 -[NSObject performSelector:withObject:withObject:] + 73
16 UIKit 0x005ec5c2 -[UIApplication sendAction:to:from:forEvent:] + 96
17 UIKit 0x005ec55a -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
18 UIKit 0x00691b76 -[UIControl sendAction:to:forEvent:] + 66
19 UIKit 0x0069203f -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 503
20 UIKit 0x006912fe -[UIControl touchesEnded:withEvent:] + 549
21 UIKit 0x00611a30 -[UIWindow _sendTouchesForEvent:] + 513
22 UIKit 0x00611c56 -[UIWindow sendEvent:] + 273
23 UIKit 0x005f8384 -[UIApplication sendEvent:] + 464
24 UIKit 0x005ebaa9 _UIApplicationHandleEvent + 8196
25 GraphicsServices 0x02589fa9 PurpleEventCallback + 1274
26 CoreFoundation 0x016701c5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
27 CoreFoundation 0x015d5022 __CFRunLoopDoSource1 + 146
28 CoreFoundation 0x015d390a __CFRunLoopRun + 2218
29 CoreFoundation 0x015d2db4 CFRunLoopRunSpecific + 212
30 CoreFoundation 0x015d2ccb CFRunLoopRunInMode + 123
31 GraphicsServices 0x02588879 GSEventRunModal + 207
32 GraphicsServices 0x0258893e GSEventRun + 114
33 UIKit 0x005e9a9b UIApplicationMain + 1175
34 JOM App 0x000027d2 main + 178
35 JOM App 0x00002715 start + 53
36 ??? 0x00000001 0x0 + 1
)
"This class is not key value coding-compliant for the key featured." means that a class is trying to set a property on an object through key-value coding, only to find that it cannot. This most often occurs when you've defined an outlet, connected it in a nib, then removed the outlet from your code, leaving a dangling connection in the nib. When the nib is deserialised, it tries to connect up the outlet using key-value coding and you see the error above.