CALayer position contains NaN: [nan 0].

I'm getting a crash on iOS 14.4.1 and other older versions when entering text into a UITextBox in my game. I tried disabling auto correct on the field and it seemed to make the issue occur less often, but it is not solving 100% of the cases. Does anyone know how to prevent this exception and turn off auto complete on the text field entirely? None of the call stack is actually my code other than main.

Update: I am already setting self.textInput.autocorrectionType = UITextAutocorrectionTypeNo;


0  CoreFoundation +0x125868 ___exceptionPreprocess
1  libobjc.A.dylib +0x6c4c  _objc_exception_throw
2  CoreFoundation +0x1e4a0  +[NSException raise:format:]
3  QuartzCore +0x16adb0     CA::Layer::set_position(CA::Vec2<double> const&, bool)
4  QuartzCore +0x16ace0     -[CALayer setPosition:]
5  QuartzCore +0x16a7b8     -[CALayer setFrame:]
6  UIKitCore +0x10f8184     -[UIView(Geometry) setFrame:]
7  UIKitCore +0x9b7038      -[UIKeyboardImpl updateAutocorrectPrompt:correctionRects:]
8  UIKitCore +0x9b6a54      -[UIKeyboardImpl updateAutocorrectPrompt:executionContext:]
9  UIKitCore +0x9d5274      ___56-[UIKeyboardScheduledTask handleDeferredTimerFiredEvent]_block_invoke
10 UIKitCore +0x9d57d8      -[UIKeyboardTaskEntry execute:]
11 UIKitCore +0x9d420c      -[UIKeyboardTaskQueue continueExecutionOnMainThread]
12 UIKitCore +0x9d518c      -[UIKeyboardScheduledTask handleDeferredTimerFiredEvent]
13 CoreFoundation +0x12a8f0 ___invoking___
14 CoreFoundation +0x1df4   -[NSInvocation invoke]
15 UIKitCore +0xfa5778      -[_UIActionWhenIdle invoke]
16 CoreFoundation +0xa0354  ___CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__
17 CoreFoundation +0x9a5c0  ___CFRunLoopDoObservers
18 CoreFoundation +0x9ab70  ___CFRunLoopRun
19 CoreFoundation +0x9a218  _CFRunLoopRunSpecific
20 GraphicsServices +0x3780 _GSEventRunModal
21 UIKitCore +0xbc8ee4      -[UIApplication _run]
22 UIKitCore +0xbce758      _UIApplicationMain
23 Wizard-of-Oz +0x20f8268  main (main.mm:38:19)
24 libdyld.dylib +0x16ac    _start
CALayer position contains NaN: [nan 0].
 
 
Q