Post

Replies

Boosts

Views

Activity

Landmark app crashed when fast swipe left and right on UIPageControl
Project files is downloaded from here https://developer.apple.com/tutorials/swiftui/interfacing-with-uikit 2022-09-10 20:26:58.515896+0800 Landmarks[70470:2479264] *** Assertion failure in -[UIPageViewController queuingScrollView:willManuallyScroll:toRevealView:concealView:animated:], UIPageViewController.m:1966 2022-09-10 20:26:58.522795+0800 Landmarks[70470:2479264] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unexpected view controller: <_TtGC7SwiftUI19UIHostingControllerV9Landmarks11FeatureCard_: 0x135d3baf0>' *** First throw call stack: ( 0  CoreFoundation           0x00000001803f3d70 __exceptionPreprocess + 236 1  libobjc.A.dylib           0x000000018019814c objc_exception_throw + 56 2  Foundation             0x000000018075b560 _userInfoForFileAndLine + 0 3  UIKitCore              0x00000001845940c8 -[UIPageViewController queuingScrollView:willManuallyScroll:toRevealView:concealView:animated:] + 964 4  UIKitCore              0x00000001845a0764 -[_UIQueuingScrollView _notifyDelegateWillManuallyScroll:toRevealView:concealingView:animated:] + 132 5  UIKitCore              0x00000001845a1af4 __54-[_UIQueuingScrollView _didScrollWithAnimation:force:]_block_invoke + 452 6  UIKitCore              0x00000001845a172c -[_UIQueuingScrollView _didScrollWithAnimation:force:] + 604 7  UIKitCore              0x000000018459dc34 -[_UIQueuingScrollView layoutSubviews] + 188 8  UIKitCore              0x00000001852f7434 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2588 9  QuartzCore             0x000000018852c8ec _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 472 10 QuartzCore             0x00000001885376f0 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 116 11 QuartzCore             0x000000018847053c _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 448 12 QuartzCore             0x000000018849c554 _ZN2CA11Transaction6commitEv + 696 13 QuartzCore             0x000000018849d7ac _ZN2CA11Transaction25flush_as_runloop_observerEb + 68 14 CoreFoundation           0x0000000180360f10 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32 15 CoreFoundation           0x000000018035b5a4 __CFRunLoopDoObservers + 572 16 CoreFoundation           0x000000018035baf8 __CFRunLoopRun + 968 17 CoreFoundation           0x000000018035b218 CFRunLoopRunSpecific + 572 18 GraphicsServices          0x000000018c25f60c GSEventRunModal + 160 19 UIKitCore              0x0000000184d88a98 -[UIApplication _run] + 992 20 UIKitCore              0x0000000184d8d634 UIApplicationMain + 112 21 SwiftUI               0x00000001ba3e9294 $s7SwiftUI17KitRendererCommon33_ACC2C5639A7D76F611E170E831FCA491LLys5NeverOyXlXpFAESpySpys4Int8VGSgGXEfU_ + 160 22 SwiftUI               0x00000001ba3e91f0 $s7SwiftUI6runAppys5NeverOxAA0D0RzlF + 164 23 SwiftUI               0x00000001b9e1c680 $s7SwiftUI3AppPAAE4mainyyFZ + 80 24 Landmarks              0x0000000100d9f6b8 $s9Landmarks0A3AppV5$mainyyFZ + 40 25 Landmarks              0x0000000100d9f858 main + 12 26 dyld                0x000000010111dcd8 start_sim + 20 27 ???                 0x00000001012d908c 0x0 + 4314730636 28 ???                 0xf665000000000000 0x0 + 17754597105978048512 ) libc++abi: terminating with uncaught exception of type NSException```
1
0
544
Sep ’22