Search Issue Tracker

Fixed

Fixed in 2022.3.9f1, 2023.1.12f1, 2023.2.0b8, 2023.3.0a4

Won't Fix in 2021.3.X

Votes

5

Found in

2020.3.40f1

2021.3.11f1

2022.1.19f1

2022.2.0b10

2023.1.0a12

2023.2.0a1

2023.3.0a3

Issue ID

UUM-6763

Regression

No

IndexOutOfRangeException when generating Stack Camera

--

-

How to reproduce:
1. Create a new project
2. Create an Empty GameObject and attach the user's provided script to it
3. Observe the Console window

Expected result: No errors occur
Actual result: Error "IndexOutOfRangeException: Index was outside the bounds of the array." occurs

Reproducible with: 7.7.1 (2019.4.40f1), 10.9.0 (2020.3.35f1), 10.10.0 (2020.3.40f1), 12.1.7 (2021.3.11f1), 13.1.8 (2022.1.19f1), 14.0.3 (2022.2.0b10), 15.0.1 (2023.1.0a12)

Reproducible on: macOS (Intel) Monterey 12.3.1

Errors occured:
- NullReferenceException: Object reference not set to an instance of an object
Test.AddCameraToStack (UnityEngine.Camera camera, System.String stackedCameraName) (at Assets/Test.cs:38)
Test.Update () (at Assets/Test.cs:21)

- IndexOutOfRangeException: Index was outside the bounds of the array.
UnityEditor.Rendering.Universal.UniversalRenderPipelineSerializedCamera.Update () (at Packages/com.unity.render-pipelines.universal/Editor/Camera/UniversalRenderPipelineSerializedCamera.cs:113)
UnityEditor.Rendering.Universal.UniversalRenderPipelineCameraEditor.OnInspectorGUI () (at Packages/com.unity.render-pipelines.universal/Editor/Camera/UniversalRenderPipelineCameraEditor.cs:278)
UnityEditor.UIElements.InspectorElement <>c_{_}DisplayClass62_0.<CreateIMGUIInspectorFromEditor>b{_}_0 () (at <3f9c6d83c16c4d7f99a29803e42e00d2>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

  1. Resolution Note (2021.3.X):

    Thank you for reporting a bug to Unity.

    We have reviewed the issue carefully, and in this case the team is unable to prioritize fixing this bug. There are a number of reasons we make this decision, including the impact and severity of the issue across our user and customer base, and the possibility that future plans may solve the problem in a different way, or that a workaround for the bug may be available.

    Today we will be closing this case. Thank you again for taking the time to report this issue, and please let us know if there is anything else that changes the impact or severity of this issue.

Comments (1)

  1. lasse_unity117

    Sep 20, 2023 06:33

    So... why wont you fix it in 2021?

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.