decentraland / decentraland/unity-explorer

System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.

Open
#9,528 3 comments 0 reactions 0 assignees View on GitHub
1-high bug duplicate sentry ui
Dominant language
C#
Stars
23
Forks
17
Avg merge
2d 16h
Merged PRs (30d)
101

Description

Sentry Issue: [UNITY-EXPLORER-PJR](https://decentraland.sentry.io/issues/7642799339/)

```
System.ArgumentOutOfRangeException: startIndex cannot be larger than length of string.
Parameter name: startIndex
File "mscorlib__1.cpp", line 32983, in Substring
File "UnityEngine.TextCoreTextEngineModule.cpp", line 5536, in DeleteSelection
File "UnityEngine.TextCoreTextEngineModule.cpp", line 5568, in ReplaceSelection
File "UnityEngine.TextCoreTextEngineModule.cpp", line 5693, in Insert
File "UnityEngine.UIElementsModule__2.cpp", line 32362, in OnKeyDown
...
(22 additional frame(s) were not displayed)
```
This issue was automatically created by Sentry via [Explorer Alpha Github Issue Creation](https://sentry.io/organizations/decentraland/monitors/alerts/3130340/)

Contributor guide

Open the contributing guide

Research direction

Start with the linked Sentry issue and its stack trace, then inspect the Unity UI Toolkit input path around OnKeyDown, Insert, ReplaceSelection, and DeleteSelection. Reproduce the reported text-editing failure if possible and confirm that the ArgumentOutOfRangeException no longer occurs; the issue does not name a project file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.