iPad crash: Unexpected view controller change in Supplementary column

I'm receiving repetitive crash logs related to the UISplitController supplementary collumn.

Fatal Exception: NSInternalInconsistencyException
Unexpected view controller change in Supplementary column for expanding <xxxx.CustomSplitViewController: 0x15bb0bf40>

I can't reproduce it and the logs have no reference at all to any of my code - I'm wondering if it can be somehow related to orientation changes.

Any help would be very appreciated.

Here is part of the crash log:

Fatal Exception: NSInternalInconsistencyException
0  CoreFoundation                 0x9904c __exceptionPreprocess
1  libobjc.A.dylib                0x15f54 objc_exception_throw
2  Foundation                     0x1306cc _userInfoForFileAndLine
3  UIKitCore                      0x991928 -[UISplitViewControllerPanelImpl panelController:separateSupplementaryViewControllerFromPrimaryViewController:]
4  UIKitCore                      0x96699c __54-[UIPanelController _expandWithTransitionCoordinator:]_block_invoke_4
5  UIKitCore                      0xb0d78 +[UIPanelController _withDisabledAppearanceTransitions:forVisibleDescendantsOf:perform:]
6  UIKitCore                      0xb0940 -[UIPanelController _withDisabledAppearanceTransitionsPerform:]
7  UIKitCore                      0x9668c0 __54-[UIPanelController _expandWithTransitionCoordinator:]_block_invoke_3
8  UIKitCore                      0x1c6a08 +[UIViewController _performWithoutDeferringTransitionsAllowingAnimation:actions:]
9  UIKitCore                      0x966814 __54-[UIPanelController _expandWithTransitionCoordinator:]_block_invoke_2
10 UIKitCore                      0x174268 +[UIView(Animation) performWithoutAnimation:]
11 UIKitCore                      0x966760 __54-[UIPanelController _expandWithTransitionCoordinator:]_block_invoke
12 UIKitCore                      0x26fc28 -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:]
13 UIKitCore                      0x529ae8 -[_UIViewControllerTransitionContext __runAlongsideAnimations]
14 UIKitCore                      0x4f49ac -[_UIWindowAnimationController animateTransition:]
15 UIKitCore                      0xb70dc -[UIWindow _adjustSizeClassesAndResizeWindowToFrame:]
16 UIKitCore                      0x23e408 -[UIWindow _resizeWindowFrameToSceneBoundsIfNecessary]
17 UIKitCore                      0x461bd8 -[UIWindow _sceneBoundsDidChange]
18 UIKitCore                      0x5802e8 -[_UIScenefbsSceneBasedMetricsCalculator _updateMetricsOnWindows:animated:]
19 UIKitCore                      0x2b9fcc -[UIWindowScene _computeMetricsForWindows:animated:]
20 UIKitCore                      0x2e98a8 -[UIWindowScene _computeMetrics:]
21 UIKitCore                      0x270350 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:]
22 UIKitCore                      0x1b2340 _UISceneSettingsDiffActionPerformChangesWithTransitionContext

And two full logs:

Are you overriding any view will transition, should rotate, preferred orientation methods? Or performing any routines in view will appear or view will or did layout subviews? Read here: https://developer.apple.com/documentation/uikit/uisplitviewcontroller

I'm just changing the preferredDisplayMode and preferredSplitBehavior on viewWillTransition. Not changing the child controllers. Do you think that could cause the issue?

iPad crash: Unexpected view controller change in Supplementary column
 
 
Q