Post

Replies

Boosts

Views

Activity

iOS 17 Public Beta 6 - NSInternalInconsistencyException, UIMenu._resolvedElementSize cannot be called before the menu has been prepared for display
On devices running iOS 17 public beta 6 and our application, there are reports of crash related to NSInternalInconsistencyException, UIMenu._resolvedElementSize cannot be called before the menu has been prepared for display. Our application uses the WKWebView which loads HTML pages and run JavaScript. The crash seems to happen randomly but usually as a result of interacting with UI elements. This crash was not seen on iOS 16.6, which is currently the latest public version. See the following stack trace that was captured by our application : #1 0x1b309bc00 : objc_exception_throw #2 0x1ba29d808 : #3 0x1bd489188 -[UIMenu::_resolvedElementSize] #4 0x1bd48eebc : #5 0x1bd48f1dc : #6 0x1bdbc4468 -[_UIContextMenuListView::setDisplayedMenu:] #7 0x1bd3111f4 -[_UIContextMenuView::_newListViewWithMenu:position:] #8 0x1bd310108 -[_UIContextMenuView::_displayMenu:inPlaceOfMenu:updateType:alongsideAnimations:] #9 0x1bde9e038 -[_UIContextMenuUIController::presentationTransitionWillBegin] #10 0x1bddc6718 -[_UIContextMenuPresentation::prepareToPresent] #11 0x1bcea0f58 +[UIView::performWithoutAnimation:] #12 0x1bd339f4c -[_UIRapidClickPresentationAssistant::_performPresentationAnimationsFromViewController:] #13 0x1bd339d8c -[_UIRapidClickPresentationAssistant::presentFromSourcePreview:lifecycleCompletion:] #14 0x1bdc06b10 : #15 0x1bd121544 : #16 0x1bdc06ac0 : #17 0x1bdc068e8 -[_UIClickPresentationInteraction::_performPresentation] #18 0x1bdc083f4 : #19 0x1bd031e44 : #20 0x1bdc0606c -[_UIClickPresentationInteraction::_performPreviewPresentation] #21 0x1be105734 : #22 0x1be108a54 : #23 0x1be10894c -[UIContextMenuInteraction::_interactionShouldBeginAtPlatformPoint:completion:] #24 0x1be1056f4 -[UIContextMenuInteraction::_presentMenuAtPlatformPoint:]
5
2
1.4k
Sep ’23