iOS 13 cra sh с UIButtonBarStackView возможно на вращение? - PullRequest
0 голосов
/ 22 января 2020

Я получаю много отчетов о sh из моего приложения iOS со стеком вызовов, который, по-видимому, включает вращение с одним или несколькими элементами панели кнопок на панели навигации. Я вижу вызовы [UIStackView updateConstraints], [_UIButtonBarStackView updateConstraints] (которые, как я полагаю, является частным подклассом UIStackView, который управляет элементами кнопок панели), и множество методов в UIViewController о ротации. Я не воспроизвел проблему в отладке, несмотря на множество экспериментов с вращением с различными вещами в панелях навигации. Это все на iOS 13 и все на iPhone с Touch ID (и, следовательно, без закругленных углов). Crashlytics также говорит, что всегда, когда приложение находится в фоновом состоянии.

Кто-нибудь видел это раньше, и, возможно, нашел причину и исправил ее?

Fatal Exception: NSRangeException
*** -[__NSSingleObjectArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]
0  CoreFoundation                 0x1c2262a48 __exceptionPreprocess
1  libobjc.A.dylib                0x1c1f89fa4 objc_exception_throw
2  CoreFoundation                 0x1c215ea3c -[NSOrderedSet indexOfObject:inSortedRange:options:usingComparator:]
3  UIKitCore                      0x1c667eeb0 -[_UIOrderedLayoutArrangement _cleanUpEdgeToEdgeConstraintsForHiddenItemsForItem:atIndex:processAdjacentHiddenItems:]
4  UIKitCore                      0x1c6683068 -[_UIOrderedLayoutArrangement _updateArrangementConstraints]
5  UIKitCore                      0x1c669d878 -[UIView(AdditionalLayoutSupport) _handleLayoutArrangementConstraintsIfNecessary]
6  UIKitCore                      0x1c669d9a4 -[UIView(AdditionalLayoutSupport) _updateSystemConstraints]
7  UIKitCore                      0x1c6684e40 __32-[UIStackView updateConstraints]_block_invoke
8  UIKitCore                      0x1c669bccc -[UIView(AdditionalLayoutSupport) _withUnsatisfiableConstraintsLoggingSuspendedIfEngineDelegateExists:]
9  UIKitCore                      0x1c6684e00 -[UIStackView updateConstraints]
10 UIKitCore                      0x1c59ab864 -[_UIButtonBarStackView updateConstraints]
11 UIKitCore                      0x1c669c750 -[UIView(AdditionalLayoutSupport) _sendUpdateConstraintsIfNecessaryForSecondPass:]
12 UIKitCore                      0x1c669cc1c -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:]
13 UIKitCore                      0x1c669cb00 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:]
14 Foundation                     0x1c253a06c -[NSISEngine withBehaviors:performModifications:]
15 UIKitCore                      0x1c669ce3c -[UIView(AdditionalLayoutSupport) _recursiveUpdateConstraintsIfNeededCollectingViews:forSecondPass:]
16 UIKitCore                      0x1c669cb00 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:]
17 Foundation                     0x1c253a06c -[NSISEngine withBehaviors:performModifications:]
18 UIKitCore                      0x1c669ce3c -[UIView(AdditionalLayoutSupport) _recursiveUpdateConstraintsIfNeededCollectingViews:forSecondPass:]
19 UIKitCore                      0x1c669cb00 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:]
20 UIKitCore                      0x1c669cb00 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:]
21 UIKitCore                      0x1c669cb00 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:]
22 Foundation                     0x1c253a06c -[NSISEngine withBehaviors:performModifications:]
23 UIKitCore                      0x1c669ce3c -[UIView(AdditionalLayoutSupport) _recursiveUpdateConstraintsIfNeededCollectingViews:forSecondPass:]
24 UIKitCore                      0x1c669cb00 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:]
25 UIKitCore                      0x1c669cb00 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:]
26 UIKitCore                      0x1c669cb00 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededCollectingViews:forSecondPass:]
27 Foundation                     0x1c253a06c -[NSISEngine withBehaviors:performModifications:]
28 UIKitCore                      0x1c669d2f8 __100-[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:]_block_invoke
29 UIKitCore                      0x1c669bccc -[UIView(AdditionalLayoutSupport) _withUnsatisfiableConstraintsLoggingSuspendedIfEngineDelegateExists:]
30 UIKitCore                      0x1c669cf30 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:]
31 UIKitCore                      0x1c668e444 -[UIWindow(UIConstraintBasedLayout) _updateConstraintsIfNeededWithViewForVariableChangeNotifications:]
32 UIKitCore                      0x1c669dd70 -[UIView(AdditionalLayoutSupport) _updateConstraintsAtEngineLevelIfNeededWithViewForVariableChangeNotifications:]
33 UIKitCore                      0x1c675804c -[UIView(Hierarchy) _updateConstraintsAsNecessaryAndApplyLayoutFromEngine]
34 UIKitCore                      0x1c672b580 -[UITransitionView layoutSubviews]
35 UIKitCore                      0x1c676b3d0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
36 QuartzCore                     0x1c8cce7dc -[CALayer layoutSublayers]
37 QuartzCore                     0x1c8cd4958 CA::Layer::layout_if_needed(CA::Transaction*)
38 QuartzCore                     0x1c8cce5e8 -[CALayer layoutIfNeeded]
39 UIKitCore                      0x1c5cd72e8 __86-[UIViewController window:willAnimateRotationToInterfaceOrientation:duration:newSize:]_block_invoke
40 UIKitCore                      0x1c675f530 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:]
41 UIKitCore                      0x1c675fb10 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:delay:options:animations:completion:]
42 UIKitCore                      0x1c5cd7264 -[UIViewController window:willAnimateRotationToInterfaceOrientation:duration:newSize:]
43 UIKitCore                      0x1c5cde6c8 __95-[UIViewController(AdaptiveSizing) _window:viewWillTransitionToSize:withTransitionCoordinator:]_block_invoke.3464
44 UIKitCore                      0x1c5ce6600 -[_UIViewControllerTransitionCoordinator _applyBlocks:releaseBlocks:]
45 UIKitCore                      0x1c5ce2fb0 -[_UIViewControllerTransitionContext __runAlongsideAnimations]
46 UIKitCore                      0x1c675f530 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:]
47 UIKitCore                      0x1c675fb10 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:delay:options:animations:completion:]
48 UIKitCore                      0x1c5cf8f60 __58-[_UIWindowRotationAnimationController animateTransition:]_block_invoke_2
49 UIKitCore                      0x1c6763484 +[UIView(Internal) _performBlockDelayingTriggeringResponderEvents:forScene:]
50 UIKitCore                      0x1c5cf8ccc __58-[_UIWindowRotationAnimationController animateTransition:]_block_invoke
51 UIKitCore                      0x1c675f530 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:]
52 UIKitCore                      0x1c675fb10 +[UIView(UIViewAnimationWithBlocks) animateWithDuration:delay:options:animations:completion:]
53 UIKitCore                      0x1c5cf8b80 -[_UIWindowRotationAnimationController animateTransition:]
54 UIKitCore                      0x1c6313b1c -[UIWindow _rotateToBounds:withAnimator:transitionContext:]
55 UIKitCore                      0x1c631611c -[UIWindow _rotateWindowToOrientation:updateStatusBar:duration:skipCallbacks:]
56 UIKitCore                      0x1c6316634 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:]
57 UIKitCore                      0x1c63159e8 -[UIWindow _setRotatableViewOrientation:updateStatusBar:duration:force:]
58 UIKitCore                      0x1c6314954 __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke
59 UIKitCore                      0x1c631485c -[UIWindow _updateToInterfaceOrientation:duration:force:]
60 CoreFoundation                 0x1c21be288 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__
61 CoreFoundation                 0x1c21be2d0 ___CFXRegistrationPost1_block_invoke
62 CoreFoundation                 0x1c21bd630 _CFXRegistrationPost1
63 CoreFoundation                 0x1c21bd2e8 ___CFXNotificationPost_block_invoke
64 CoreFoundation                 0x1c213959c -[_CFXNotificationRegistrar find:object:observer:enumerator:]
65 CoreFoundation                 0x1c21bcc38 _CFXNotificationPost
66 Foundation                     0x1c2519138 -[NSNotificationCenter postNotificationName:object:userInfo:]
67 UIKitCore                      0x1c5f53128 -[UIDevice setOrientation:animated:]
68 UIKitCore                      0x1c5aa33b4 __134-[_UIWindowSceneDeviceOrientationSettingsDiffAction _updateDeviceOrientationWithSettingObserverContext:windowScene:transitionContext:]_block_invoke
69 UIKitCore                      0x1c675f530 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:]
70 UIKitCore                      0x1c675f8b4 +[UIView(UIViewAnimationWithBlocks) _animateWithDuration:delay:options:factory:animations:completion:]
71 UIKitCore                      0x1c5e68300 +[BSAnimationSettings(UIKit) tryAnimatingWithSettings:actions:completion:]
72 UIKitCore                      0x1c5f5015c _UISceneSettingsDiffActionPerformChangesWithTransitionContext
73 UIKitCore                      0x1c5aa32e8 -[_UIWindowSceneDeviceOrientationSettingsDiffAction _updateDeviceOrientationWithSettingObserverContext:windowScene:transitionContext:]
74 UIKitCore                      0x1c5aa31ec __163-[_UIWindowSceneDeviceOrientationSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]_block_invoke
75 UIKitCore                      0x1c5f50058 _UISceneSettingsDiffActionPerformActionsWithDelayForTransitionContext
76 UIKitCore                      0x1c5aa3084 -[_UIWindowSceneDeviceOrientationSettingsDiffAction _performActionsForUIScene:withUpdatedFBSScene:settingsDiff:fromSettings:transitionContext:lifecycleActionType:]
77 UIKitCore                      0x1c5916880 __64-[UIScene scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke
78 UIKitCore                      0x1c59153e8 -[UIScene _emitSceneSettingsUpdateResponseForCompletion:afterSceneUpdateWork:]
79 UIKitCore                      0x1c59165b8 -[UIScene scene:didUpdateWithDiff:transitionContext:completion:]
80 UIKitCore                      0x1c5e89248 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:]
81 FrontBoardServices             0x1c7383248 -[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]
82 FrontBoardServices             0x1c73a7d28 __88-[FBSWorkspaceScenesClient sceneID:updateWithSettingsDiff:transitionContext:completion:]_block_invoke_2
83 FrontBoardServices             0x1c738cf04 -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:]
84 FrontBoardServices             0x1c73a7c5c __88-[FBSWorkspaceScenesClient sceneID:updateWithSettingsDiff:transitionContext:completion:]_block_invoke
85 libdispatch.dylib              0x1c1f2f184 _dispatch_client_callout
86 libdispatch.dylib              0x1c1ed7fd8 _dispatch_block_invoke_direct$VARIANT$mp
87 FrontBoardServices             0x1c73cc418 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__
88 FrontBoardServices             0x1c73cc0e4 -[FBSSerialQueue _queue_performNextIfPossible]
89 FrontBoardServices             0x1c73cc60c -[FBSSerialQueue _performNextFromRunLoopSource]
90 CoreFoundation                 0x1c21e0a00 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
91 CoreFoundation                 0x1c21e0958 __CFRunLoopDoSource0
92 CoreFoundation                 0x1c21e00f0 __CFRunLoopDoSources0
93 CoreFoundation                 0x1c21db23c __CFRunLoopRun
94 CoreFoundation                 0x1c21daadc CFRunLoopRunSpecific
95 GraphicsServices               0x1cc160328 GSEventRunModal
96 UIKitCore                      0x1c62d5ae0 UIApplicationMain
97 BRFree                         0x1049221ec main + 34 (main.m:34)
98 libdyld.dylib                  0x1c2064360 start
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...