Search Issue Tracker

Won't Fix

Votes

0

Found in [Package]

1.0.0-pre.6

Issue ID

AIWFB-24

Regression

No

Entering random numbers in Custom Seed field throws ArgumentOutOfRangeException error

Package: AI Generators

-

How to reproduce:
1. Create a new project and install the "AI Generators" package
2. In the Project window, right-click -> Create -> 2D -> Generate Sprite
3. In Options > enable Custom Seed
4. Start typing random numbers

Actual results: Error is thrown ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: startIndex
Expected results: No errors, limited size of numbers can be put in field

Reproducible with: AI Generators 1.0.0-pre.6 (6000.2.0a10)

Reproducible on: Windows 11
Not reproducible on: No other environment tested

Full error:
{code:java}
ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: startIndex
System.String.Insert (System.Int32 startIndex, System.String value) (at <fa645a61d2b74251bf1d0456b45056e5>:0)
UnityEngine.TextEditingUtilities.ReplaceSelection (System.String replace) (at <a25e427dce4d4ec98847b1aec292a590>:0)
UnityEngine.TextEditingUtilities.Insert (System.Char c) (at <a25e427dce4d4ec98847b1aec292a590>:0)
UnityEngine.UIElements.KeyboardTextEditorEventHandler.OnKeyDown (UnityEngine.UIElements.KeyDownEvent evt) (at <58863c9beef94fa587c116b6288a6f07>:0)
UnityEngine.UIElements.KeyboardTextEditorEventHandler.HandleEventBubbleUp (UnityEngine.UIElements.EventBase evt) (at <58863c9beef94fa587c116b6288a6f07>:0)
UnityEngine.UIElements.TextEditingManipulator.HandleEventBubbleUp (UnityEngine.UIElements.EventBase evt) (at <58863c9beef94fa587c116b6288a6f07>:0)
UnityEngine.UIElements.TextElement.HandleEventBubbleUp (UnityEngine.UIElements.EventBase evt) (at <58863c9beef94fa587c116b6288a6f07>:0)
UnityEngine.UIElements.EventDispatchUtilities.HandleEventAcrossPropagationPath (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.VisualElement target, System.Boolean isCapturingTarget) (at <58863c9beef94fa587c116b6288a6f07>:0)
UnityEngine.UIElements.EventDispatchUtilities.DispatchToFocusedElementOrPanelRoot (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at <58863c9beef94fa587c116b6288a6f07>:0)
UnityEngine.UIElements.KeyboardEventBase`1[T].Dispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <58863c9beef94fa587c116b6288a6f07>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel) (at <58863c9beef94fa587c116b6288a6f07>:0)
UnityEngine.UIElements.EventDispatcher.Dispatch (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.BaseVisualElementPanel panel, UnityEngine.UIElements.DispatchMode dispatchMode) (at <58863c9beef94fa587c116b6288a6f07>:0)
UnityEngine.UIElements.BaseVisualElementPanel.SendEvent (UnityEngine.UIElements.EventBase e, UnityEngine.UIElements.DispatchMode dispatchMode) (at <58863c9beef94fa587c116b6288a6f07>:0)
UnityEngine.UIElements.UIElementsUtility.DoDispatch (UnityEngine.UIElements.BaseVisualElementPanel panel) (at <58863c9beef94fa587c116b6288a6f07>:0)
UnityEngine.UIElements.UIElementsUtility.UnityEngine.UIElements.IUIElementsUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& eventHandled) (at <58863c9beef94fa587c116b6288a6f07>:0)
UnityEngine.UIElements.UIEventRegistration.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr) (at <58863c9beef94fa587c116b6288a6f07>:0)
UnityEngine.UIElements.UIEventRegistration+<>c.<.cctor>b__1_2 (System.Int32 i, System.IntPtr ptr) (at <58863c9beef94fa587c116b6288a6f07>:0)
UnityEngine.GUIUtility.ProcessEvent (System.Int32 instanceID, System.IntPtr nativeEventPtr, System.Boolean& result) (at <a25e427dce4d4ec98847b1aec292a590>:0)
{code}

  1. Resolution Note:

    There are no fixes planned for this Bug

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.