iOS 9 crash on text view second tap with phone detection on
| Originator: | vigyanhoon | ||
| Number: | rdar://23723495 | Date Originated: | 12/02/2015 |
| Status: | Open | Resolved: | No |
| Product: | iOS | Product Version: | iOS9/9.1 |
| Classification: | Reproducible: | Yes |
Summary: I have a VC that is presented modally which has a UITextView with phone number detected turned on from storyboard. On first tap on the textview it gives following warning: 2015-12-02 19:42:25.008 RPSEnterpriseApp[9547:241210] Warning: Attempt to present <_UIRotatingAlertController: 0x7b501200> on <RPSEnterpriseApp.LoginVC: 0x79e6baa0> whose view is not in the window hierarchy! While on second tap, it crashes with following message: 2015-12-02 19:43:27.648 RPSEnterpriseApp[9547:241210] *** Assertion failure in -[UITextView startInteractionWithLinkAtPoint:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3505.16/UITextView_LinkInteraction.m:377 2015-12-02 19:43:27.767 RPSEnterpriseApp[9547:241210] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '' *** First throw call stack: ( 0 CoreFoundation 0x0296ca94 __exceptionPreprocess + 180 1 libobjc.A.dylib 0x036abe02 objc_exception_throw + 50 2 CoreFoundation 0x0296c92a +[NSException raise:format:arguments:] + 138 3 Foundation 0x030bc3e6 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 118 4 UIKit 0x014023cb -[UITextView(LinkInteraction) startInteractionWithLinkAtPoint:] + 199 5 UIKit 0x00e4da85 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) smallDelayRecognizer:] + 693 6 UIKit 0x00e39d36 _UIGestureRecognizerSendTargetActions + 168 7 UIKit 0x00e361c5 _UIGestureRecognizerSendActions + 176 8 UIKit 0x00e346cc -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 901 9 UIKit 0x00e36954 -[UIGestureRecognizer _delayedUpdateGesture] + 60 10 UIKit 0x00e3ca56 ___UIGestureRecognizerUpdate_block_invoke809 + 86 11 UIKit 0x00e3c8c3 _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 374 12 UIKit 0x00e2c4ff _UIGestureRecognizerUpdate + 3426 13 CoreFoundation 0x0288677e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30 14 CoreFoundation 0x028866de __CFRunLoopDoObservers + 398 15 CoreFoundation 0x0287c05c __CFRunLoopRun + 1340 16 CoreFoundation 0x0287b866 CFRunLoopRunSpecific + 470 17 CoreFoundation 0x0287b67b CFRunLoopRunInMode + 123 18 GraphicsServices 0x07ed6664 GSEventRunModal + 192 19 GraphicsServices 0x07ed64a1 GSEventRun + 104 20 UIKit 0x008e3cc1 UIApplicationMain + 160 21 RPSEnterpriseApp 0x00179d9c main + 140 22 libdyld.dylib 0x04138a21 start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException Can you please inform how can I resolve this issue on iOS9/9.1, or at least provide an alternative of achieving calling behaviour from phone number on iPad as I am not able to distribute my enterprise app because of this freaking error. Steps to Reproduce: Present a VC modally. Have textview phone number detection turned with selection on this presented VC. Press textview once. Press textview twice. Expected Results: Popup with options viz. copy, call, send message, add to contacts Actual Results: Crash on second tap. Version: ios 9/9.1 Notes: Configuration: iOS 9/9.1 iPad Air
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!