my app crash whenever i swipe left on a cell, and this what i get
-[UITableViewCellScrollView _tableView]: unrecognized selector sent to instance 0x166a1960
-[UITableViewCellScrollView _tableView]: unrecognized selector sent to instance 0x166a1960
Stack Trace: (
0 CoreFoundation 0x2fc08f23 <redacted> + 154
1 libobjc.A.dylib 0x3a39fce7 objc_exception_throw + 38
2 CoreFoundation 0x2fc0c837 <redacted> + 202
3 CoreFoundation 0x2fc0b137 <redacted> + 706
4 CoreFoundation 0x2fb5a098 _CF_forwarding_prep_0 + 24
5 UIKit 0x3262ef91 <redacted> + 184
6 UIKit 0x325be3f5 <redacted> + 816
7 UIKit 0x32468a21 <redacted> + 148
8 UIKit 0x325ce0cf <redacted> + 78
9 UIKit 0x324681eb <redacted> + 458
10 UIKit 0x32467c4b <redacted> + 666
11 UIKit 0x3243ce75 <redacted> + 196
12 UIKit 0x3243b541 <redacted> + 7120
13 CoreFoundation 0x2fbd3fef <redacted> + 14
14 CoreFoundation 0x2fbd34b7 <redacted> + 206
15 CoreFoundation 0x2fbd1ca7 <redacted> + 630
16 CoreFoundation 0x2fb3c769 CFRunLoopRunSpecific + 524
17 CoreFoundation 0x2fb3c54b CFRunLoopRunInMode + 106
18 GraphicsServices 0x34aa96d3 GSEventRunModal + 138
19 UIKit 0x3249b891 UIApplicationMain + 1136
20 Event Receiver 0x000c3849 main + 116
21 libdyld.dylib 0x3a89dab7 <redacted> + 2
)
i tried to add a Symbolic Breakpoint for -[NSObject(NSObject) doesNotRecognizeSelector:] but that didnt show which piece of code sent that selector
update: this time i used the simulator, and tried to crash the app and i got this now:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITableViewCellScrollView _tableView]: unrecognized selector sent to instance 0x8e46570'
*** First throw call stack:
(
0 CoreFoundation 0x01ad91e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x018588e5 objc_exception_throw + 44
2 CoreFoundation 0x01b76243 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x01ac950b ___forwarding___ + 1019
4 CoreFoundation 0x01ac90ee _CF_forwarding_prep_0 + 14
5 UIKit 0x00785f7a -[UITableViewCellScrollView gestureRecognizerShouldBegin:] + 203
6 UIKit 0x008b5466 -[UIGestureRecognizer _shouldBegin] + 1309
7 UIKit 0x008b1d89 -[UIGestureRecognizer setState:] + 171
8 UIKit 0x008e39d7 -[UIPanGestureRecognizer touchesMoved:withEvent:] + 142
9 UIKit 0x0099792a -[UIScrollViewPanGestureRecognizer touchesMoved:withEvent:] + 89
10 UIKit 0x005597d8 -[UIWindow _sendGesturesForEvent:] + 649
11 UIKit 0x0055a971 -[UIWindow sendEvent:] + 1021
12 UIKit 0x0052c5f2 -[UIApplication sendEvent:] + 242
13 UIKit 0x00516353 _UIApplicationHandleEventQueue + 11455
14 CoreFoundation 0x01a6277f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
15 CoreFoundation 0x01a6210b __CFRunLoopDoSources0 + 235
16 CoreFoundation 0x01a7f1ae __CFRunLoopRun + 910
17 CoreFoundation 0x01a7e9d3 CFRunLoopRunSpecific + 467
18 CoreFoundation 0x01a7e7eb CFRunLoopRunInMode + 123
19 GraphicsServices 0x03dba5ee GSEventRunModal + 192
20 GraphicsServices 0x03dba42b GSEventRun + 104
21 UIKit 0x00518f9b UIApplicationMain + 1225
22 Event Receiver 0x000056cd main + 141
23 libdyld.dylib 0x026a5701 start + 1
)
by applying some coloring to the cell, i saw that when i swipe the cell from the accessory view app crashes
a work around is to set the accessoryType to UITableViewCellAccessoryNone in tableView:cellForRowAtIndexPath:
cell.accessoryType = UITableViewCellAccessoryNone;
Refs:
-How To Make A Swipeable Table View Cell With Actions – Without Going Nuts With Scroll Views here
-A Closer Look at Table View Cells here
Hey ~ I've just solved this bug by removing the codes below in my custom UItableview Cell, but I don't know if it may help you
self.contentView.userInteractionEnabled = NO;
In my case, disable the userinteractionEnabled for cell content view will cause exactly the same crash when I trying to swipe left or right in a custom UItableView in iOS7,
and it shall be fixed by removing it
Considering the error you're getting and these lines:
0x01ac90ee _CF_forwarding_prep_0 + 14
0x00785f7a -[UITableViewCellScrollView gestureRecognizerShouldBegin:] + 203
it appears that you've somehow set an instance of UITableViewCellScrollView as the delegate of a gesture recognizer. Since UITableViewCellScrollView probably doesn't implement the UIGestureRecognizerDelegate protocol, you eventually get an unrecognized selector exception.
Examine the gesture recognizer in each of your table cells closely and check the identity of their delegates.
Related
My Application is getting crashed while scrolling UIWebview - I have used ILPDFKit for implementing interactive PDF - Editable Forms.App is getting crashed only if i am adding more than 126 Objects.
Here is code I am using (from ILPDFKit)
for (PDFWidgetAnnotationView *element in widgetAnnotationViews)
{
element.alpha = 0;
element.parentView = self;
[_pdfView.scrollView addSubview:element];
[_pdfView.scrollView bringSubviewToFront:element];
if ([element isKindOfClass:[PDFFormButtonField class]])
{
[(PDFFormButtonField*)element setButtonSuperview];
}
}
I have also raise Issue here
I have added some customview's in my webview.scrollview , so while scrolling webview my App is getting crashed. i have checked for all possible solutions i found on google/stackoverflow.
none of the delegate method of scrollview / webview called before this crash , as soon as i tried to scroll and app is getting crashed.
below is crash report.
*** Terminating app due to uncaught exception 'NSGenericException', reason: '*** Collection <__NSArrayM: 0x6000024535f0> was mutated while being enumerated.'
*** First throw call stack:
(
0 CoreFoundation 0x00000001045dd34b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000103f5f21e objc_exception_throw + 48
2 CoreFoundation 0x0000000104645f1c __NSFastEnumerationMutationHandler + 124
3 CoreFoundation 0x0000000104582638 -[NSArray makeObjectsPerformSelector:] + 424
4 UIKit 0x00000001020d8f4f -[UIScrollView(UIScrollViewInternal) _notifyDidScroll] + 163
5 UIKit 0x00000001020c3919 -[UIScrollView setContentOffset:] + 478
6 UIKit 0x00000001020c8351 -[UIScrollView _updatePanGesture] + 2346
7 UIKit 0x0000000102531289 -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:] + 57
8 UIKit 0x0000000102539028 _UIGestureRecognizerSendTargetActions + 109
9 UIKit 0x0000000102536af7 _UIGestureRecognizerSendActions + 227
10 UIKit 0x0000000102535d83 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 891
11 UIKit 0x0000000102521e56 _UIGestureEnvironmentUpdate + 1395
12 UIKit 0x000000010252189b -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:] + 521
13 UIKit 0x0000000102520a7e -[UIGestureEnvironment _updateGesturesForEvent:window:] + 286
14 UIKit 0x000000010205f7ad -[UIWindow sendEvent:] + 3989
15 UIKit 0x000000010200ca33 -[UIApplication sendEvent:] + 371
16 UIKit 0x00000001027feb6d __dispatchPreprocessedEventFromEventQueue + 3248
17 UIKit 0x00000001027f7817 __handleEventQueue + 4879
18 CoreFoundation 0x0000000104582311 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
19 CoreFoundation 0x000000010456759c __CFRunLoopDoSources0 + 556
20 CoreFoundation 0x0000000104566a86 __CFRunLoopRun + 918
21 CoreFoundation 0x0000000104566494 CFRunLoopRunSpecific + 420
22 GraphicsServices 0x0000000107910a6f GSEventRunModal + 161
23 UIKit 0x0000000101feef34 UIApplicationMain + 159
24 HyundaiCapital 0x000000010132a67f main + 111
25 libdyld.dylib 0x000000010610268d start + 1
26 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Edit
1.How many subviews at most i can add into delegate of scrollview at a time?
2.I am only getting this crash if i am adding subviews more than 126?
Solution
Updating ILPDFKit worked for me.
Working on implementing NSUndoManager within an iOS9 app. Current undo code looks like this:
func setActiveColorData(colorData: ColorData) {
if colorData != activeColorData {
print(self)
undoManager?.registerUndoWithTarget(self, selector: "setActiveColorData:", object: activeColorData!)
undoManager?.setActionName("Change color")
print("Set undo action")
activeColorData = colorData
}
}
ColorData is just a simple class with three floats inside of it (hue, saturation, brightness) and some utility methods.
Everything works fine, including the shake gesture which brings up the undo prompt. But once you click undo, the app crashes and the following error:
2016-02-25 16:26:58.225 Color[89399:5503615] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Color.PickerViewController setActiveColorData:]: unrecognized selector sent to instance 0x7fa080776820'
*** First throw call stack:
(
0 CoreFoundation 0x0000000105b75e65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000108159deb objc_exception_throw + 48
2 CoreFoundation 0x0000000105b7e48d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x0000000105acb90a ___forwarding___ + 970
4 CoreFoundation 0x0000000105acb4b8 _CF_forwarding_prep_0 + 120
5 Foundation 0x00000001066b2feb -[_NSUndoStack popAndInvoke] + 261
6 Foundation 0x00000001066b2162 -[NSUndoManager undoNestedGroup] + 424
7 UIKit 0x0000000106c46813 -[UIApplication alertView:clickedButtonAtIndex:] + 151
8 UIKit 0x0000000106f63589 -[UIAlertView _prepareToDismissForTappedIndex:] + 136
9 UIKit 0x0000000106f62fc7 __35-[UIAlertView _prepareAlertActions]_block_invoke50 + 53
10 UIKit 0x0000000106f54572 -[UIAlertController _dismissAnimated:triggeringAction:triggeredByPopoverDimmingView:] + 133
11 UIKit 0x0000000107604eb6 -[_UIAlertControllerView _handleActionSelectionGestureRecognizer:] + 694
12 UIKit 0x000000010711ee73 _UIGestureRecognizerSendTargetActions + 153
13 UIKit 0x000000010711b4e5 _UIGestureRecognizerSendActions + 162
14 UIKit 0x00000001071194e2 -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 843
15 UIKit 0x00000001071219a0 ___UIGestureRecognizerUpdate_block_invoke904 + 79
16 UIKit 0x000000010712183e _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 342
17 UIKit 0x000000010710f101 _UIGestureRecognizerUpdate + 2634
18 UIKit 0x0000000106ca6f8a -[UIWindow _sendGesturesForEvent:] + 1137
19 UIKit 0x0000000106ca81c0 -[UIWindow sendEvent:] + 849
20 UIKit 0x0000000106c56b66 -[UIApplication sendEvent:] + 263
21 UIKit 0x0000000106c30d97 _UIApplicationHandleEventQueue + 6844
22 CoreFoundation 0x0000000105aa1a31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
23 CoreFoundation 0x0000000105a9795c __CFRunLoopDoSources0 + 556
24 CoreFoundation 0x0000000105a96e13 __CFRunLoopRun + 867
25 CoreFoundation 0x0000000105a96828 CFRunLoopRunSpecific + 488
26 GraphicsServices 0x000000010a416ad2 GSEventRunModal + 161
27 UIKit 0x0000000106c36610 UIApplicationMain + 171
28 Color 0x00000001052a2a7d main + 109
29 libdyld.dylib 0x0000000108c9992d start + 1
30 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I've check the PickerViewController instance and the memory locations match up (from the print(self) line, in this case 0x7fa080776820). Any idea why it can't invoke this selector? Or is it something else? Thanks!
I'm seeing this same kind of crash in a photo editing app when memory is running low. When I get a memory warning, I clear the undo manager but in my case I believe this crash happens because the memory is getting deleted out from under the undo manager.
In case it's related: https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/UndoArchitecture/Articles/CleaningUndoStack.html
I used once a Swipe gesture on xCode 6 (using Swift). It worked well.
#IBAction func ArrasteiDireita(sender: UISwipeGestureRecognizer) {
println("Arrastei Direita")
}
I removed the gesture (in the main.storyboard) and trying to use Pan Gesture instead, but I don't know why the Swipe Gesture is still being required.
I am getting the following error if the associated method (ArrasteiDireita above) is commented:
2014-07-05 10:48:51.400 Verdadeiro ou Falso[51178:2926619] - [_TtC19Verdadeiro_ou_Falso4Jogo ArrasteiDireita:]: unrecognized selector sent to instance 0xb23bfa0
2014-07-05 10:48:51.402 Verdadeiro ou Falso[51178:2926619] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[_TtC19Verdadeiro_ou_Falso4Jogo ArrasteiDireita:]: unrecognized selector sent to instance 0xb23bfa0'
*** First throw call stack:
(
0 CoreFoundation 0x00842646 __exceptionPreprocess + 182
1 libobjc.A.dylib 0x0216d8e3 objc_exception_throw + 44
2 CoreFoundation 0x00849575 -[NSObject(NSObject) doesNotRecognizeSelector:] + 277
3 CoreFoundation 0x00794407 ___forwarding___ + 1047
4 CoreFoundation 0x00793fce _CF_forwarding_prep_0 + 14
5 UIKit 0x01466e63 _UIGestureRecognizerSendActions + 327
6 UIKit 0x0146509c -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 1657
7 UIKit 0x0146772d -[UIGestureRecognizer _delayedUpdateGesture] + 60
8 UIKit 0x0146b1cc ___UIGestureRecognizerUpdate_block_invoke689 + 347
9 UIKit 0x0146af6d _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 317
10 UIKit 0x0145e0a8 _UIGestureRecognizerUpdate + 3786
11 UIKit 0x0108ff3b -[UIWindow _sendGesturesForEvent:] + 1356
12 UIKit 0x01090d9f -[UIWindow sendEvent:] + 769
13 UIKit 0x01056c29 -[UIApplication sendEvent:] + 242
14 UIKit 0x010665e2 _UIApplicationHandleEventFromQueueEvent + 20518
15 UIKit 0x0103bcc5 _UIApplicationHandleEventQueue + 2154
16 CoreFoundation 0x00766faf __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
17 CoreFoundation 0x0075c34d __CFRunLoopDoSources0 + 253
18 CoreFoundation 0x0075b8a8 __CFRunLoopRun + 952
19 CoreFoundation 0x0075b22b CFRunLoopRunSpecific + 443
20 CoreFoundation 0x0075b05b CFRunLoopRunInMode + 123
21 GraphicsServices 0x0417e3ca GSEventRunModal + 192
22 GraphicsServices 0x0417e207 GSEventRun + 104
23 UIKit 0x0103f6e5 UIApplicationMain + 1526
24 Verdadeiro ou Falso 0x0000d591 top_level_code + 97
25 Verdadeiro ou Falso 0x0000d5cb main + 43
26 libdyld.dylib 0x026aeac9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Since Swipe gesture occurs before the Pan Gesture, I am not being able to reach the Pan Gesture method:
#IBAction func Arrastei(sender: UIPanGestureRecognizer) {
println("Arrastado")
}
Is there any other place I need to remove the reference to Swipe Gesture?
I was messing with my storyboard with no code involved and got this error after I connected "Terms of use" button to a view controller. It was working fine before this action.
-I created and connected a class to Terms of Use View Controller
-I used action push segue to connect
2014-01-22 17:26:45.434 Project[1162:a0b] -[AboutViewController termsOfUseButton:]: unrecognized selector sent to instance 0x8c89d40
2014-01-22 17:26:45.437 Project[1162:a0b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[AboutViewController termsOfUseButton:]: unrecognized selector sent to instance 0x8c89d40'
*** First throw call stack:
(
0 CoreFoundation 0x0173b5e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x014be8b6 objc_exception_throw + 44
2 CoreFoundation 0x017d8903 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x0172b90b ___forwarding___ + 1019
4 CoreFoundation 0x0172b4ee _CF_forwarding_prep_0 + 14
5 libobjc.A.dylib 0x014d0874 -[NSObject performSelector:withObject:withObject:] + 77
6 UIKit 0x0022e0c2 -[UIApplication sendAction:to:from:forEvent:] + 108
7 UIKit 0x0022e04e -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
8 UIKit 0x003260c1 -[UIControl sendAction:to:forEvent:] + 66
9 UIKit 0x00326484 -[UIControl _sendActionsForEvents:withEvent:] + 577
10 UIKit 0x00325733 -[UIControl touchesEnded:withEvent:] + 641
11 UIKit 0x0026b51d -[UIWindow _sendTouchesForEvent:] + 852
12 UIKit 0x0026c184 -[UIWindow sendEvent:] + 1232
13 UIKit 0x0023fe86 -[UIApplication sendEvent:] + 242
14 UIKit 0x0022a18f _UIApplicationHandleEventQueue + 11421
15 CoreFoundation 0x016c483f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
16 CoreFoundation 0x016c41cb __CFRunLoopDoSources0 + 235
17 CoreFoundation 0x016e129e __CFRunLoopRun + 910
18 CoreFoundation 0x016e0ac3 CFRunLoopRunSpecific + 467
19 CoreFoundation 0x016e08db CFRunLoopRunInMode + 123
20 GraphicsServices 0x036909e2 GSEventRunModal + 192
21 GraphicsServices 0x03690809 GSEventRun + 104
22 UIKit 0x0022cd3b UIApplicationMain + 1225
23 Project 0x00003a9d main + 141
24 libdyld.dylib 0x01d77725 start + 0
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
(Lame but I found the solution after I finished writing the question)
The reason for this error is I created an IBAction-UIButton method on touch up inside.
I deleted that code and hoped the traces were deleted.
It seems it wasnt, I had to unconnect the touch up inside by clicking the X in red squared spot.
I would try recreating the button and the segue, maybe you changed the IBOutlet name by accident or any other thing.
GL HF
Can anyone help me make sense of the crash log below? It came from Apple after inquiring further about a crash my app had. They rejected the app because of this crash, but I have never once been able to make it occur on my end or with 10+ beta testers. So basically, it is only occurring for them for some reason. It looks like it has to do with presenting a view, but that's weird because, like I said, this view is coming up perfectly fine.
Mar 11 14:46:09 unknown StageBloc[2309] <Error>: *** Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '-[AccountOverviewViewController popupViewController]: unrecognized selector sent to instance 0x2c7820'
*** Call stack at first throw:
(
0 CoreFoundation 0x3291964f __exceptionPreprocess + 114
1 libobjc.A.dylib 0x36b5cc5d objc_exception_throw + 24
2 CoreFoundation 0x3291d1bf -[NSObject(NSObject) doesNotRecognizeSelector:] + 102
3 CoreFoundation 0x3291c649 ___forwarding___ + 508
4 CoreFoundation 0x32893180 _CF_forwarding_prep_0 + 48
5 AppName 0x0004b56d -[TTBaseViewController shouldAutorotateToInterfaceOrientation:] + 36
6 UIKit 0x35b0dead -[UIViewController _isSupportedInterfaceOrientation:] + 48
7 UIKit 0x35b76e51 -[UIViewController _preferredInterfaceOrientationGivenCurrentOrientation:] + 68
8 UIKit 0x35b75f07 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:] + 794
9 UIKit 0x35b756f7 -[UIViewController presentModalViewController:withTransition:] + 2378
10 UIKit 0x35b74cd7 -[UIViewController presentModalViewController:animated:] + 58
11 StageBloc 0x00009bb1 -[StageBlocViewController loginSuccessful] + 196
12 StageBloc 0x00004c21 -[StageBlocAppDelegate successfulAttempt:] + 288
13 CoreFoundation 0x32886f03 -[NSObject(NSObject) performSelector:withObject:] + 22
14 AppName 0x0002aa75 -[ASIHTTPRequest reportFinished] + 60
15 CoreFoundation 0x32886f03 -[NSObject(NSObject) performSelector:withObject:] + 22
16 Foundation 0x325707a9 __NSThreadPerformPerform + 268
17 CoreFoundation 0x328f0a79 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
18 CoreFoundation 0x328f275f __CFRunLoopDoSources0 + 382
19 CoreFoundation 0x328f34eb __CFRunLoopRun + 230
20 CoreFoundation 0x32883ec3 CFRunLoopRunSpecific + 230
21 CoreFoundation 0x32883dcb CFRunLoopRunInMode + 58
22 GraphicsServices 0x30b2b41f GSEventRunModal + 114
23 GraphicsServices 0x30b2b4cb GSEventRun + 62
24 UIKit 0x35af9d69 -[UIApplication _run] + 404
25 UIKit 0x35af7807 UIApplicationMain + 670
26 AppName 0x00002ae1 main + 48
27 AppName 0x00002aac start + 40
)
This had to do with forgetting to add some required built variables to my project that the Three20 libraries use. I didn't notice it because you can't run App Store release builds locally.