This repository has been archived by the owner on Jul 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Fixed crash on iOS 13 #2
Open
alohabehappy
wants to merge
1
commit into
kfit-dev:master
Choose a base branch
from
alohabehappy:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hey @alohabehappy, I am trying to replicate the crash, but I couldn't. Any specific steps? |
sharjeelahmad092
approved these changes
Jan 14, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to fix the issue.
n8tr
approved these changes
Sep 17, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It fixed this crash for me. Please merge! Thank you. 💯
Problem view: <UILabel: 0x7f94d74b7d00; frame = (0 0; 275 45); text = '------'; userInteractionEnabled = NO; layer = <_UILabelLayer: 0x600002fd24e0>>
Expected parent: <OTPTextField: 0x7f94d7a97a00; baseClass = UITextField; frame = (20 171; 275 45); text = ''; opaque = NO; autoresize = RM+BM; tintColor = UIExtendedGrayColorSpace 0 0; gestureRecognizers = <NSArray: 0x60000029d7d0>; layer = <CALayer: 0x600000d204e0>>
Break on UIViewReportBrokenSuperviewChain to debug.'
*** First throw call stack:
(
0 CoreFoundation 0x000000011b745e6e __exceptionPreprocess + 350
1 libobjc.A.dylib 0x000000011ae229b2 objc_exception_throw + 48
2 CoreFoundation 0x000000011b745be8 +[NSException raise:format:arguments:] + 88
3 Foundation 0x0000000112bf5c9b -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 166
4 UIKitCore 0x0000000125854f6a UIViewReportBrokenSuperviewChain + 333
5 UIKitCore 0x00000001258552b2 _UIViewTopDownSubtreeTraversal + 493
6 UIKitCore 0x0000000125883921 -[UIView(Hierarchy) layoutBelowIfNeeded] + 1262
7 cmorq 0x0000000103b29a98 $s5cmorq21OtpCodeViewControllerC11viewDidLoadyyFy10Foundation12NotificationVcfU_yycfU_ + 1624
8 cmorq 0x0000000102d4ff60 $sIeg_IeyB_TR + 48
9 UIKitCore 0x000000012588be1c +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 528
10 UIKitCore 0x000000012588c43a +[UIView(UIViewAnimationWithBlocks) animateWithDuration:animations:completion:] + 86
11 cmorq 0x0000000103b293ab $s5cmorq21OtpCodeViewControllerC11viewDidLoadyyFy10Foundation12NotificationVcfU_ + 1579
12 cmorq 0x00000001039cfd19 $s10Foundation12NotificationVIegn_So14NSNotificationCIeyBy_TR + 153
13 Foundation 0x0000000112c56ad4 -[__NSObserver _doit:] + 287
14 CoreFoundation 0x000000011b670d2c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
15 CoreFoundation 0x000000011b6701a5 _CFXRegistrationPost1 + 421
16 CoreFoundation 0x000000011b66ff11 ___CFXNotificationPost_block_invoke + 193
17 CoreFoundation 0x000000011b76d473 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1795
18 CoreFoundation 0x000000011b66f866 _CFXNotificationPost + 950
19 Foundation 0x0000000112c5726b -[NSNotificationCenter postNotificationName:object:userInfo:] + 59
20 UIKitCore 0x000000012515add4 __68-[UIInputWindowController postValidatedStartNotifications:withInfo:]_block_invoke + 1204
21 UIKitCore 0x000000012515a919 -[UIInputWindowController postValidatedStartNotifications:withInfo:] + 137
22 UIKitCore 0x000000012515e0da __77-[UIInputWindowController moveFromPlacement:toPlacement:starting:completion:]_block_invoke.864 + 571
23 UIKitCore 0x000000012588be1c +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 528
24 UIKitCore 0x000000012588c341 +[UIView(UIViewAnimationWithBlocks) _animateWithDuration:delay:options:animations:start:completion:] + 116
25 UIKitCore 0x000000012515db43 -[UIInputWindowController moveFromPlacement:toPlacement:starting:completion:] + 2037
26 UIKitCore 0x0000000125163260 -[UIInputWindowController setInputViewSet:] + 1133
27 UIKitCore 0x000000012515d015 -[UIInputWindowController performOperations:withAnimationStyle:] + 47
28 UIKitCore 0x0000000124e34b28 -[UIInputResponderController setKeyWindowSceneInputViews:animationStyle:] + 2175
29 UIKitCore 0x0000000124e3427e -[UIInputResponderController setInputViews:animationStyle:] + 200
30 UIKitCore 0x0000000124e353a8 -[UIInputResponderController setInputViews:animated:] + 88
31 UIKitCore 0x0000000124e3540f -[UIInputResponderController setInputViews:] + 68
32 UIKitCore 0x0000000124e32e4c -[UIInputResponderController _reloadInputViewsForKeyWindowSceneResponder:] + 3251
33 UIKitCore 0x0000000124e3217c -[UIInputResponderController _reloadInputViewsForResponder:] + 148
34 UIKitCore 0x00000001253c39ee -[UIResponder(UIResponderInputViewAdditions) reloadInputViews] + 133
35 UIKitCore 0x00000001253beb87 -[UIResponder becomeFirstResponder] + 830
36 UIKit 0x0000000146df25af -[UITextInputUIResponderAccessibility becomeFirstResponder] + 44
37 UIKitCore 0x0000000125881d4e -[UIView(Hierarchy) becomeFirstResponder] + 145
38 UIKitCore 0x000000012569c63a -[UITextField becomeFirstResponder] + 182
39 UIKitCore 0x000000012564c9c2 -[UITextInteractionAssistant(UITextInteractionAssistant_Internal) setFirstResponderIfNecessaryActivatingSelection:] + 195
40 UIKitCore 0x000000012563369b -[UITextSelectionInteraction _checkForRepeatedTap:gestureLocationOut:] + 275
41 UIKitCore 0x0000000125634241 -[UITextSelectionInteraction _handleMultiTapGesture:] + 1103
42 UIKitCore 0x0000000125391c19 -[UIApplication sendAction:to:from:forEvent:] + 83
43 UIKitCore 0x0000000124e8cb0f -[UITextMultiTapRecognizer onStateUpdate:] + 169
44 UIKitCore 0x0000000124f21318 -[UIGestureRecognizerTarget _sendActionWithGestureRecognizer:] + 44
45 UIKitCore 0x0000000124f2b27a _UIGestureRecognizerSendTargetActions + 109
46 UIKitCore 0x0000000124f27b49 _UIGestureRecognizerSendActions + 295
47 UIKitCore 0x0000000124f26e9a -[UIGestureRecognizer _updateGestureForActiveEvents] + 760
48 UIKitCore 0x0000000124f1898b _UIGestureEnvironmentUpdate + 2745
49 UIKitCore 0x0000000124f17e94 -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:] + 467
50 UIKitCore 0x0000000124f17c1c -[UIGestureEnvironment _updateForEvent:window:] + 225
51 UIKitCore 0x00000001253cf273 -[UIWindow sendEvent:] + 4479
52 UIKitCore 0x00000001253a96cd -[UIApplication sendEvent:] + 356
53 UIKit 0x0000000146d450b8 -[UIApplicationAccessibility sendEvent:] + 85
54 UIKitCore 0x00000001254344ca __dispatchPreprocessedEventFromEventQueue + 7628
55 UIKitCore 0x000000012543768e __handleEventQueueInternal + 6584
56 UIKitCore 0x000000012542df31 __handleHIDEventFetcherDrain + 88
57 CoreFoundation 0x000000011b6a9c91 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
58 CoreFoundation 0x000000011b6a9bbc __CFRunLoopDoSource0 + 76
59 CoreFoundation 0x000000011b6a9394 __CFRunLoopDoSources0 + 180
60 CoreFoundation 0x000000011b6a3f8e __CFRunLoopRun + 974
61 CoreFoundation 0x000000011b6a38a4 CFRunLoopRunSpecific + 404
62 GraphicsServices 0x000000011ec67bbe GSEventRunModal + 139
63 UIKitCore 0x0000000125390964 UIApplicationMain + 1605
64 cmorq 0x00000001039249fb main + 75
65 libdyld.dylib 0x000000011d2281fd start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'View has lost track of its superview, most likely through unsupported use of CALayer API on the view's layer. If this isn't a crash yet, it will be in the near future.
Problem view: <UILabel: 0x7f94d74b7d00; frame = (0 0; 275 45); text = '------'; userInteractionEnabled = NO; layer = <_UILabelLayer: 0x600002fd24e0>>
Expected parent: <OTPTextField: 0x7f94d7a97a00; baseClass = UITextField; frame = (20 171; 275 45); text = ''; opaque = NO; autoresize = RM+BM; tintColor = UIExtendedGrayColorSpace 0 0; gestureRecognizers = <NSArray: 0x60000029d7d0>; layer = <CALayer: 0x600000d204e0>>
Break on UIViewReportBrokenSuperviewChain to debug.'
terminating with uncaught exception of type NSException
CoreSimulator 757.5 - Device: iPhone 11 Pro (88505450-FEB4-46FE-8116-FCA3A3296B3E) - Runtime: iOS 13.7 (17H22) - DeviceType: iPhone 11 Pro```
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.