Clicking weird error: "DOMException 105" in an iOS application. Looking for a guide on how to find an error in my code

Cannot find a link to this error - anywhere!

This happens at the same point every time - just like I click on a UITableView row element. Below is a stack trace - can anyone give any suggestions as to what might be the problem and / or how to find the error?

Thanks!


2016-11-04 10:12:56.096 Golf W[51137:9704786] *** Terminating app due to uncaught exception 'DOMException', reason: '*** DOMException 105' *** First throw call stack: ( 0 CoreFoundation 0x000000010d51b34b __exceptionPreprocess + 171 1 libobjc.A.dylib 0x000000010cf7c21e objc_exception_throw + 48 2 CoreFoundation 0x000000010d51b299 -[NSException raise] + 9 3 WebCore 0x0000000111f50072 _ZN7WebCore17raiseDOMExceptionEi + 370 4 WebCore 0x0000000111f5008e _ZN7WebCore23raiseTypeErrorExceptionEv + 14 5 WebCore 0x0000000111ed842e -[DOMRange setStart:offset:] + 158 6 UIKit 0x000000010a319143 -[UIWebDocumentView text] + 292 7 UIKit 0x000000010a09a56a _UIViewDescriptionAppendTextIfApplicable + 96 8 UIKit 0x000000010a09a71d -[UIView(UIDebugging) description] + 147 9 CoreFoundation 0x000000010d4f0d4a -[NSArray descriptionWithLocale:indent:] + 362 10 Foundation 0x00000001096ce3be _NSDescriptionWithLocaleFunc + 66 11 CoreFoundation 0x000000010d459407 __CFStringAppendFormatCore + 10983 12 CoreFoundation 0x000000010d4568f7 _CFStringCreateWithFormatAndArgumentsAux2 + 263 13 AccessibilityUtilities 0x000000011e001cd7 _AXStringForArgs + 333 14 UIAccessibility 0x000000011ea0b908 -[UIView(UIAccessibilityElementTraversal) _accessibilitySubviewsForGettingElementsWithOptions:] + 199 15 UIAccessibility 0x000000011ea0c761 -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 743 16 UIAccessibility 0x000000011ea0c7ec -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 882 17 UIAccessibility 0x000000011ea0c7ec -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 882 18 UIAccessibility 0x000000011ea0c7ec -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 882 19 UIAccessibility 0x000000011ea0c7ec -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 882 20 UIAccessibility 0x000000011ea0c7ec -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 882 21 UIAccessibility 0x000000011ea0c7ec -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 882 22 UIAccessibility 0x000000011ea0c7ec -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 882 23 UIAccessibility 0x000000011ea0c7ec -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 882 24 UIAccessibility 0x000000011ea0c7ec -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] + 882 25 UIAccessibility 0x000000011ea0ccef +[UIView(UIAccessibilityElementTraversal) _accessibilityElementsAndContainersDescendingFromViews:options:sorted:] + 472 26 UIAccessibility 0x000000011ea0d0ed -[UIApplication(UIAccessibilityElementTraversal) _accessibilityViewChildrenWithOptions:referenceWindow:] + 128 27 UIAccessibility 0x000000011ea0b13e -[NSObject(UIAccessibilityElementTraversal) _accessibilityEnumerateSiblingsWithParent:options:usingBlock:] + 896 28 UIAccessibility 0x000000011ea093d4 -[NSObject(UIAccessibilityElementTraversal) _accessibilityElementsInDirectionWithCount:options:] + 723 29 UIAccessibility 0x000000011ea16903 -[NSObject(AXPrivCategory) accessibilityAttributeValue:forParameter:] + 1360 30 UIAccessibility 0x000000011ea024ae _copyParameterizedAttributeValueCallback + 211 31 AXRuntime 0x000000011e140cbc _AXXMIGCopyParameterizedAttributeValue + 216 32 AXRuntime 0x000000011e13b6a5 _XCopyParameterizedAttributeValue + 447 33 AXRuntime 0x000000011e14a545 mshMIGPerform + 266 34 CoreFoundation 0x000000010d4acf89 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41 35 CoreFoundation 0x000000010d4acf01 __CFRunLoopDoSource1 + 465 36 CoreFoundation 0x000000010d4a5045 __CFRunLoopRun + 2389 37 CoreFoundation 0x000000010d4a4494 CFRunLoopRunSpecific + 420 38 GraphicsServices 0x0000000110352a6f GSEventRunModal + 161 39 UIKit 0x0000000109fd3f34 UIApplicationMain + 159 40 Golf W 0x00000001087f766f main + 111 41 libdyld.dylib 0x000000010e71168d start + 1 ) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb) 
+3
source share
2 answers

I had the same problem as finding a solution from the last two days. Finally, today I found a solution, either you need to add self.view.isAccessibilityElement = true to viewDidLoad , or set the Attribute property of the view in the interface, as shown below.

enter image description here

0
source

I had the same issue when VoiceOver turned on when loading webview. It seemed to be linking to content in a web browser before it was fully downloaded. To stop this crash, I simply hid the accessibility elements until the webview was loaded. Be sure to set the ViewController as a UIWebViewDelegate . Then:

ObjC example:

 -(void)viewDidLoad { [super viewDidLoad]; [self.view setAccessibilityElementsHidden:YES]; } -(void)webViewDidFinishLoad:(UIWebView*)webView { [self.view setAccessibilityElementsHidden:NO]; } 

Swift example: (You must use WKWebView, so I will give you an example of this below). Be sure to set the ViewController as WKNavigationDelegate

 override func viewDidLoad() { super.viewDidLoad() view.accessibilityElementsHidden = true } func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) { view.accessibilityElementsHidden = false } 

Hope this helps.

0
source

Source: https://habr.com/ru/post/1262332/


All Articles