Search Issue Tracker
Fixed in 5.4.0
Votes
0
Found in
5.3.1p2
Issue ID
762080
Regression
No
[UWP][WSA][WP81] Deleting text from input field throws ArgumentOutOfRange exception
Happens on UWP, WSA, WP 8.1 platforms, when using touchscreen keyboard. Reproducible on tablets and phones with touch screens.
Reproducible on 5.2, 5.3, 5.4 versions.
Repro steps:
1. Create a project with UI input field.
2. Build to UWP OR WSA OR WP 8.1.
3. Deploy project on touchscreen device.
4. With touch select the input field. Touchscreen keyboard appears on the screen. Type in some text and delete it with backspace key on touchscreen keyboard.
---
Error appears:
A first chance exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
ArgumentOutOfRangeException: Index and count must refer to a location within the string.
Parameter name: count
at System.String.Remove(Int32 startIndex, Int32 count)
at UnityEngine.UI.InputField.Backspace()
at UnityEngine.UI.InputField.KeyPressed(Event evt)
at UnityEngine.UI.InputField.OnUpdateSelected(BaseEventData eventData)
at UnityEngine.EventSystems.ExecuteEvents.Execute(IUpdateSelectedHandler handler, BaseEventData eventData)
at UnityEngine.EventSystems.ExecuteEvents.Execute[T](GameObject target, BaseEventData eventData, EventFunction`1 functor)
(Filename: <Unknown> Line: 0)
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
- Missing Render Feature "Full Screen Pass Render Feature" in any “Universal Renderer Data” asset when upgrading from 2022.3
- Inconsistent ParticleSystemVertexStream.PercentageAlongTrail data range in Trail Texture Modes except "Stretch"
- The Graph Debug Window can be right clicked through and the Node Workspace is manipulated instead
- [Linux] Top left corner of the screen is unresponsive when the Editor recompiles
- [Android] [Vulkan] Cubes stuck on the first few frames of rotation and application flickering when an Overlay Camera is added to the Camera Stack with MSAA enabled
Nguyen Dinh Loc
Jun 03, 2016 00:13
sorry, unknown the way to solve
Nguyen Dinh Loc
Jun 03, 2016 00:12
I also have this problem, but I known the way to solve them.