Quantcast
Channel: Questions in topic: "crash"
Viewing all articles
Browse latest Browse all 2383

iOS crash while selecting text within an InputFied

$
0
0
Hello everyone. Just having a consistent crash in **iOS (iPhone)** built with **Unity 2019.3.9f1** Repro steps: - Tap on an **InputField** (**Touchkeyboard** shows up) - Type something - Try selecting the entire text or just a letter by touching/holding/dragging over the InputField This is the crash message: ArgumentOutOfRangeException: Selection is out of range. Parameter name: selection at UnityEngine.TouchScreenKeyboard.set_selection (UnityEngine.RangeInt value) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.UI.InputField.LateUpdate () [0x00000] in <00000000000000000000000000000000>:0 UnityEngine.UnhandledExceptionHandler:PrintException(String, Exception) UnityEngine.UnhandledExceptionHandler:HandleUnhandledException(Object, UnhandledExceptionEventArgs) System.UnhandledExceptionEventHandler:Invoke(Object, UnhandledExceptionEventArgs) (Filename: currently not available on il2cpp Line: -1) I read about a similar crash while using TMP here: [https://issuetracker.unity3d.com/issues/textmeshpro-inputfield-throws-argumentoutofrangeexception-when-emptied-with-hide-mobile-input-enabled][1] But I'm using **UnityEngine.UI.InputField** and not TMP. I am using the InputField property *Hide Mobile Input = true* The crash only happens in an iOS device, not in the Editor Any help would be useful, thanks! [1]: https://issuetracker.unity3d.com/issues/textmeshpro-inputfield-throws-argumentoutofrangeexception-when-emptied-with-hide-mobile-input-enabled

Viewing all articles
Browse latest Browse all 2383

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>