iOS 17.2 Beta Crash: Fatal Exception: NSInternalInconsistencyException Accessing invalid yOrigin on <_UIBarInsertLayoutData: 0x283b30f60> 'SearchBar'

Hi, I have been experiencing a growing number of crashes for our iOS 17.2 Beta users. Despite attempts, I am unable to reproduce the issue on any devices.

Device tried: iPhone 13 Pro, iPhone 12, iPhone 13 mini.

PFB Stack trace

Fatal Exception: NSInternalInconsistencyException

Accessing invalid yOrigin on <_UIBarInsertLayoutData: 0x283b30f60> 'SearchBar' minimumHeight=0.000000 preferredHeight=0.000000 assignedHeight=0.000000 collapsible priority=1700 order=50

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0xec860 __exceptionPreprocess
1  libobjc.A.dylib                0x2bbe0 objc_exception_throw
2  Foundation                     0x6b0dd8 _userInfoForFileAndLine
3  UIKitCore                      0x57f4e4 -[_UIBarInsertLayoutData verticalOrigin]
4  UIKitCore                      0x587300 -[_UINavigationBarLayout _layoutFrameFor:withOrder:]
5  UIKitCore                      0x5873e4 -[_UINavigationBarLayout searchBarLayoutFrame]
6  UIKitCore                      0x58d948 -[_UINavigationBarTransitionContextPush _finishWithFinalLayout:invalidLayout:]
7  UIKitCore                      0x58dad0 -[_UINavigationBarTransitionContextPush complete]
8  UIKitCore                      0x598968 -[_UINavigationBarVisualProviderModernIOS _endTransitionCompleted:]
9  UIKitCore                      0x599d64 __96-[_UINavigationBarVisualProviderModernIOS _performAnimationWithTransitionCompletion:transition:]_block_invoke_7
10 UIKitCore                      0x84cf8 __UIVIEW_IS_EXECUTING_ANIMATION_COMPLETION_BLOCK__
11 UIKitCore                      0x84490 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:]
12 UIKitCore                      0x83b08 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:]
13 UIKitCore                      0x65c30 -[UIViewAnimationState animationDidStop:finished:]
14 QuartzCore                     0x7208c run_animation_callbacks(void*)
15 libdispatch.dylib              0x4300 _dispatch_client_callout
16 libdispatch.dylib              0x12998 _dispatch_main_queue_drain
17 libdispatch.dylib              0x125b0 _dispatch_main_queue_callback_4CF
18 CoreFoundation                 0x371ec __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
19 CoreFoundation                 0x33ef8 __CFRunLoopRun
20 CoreFoundation                 0x33648 CFRunLoopRunSpecific
21 GraphicsServices               0x34f8 GSEventRunModal
22 UIKitCore                      0x22cbcc -[UIApplication _run]
23 UIKitCore                      0x22c208 UIApplicationMain
24 UIKitCore                      0x455710 __swift_destroy_boxed_opaque_existential_1Tm
25 Stocard                        0x7e2c main (SetupAppIconBadge.swift)
26 ???                            0x1c4129dcc (Missing)
Answered by Frameworks Engineer in 770468022

This has been fixed for a future 17.2 beta.

Accepted Answer

This has been fixed for a future 17.2 beta.

iOS 17.2 Beta Crash: Fatal Exception: NSInternalInconsistencyException Accessing invalid yOrigin on &lt;_UIBarInsertLayoutData: 0x283b30f60&gt; 'SearchBar'
 
 
Q