phonegap / phonegap-mobile-accessibility

PhoneGap plugin to expose mobile accessibility APIs.
Apache License 2.0
145 stars 94 forks source link

App Crashes on Load with iOS 10 #38

Open chrisschmidtmoven opened 7 years ago

chrisschmidtmoven commented 7 years ago

Hi All,

We have been using this plugin for a while. We recently upgraded Cordova and our app is using 4.3.1 version.

But now our app crashes on iOS 10 when Accessibility is turned on.

Resetting plugins due to page load. Terminating app due to uncaught exception 'DOMException', reason: ' DOMException 105'

Seems to be something with this:

21 0x000000019759ed70 in -[UIView(UIAccessibilityElementTraversal) _accessibilitySubviewsForGettingElementsWithOptions:] ()

22 0x000000019759f8b4 in -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] ()

23 0x000000019759f920 in -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] ()

24 0x000000019759f920 in -[UIView(UIAccessibilityElementTraversal) _addAccessibilityElementsAndOrderedContainersWithOptions:toCollection:] ()

25 0x000000019759fd90 in +[UIView(UIAccessibilityElementTraversal) _accessibilityElementsAndContainersDescendingFromViews:options:sorted:] ()

26 0x00000001975a016c in -[UIApplication(UIAccessibilityElementTraversal) _accessibilityViewChildrenWithOptions:referenceWindow:] ()

27 0x000000019f0899ec in -[UIApplicationAccessibility _accessibilityResponderElement:] ()

28 0x000000019f0901c4 in -[UIApplicationAccessibility accessibilityAttributeValue:] ()

I removed the plugin and I am still having the issue.

It works fine on iPhone 5 with iOS 10.2.1. But crashes consistently on iPhone 6 running iOS 10.2.1 which does not make sense to me.

It crashed right after Cordova starts to reset the plugins.

Is anyone else having this issue? If so, how did you resolve it?

Thanks,

Chris

shazron commented 7 years ago

Hi @chrisschmidtmoven I'd like to see what the origin of the issue is, and possibly fix it if I can pinpoint where it happens. Firstly, I would need to reproduce it.

Can you provide repro steps (cli commands, Settings.app settings you turned on, etc) so we can get to the same page? Start with a new clean Cordova project. Thanks!