react-native-pager-view
react-native-pager-view copied to clipboard
still CRASH: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unexpected view controller: <UIViewController: 0x175b84ff0>'
Environment
No need environment here, the crash does not related to environment [email protected]
Description
click to swap any pager many times, the u will got this error
Reproducible Demo
Assertion failure in -[UIPageViewController queuingScrollView:willManuallyScroll:toRevealView:concealView:animated:], UIPageViewController.m:1966
2022-08-26 19:32:28.000980+0700 VedaxLink[15191:14589608] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unexpected view controller: <UIViewController: 0x175b84ff0>'
*** First throw call stack:
(
0 CoreFoundation 0x0000000109dbbd70 __exceptionPreprocess + 236
1 libobjc.A.dylib 0x00000001068a214c objc_exception_throw + 56
2 Foundation 0x000000010ace7560 _userInfoForFileAndLine + 0
3 UIKitCore 0x00000001263c10c8 -[UIPageViewController queuingScrollView:willManuallyScroll:toRevealView:concealView:animated:] + 964
4 UIKitCore 0x00000001263cd764 -[_UIQueuingScrollView _notifyDelegateWillManuallyScroll:toRevealView:concealingView:animated:] + 132
5 UIKitCore 0x00000001263ceaf4 __54-[_UIQueuingScrollView _didScrollWithAnimation:force:]_block_invoke + 452
6 UIKitCore 0x00000001263ce72c -[_UIQueuingScrollView _didScrollWithAnimation:force:] + 604
7 UIKitCore 0x00000001263cac34 -[_UIQueuingScrollView layoutSubviews] + 188
8 UIKitCore 0x0000000127124434 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 2588
9 QuartzCore 0x000000010b9148ec _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 472
10 QuartzCore 0x000000010b91f6f0 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 116
11 QuartzCore 0x000000010b85853c _ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd + 448
12 QuartzCore 0x000000010b884554 _ZN2CA11Transaction6commitEv + 696
13 QuartzCore 0x000000010b8857ac _ZN2CA11Transaction25flush_as_runloop_observerEb + 68
14 CoreFoundation 0x0000000109d28f10 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
15 CoreFoundation 0x0000000109d235a4 __CFRunLoopDoObservers + 572
16 CoreFoundation 0x0000000109d23af8 __CFRunLoopRun + 968
17 CoreFoundation 0x0000000109d23218 CFRunLoopRunSpecific + 572
18 GraphicsServices 0x0000000112bab60c GSEventRunModal + 160
19 UIKitCore 0x0000000126bb5a98 -[UIApplication _run] + 992
20 UIKitCore 0x0000000126bba634 UIApplicationMain + 112
21 VedaxLink 0x0000000104788290 main + 80
22 dyld 0x0000000106275cd8 start_sim + 20
23 ??? 0x00000001061c508c 0x0 + 4397486220
24 ??? 0x6f21800000000000 0x0 + 8007822349929807872
)
here is my content of code:

Duplicates #507, #545.