Search Issue Tracker
Fixed in 1.2.x or higher
Votes
1
Found in [Package]
preview-1.1.0
Issue ID
1162170
Regression
No
Addressables - ArgumentOutOfRangeException occurs when attempting to give a profile a name with 0 characters
If you attempt to create a new Addressables profile with an empty name, an ArgumentOutOfRangeException occurs.
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <23c160f925be47d7a4fd083a3a62c920>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <23c160f925be47d7a4fd083a3a62c920>:0)
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <23c160f925be47d7a4fd083a3a62c920>:0)
UnityEditor.AddressableAssets.GUI.AddressableAssetSettingsInspector.OnInspectorGUI () (at Library/PackageCache/com.unity.addressables@1.1.0-preview/Editor/GUI/AddressableAssetSettingsInspector.cs:171)
UnityEditor.UIElements.InspectorElement+<CreateIMGUIInspectorFromEditor>c__AnonStorey1.<>m__0 () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorElement.cs:494)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
1. Open Unity
2. Open the attached project
3. In Project View, select Assets/AddressableAssetsData/AddressableAssetSettings.asset
4. In the Inspector, under Profiles, add a profile
5. When choosing a name for the profile, delete all the characters so the name is empty
6. Confirm the profile name
Expected Result:
No errors or exceptions occur in the console.
Actual Result:
An ArgumentOutOfRangeException occurs.
Tested on Windows.
Occurs on version preview-1.1.0, preview-1.0.0, preview-0.8.0
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
- Crash on __pthread_kill when entering Play mode
- Crash on tlsf_free when exiting Play Mode in a specific project
- Camera Solid Color is overwritten when injecting Custom Render Pass at 'RenderPassEvent.AfterRenderingPrePasses + 1'
- Shadows are not rendering when using the "On Demand" shadow update mode with GPU Resident Drawer and additional camera render texture
- "AVFoundationVideoMedia error while reading” error is thrown when streaming from a URL with a signed token in VideoPlayer
Resolution Note (fix version 1.2.x or higher):
UI has been redone and does not allow 0 length profile name.