Search Issue Tracker

Fixed

Fixed in 2022.1.24f1, 2022.2.0b10, 2023.1.0a1, 2023.2.0a1

Votes

0

Found in

2022.1.10f1

2022.2.0b2

2023.1.0a4

2023.2.0a1

Issue ID

UUM-9627

Regression

Yes

ArgumentOutOfRangeException errors are thrown in Console when changing titleContent of GameView to something other than "Game"

--

-

How to reproduce:
1. Open the attached project ("GameViewTitleBug.zip")
2. Execute the Window -> SetGameViewTitle menu item

Expected result: GameView title is changed to "Foo"
Actual result: ArgumentOutOfRangeException errors are thrown in the Console

Reproducible with: 2022.1.0a16, 2022.1.10f1, 2022.2.0b2, 2023.1.0a4
Not reproducible with: 2020.3.37f1, 2021.3.7f1, 2022.1.0a15

Reproducible on:
macOS 12.4 (Intel)

Error:
ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <9cf6c1c0803c4c5e98f24fe3e7e88033>:0)
UnityEditor.GameView.DoToolbarGUI () (at /Users/bokken/buildslave/unity/build/Editor/Mono/GameView/GameView.cs:697)
UnityEditor.GameView.OnGUI () (at /Users/bokken/buildslave/unity/build/Editor/Mono/GameView/GameView.cs:1030)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition) (at /Users/bokken/buildslave/unity/build/Editor/Mono/HostView.cs:442)
UnityEditor.DockArea.DrawView (UnityEngine.Rect dockAreaRect) (at /Users/bokken/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:387)
UnityEditor.DockArea.OldOnGUI () (at /Users/bokken/buildslave/unity/build/Editor/Mono/GUI/DockArea.cs:378)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at /Users/bokken/buildslave/unity/build/ModuleOverrides/com.unity.ui/Core/IMGUIContainer.cs:351)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:189)

  1. Resolution Note (fix version 2022.2.0b10):

    Fixed in: 2022.2.0b10

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.