Search Issue Tracker
Fixed
Fixed in 6000.0.59f1, 6000.2.7f1, 6000.3.0b4, 6000.4.0a1
Votes
1
Found in
6000.0.57f1
6000.2.4f1
6000.3.0b1
6000.4.0a1
Issue ID
UUM-116909
Regression
Yes
"ArgumentOutOfRangeException" error is thrown when trying to delete letters from an RTL TextField when using the Advanced Text Generator
How to reproduce:
1. Create and open a new project
2. Open Edit → Project Settings → UI Toolkit and enable the “Advanced Text Generator“
3. Create a UI Document in the Project tab and open it
4. Add a TextField Control to the Hierarchy and Enable “RTL” Language Direction attribute and “Advanced“ in Text → Text Generator Type attribute
5. Save the changes
6. Create a new UI Toolkit → UI Document GameObject in the Scene and attach the UI Document to the required field in the Inspector
7. Enter Play Mode
8. Type anything into the TextField, navigate to the middle of the string, then try to delete any character (either with the delete or backspace buttons)
9. Observe the Console
Expected result: Letters are deleted, no Console errors are thrown
Actual result: “ArgumentOutOfRangeException: Count cannot be less than zero“ is thrown in the Console, and letters are not deleted
Reproducible in: 6000.0.57f1, 6000.2.4f1, 6000.3.0b1
Not reproducible in: 6000.0.56f1
Reproduced on: Windows 11 Pro (24H2)
Not reproduced on: No other environment tested
Notes:
- If multiple letters are selected, they can be deleted
- If the caret is at the beginning of the string, it will not delete the letters, but it will not throw errors either
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
- Spring Joint shows only one anchor gizmo in Scene view when "Auto Configure Connected Anchor" is enabled
- Crash on _platform_memmove after entering large value in Graphics settings Preloaded Shaders field
- Disproportionally large impact on CPU frame time when writing to a rendering entity's LocalToWorld
- "Constant Force" Component numeric fields drift out of view while entering a really big value in the Inspector
- Scene view camera speed pop-up appears empty or cut off when Scene view is very narrow
Resolution Note (fix version 6000.4.0a1):
Fixed out of range issue when deleting with RTL text
Resolution Note (fix version 6000.3.0b4):
Fixed out of range issue when deleting with RTL text
Resolution Note (fix version 6000.2.7f1):
Fixed out of range issue when deleting with RTL text
Resolution Note (fix version 6000.0.59f1):
Fixed out of range issue when deleting with RTL text