Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2019.4.X
Votes
0
Found in
2019.3.0a3
2019.3.10f1
2020.1
2020.2
Issue ID
1247399
Regression
Yes
[Mobile] Selecting text from Input Field throws exceptions when Hide Mobile Input is enabled
Reproduction steps:
1. Import the provided custom package "Selection.unitypackage"
2. In the Project window under the "Scenes" folder open "SampleScene.unity"
3. Build for Android
4. Tap on the Input field and type "asdasd"
5. Select the text
Expected result: when selecting text from an Input Field exception is not thrown
Actual result: when selecting text from an Input Field exception is thrown (see attached "InputFieldSelection.mp4)
Reproduces on: 2019.3.0a3, 2019.3.15f1, 2020.1.0b10, 2020.2.0a12
Does not reproduce on: 2018.4.23f1, 2019.3.0a2
Reproduces on these devices:
N/A, Samsung Galaxy S9 (SM-G960F), Android 8.0.0, CPU: Exynos 9 Series 9810, GPU: Mali-G72
VLNQA00313, Huawei Y6 II Compact (HUAWEI LYO-L01), Android 5.1, CPU: MediaTek MT6735, GPU: Mali-T720
VLNQA00140, Samsung Galaxy S4 (GT-I9505), Android 5.0.1, CPU: Snapdragon S4 Plus MSM8960, GPU: Adreno (TM) 320
VLNQA00160 iPhone 6S iOS 13.3.1
Notes:
-Issue does not reproduce when Hide Mobile Input is disabled
-Reproduce on Mono and IL2CPP
-Mono Exception message
ArgumentOutOfRangeException: Selection is out of range.
Parameter name: selection
at UnityEngine.TouchScreenKeyboard.set_selection (UnityEngine.RangeInt value) [0x00056] in /Users/builduser/buildslave/unity/build/Runtime/Export/TouchScreenKeyboard/TouchScreenKeyboard.bindings.cs:291
at UnityEngine.UI.InputField.LateUpdate () [0x002e3] in C:\Program Files\2019.3\2019.3.10f1_5968d7f82152\Editor\Data\Resources\PackageManager\BuiltInPackages\com.unity.ugui\Runtime\UI\Core\InputField.cs:1370
(Filename: /Users/builduser/buildslave/unity/build/Runtime/Export/TouchScreenKeyboard/TouchScreenKeyboard.bindings.cs Line: 291)
-IL2CPP Exception message
Unity 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
(Filename: currently not available on il2cpp Line: -1)
Comments (1)
-
nekokiller2021
Sep 13, 2021 05:14
still happend on 2019.4.23f1
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Incorrect Shader keyword activation for Shadows when no Light is present in URP
- Editor freezes when loading a specific AssetBundle
- WebGPU builds with Multithreading enabled crash on Safari
- Set as Value in UI Builder doesn't work across all properties.
- Calculating time durations in RenderDoc with DX12 causes 'Device Lost error' popup
Resolution Note (fix version 2020.2):
Fixed in 2020.2.0a19
Resolution Note (fix version 2019.4):
Fixed in 2019.4.18f1