Search Issue Tracker
Active
Under Consideration for 6000.0.X, 6000.2.X, 6000.3.X, 6000.4.X
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
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Frame Debugger On” text color not maintained across different Editor Themes in toolbar
- Rendering artefacts appear in the Game view window when maximizing/minimizing Inspector window and Frame Debugger is Enabled
- Threads dropdown in the Profiler is not scrollable even when not all options in the list are visible
- Memory leak when a lot of Particle Systems instantiated while Profiler is open
- "ArgumentOutOfRangeException" error is thrown when trying to delete letters from an RTL TextField when using the Advanced Text Generator
Add comment