Texture icon indicating copy to clipboard operation
Texture copied to clipboard

Crash on using UITextfield

Open binga58 opened this issue 4 years ago • 0 comments

iOS Version :- 15 and above. Texture - 3.1.0

We are wrapping a UITextField inside an ASDisplayNode as we have to use autofill OTP. But occasionally this approach is resulting in crash for ios 15 and above. Please help!!

Fatal Exception: NSInvalidArgumentException
-[NSCountableTextLocation compare:] receiving unmatching type (null)

Fatal Exception: NSInvalidArgumentException
0  CoreFoundation                 0x9904c __exceptionPreprocess
1  libobjc.A.dylib                0x15f54 objc_exception_throw
2  CoreFoundation                 0xf0180 __CFDictionaryCreateGeneric
**3  UIFoundation                   0x1cbfc -[NSCountableTextLocation compare:]**
4  UIFoundation                   0x2d900 -[NSTextViewportLayoutController layoutViewport]
5  UIKitCore                      0x174268 +[UIView(Animation) performWithoutAnimation:]
6  UIKitCore                      0x260b6c -[_UITextLayoutCanvasView layoutSubviews]
7  UIKitCore                      0x18ded8 -[UIView(CALayerDelegate) layoutSublayersOfLayer:]
8  QuartzCore                     0x3fe24 CA::Layer::layout_if_needed(CA::Transaction*)
9  QuartzCore                     0x32644 CA::Layer::layout_and_display_if_needed(CA::Transaction*)
10 QuartzCore                     0x46c6c CA::Context::commit_transaction(CA::Transaction*, double, double*)
11 QuartzCore                     0x4f560 CA::Transaction::commit()
12 QuartzCore                     0x31dac CA::Transaction::flush_as_runloop_observer(bool)
13 UIKitCore                      0x5432e0 _UIApplicationFlushCATransaction
14 UIKitCore                      0x7dd7d8 _UIUpdateSequenceRun
15 UIKitCore                      0xe57008 schedulerStepScheduledMainSection
16 UIKitCore                      0xe565f8 runloopSourceCallback
17 CoreFoundation                 0xbb020 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__
18 CoreFoundation                 0xcbce0 __CFRunLoopDoSource0
19 CoreFoundation                 0x6054 __CFRunLoopDoSources0
20 CoreFoundation                 0xb7f4 __CFRunLoopRun
21 CoreFoundation                 0x1f3b8 CFRunLoopRunSpecific
22 GraphicsServices               0x138c GSEventRunModal
23 UIKitCore                      0x5196a8 -[UIApplication _run]
24 UIKitCore                      0x2987f4 UIApplicationMain
25 MyApp                       0x1275c main + 18 (main.m:18)
26 ???                            0x10a3a1a24 (Missing)

binga58 avatar Jan 05 '22 07:01 binga58