Search Issue Tracker

Fixed

Fixed in 2022.2.3f1, 2023.1.0b4, 2023.2.0a1

Votes

0

Found in

2022.2.0b4

2023.1.0a8

2023.2.0a1

Issue ID

UUM-8802

Regression

Yes

Attempting to edit bone data via TextFields in SkinningEditor leads to ArgumentOutOfRangeException

--

-

*Repro:*
1: Create a new project
2: Import a .psb sprite
3: Open it in Sprite Editor and navigate to the Skinning Editor
4: Create some bones on the sprite
5: Switch to EditBone, and select one of the created bones
6: Attempt to edit the values in any of the following TextFields: Name / PositionX&Y / Rotation

*Expected result:*
Values can be edited and saved

*Current result:*
ArgumentOutOfRangeException error is thrown in console

*Can reproduce the error with:* Unity 2023.1.0a3.386, Unity 2023.1.0a1.66, Unity 2022.2.0a16.2406

*Cannot reproduce the error with:* Unity 2022.2.0a10.1539

*Error details:*
{noformat}
ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: startIndex
System.String.Insert (System.Int32 startIndex, System.String value) (at <5300661a2d494f21a21307977ce92afb>:0)
UnityEngine.TextEditingUtilities.ReplaceSelection (System.String replace) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/TextEditingUtilities.cs:508)
UnityEngine.TextEditingUtilities.Insert (System.Char c) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/TextEditingUtilities.cs:517)
UnityEngine.UIElements.KeyboardTextEditorEventHandler.OnKeyDown (UnityEngine.UIElements.KeyDownEvent evt) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Controls/InputField/KeyboardTextEditor.cs:133)
UnityEngine.UIElements.KeyboardTextEditorEventHandler.ExecuteDefaultActionAtTarget (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Controls/InputField/KeyboardTextEditor.cs:36)
UnityEngine.UIElements.TextEditingManipulator.ExecuteDefaultActionAtTarget (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Text/TextEditingManipulator.cs:56)
UnityEngine.UIElements.TextElement.ExecuteDefaultActionAtTarget (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/TextElementEdition.cs:183)
UnityEngine.UIElements.CallbackEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Events/EventHandler.cs:281)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtCurrentTargetAndPhase (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Events/EventHandler.cs:189)
UnityEngine.UIElements.CallbackEventHandler.UnityEngine.UIElements.IEventHandler.HandleEvent (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Events/EventHandler.cs:206)
UnityEngine.UIElements.EventDispatchUtilities.HandleEventAcrossPropagationPath (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Events/IEventDispatchingStrategy.cs:157)
UnityEngine.UIElements.EventDispatchUtilities.PropagateEvent (UnityEngine.UIElements.EventBase evt) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Events/IEventDispatchingStrategy.cs:90)
UnityEngine.UIElements.KeyboardEventDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Events/KeyboardEventDispatchingStrategy.cs:35)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/EventDispatcher.cs:422)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/EventDispatcher.cs:363)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/EventDispatcher.cs:229)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/Panel.cs:447)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:476)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:205)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:74)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/UIElementsUtility.cs:28)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)
{noformat}

  1. Resolution Note (fix version 2023.2.0a1):

    Fixed ArgumentOutOfRangeException exception occurring when editing a text element after its text was changing when it was disabled.

  2. Resolution Note (fix version 2023.1.0b4):

    Fixed ArgumentOutOfRangeException exception occurring when editing a text element after its text was changing when it was disabled

  3. Resolution Note (fix version 2022.2.3f1):

    Fixed ArgumentOutOfRangeException exception occurring when editing a text element after its text was changing when it was disabled.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.