Search Issue Tracker

Won't Fix

Votes

14

Found in

2022.3.0f1

Issue ID

UUM-36825

Regression

Yes

Error "ArgumentOutOfRangeException" thrown when creating a project using 3D (HDRP) Sample Scene

-

How to reproduce:
1. Create a new project using a 3D (HDRP) Sample Scene
2. When the project loads, observe the Console window

Expected results: No errors are thrown in the Console
Actual results: Error is thrown when the project loads "ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection."

Reproducible with: 2022.3.0f1, 2022.3.5f1, 2023.1.2f1
Not reproducible with: 2022.2.21f1

Full error message:
{code:java}
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 <f67bbaca809f45d99c92519300368493>:0)
System.Collections.ObjectModel.ReadOnlyCollection`1[T].get_Item (System.Int32 index) (at <f67bbaca809f45d99c92519300368493>:0)
UnityEngine.Rendering.HighDefinition.StaticLightingSky.InitComponentFromProfile[T] (T component, T componentFromProfile, System.Type type) (at ./Library/PackageCache/com.unity.render-pipelines.high-definition@14.0.7/Runtime/Sky/StaticLightingSky.cs:228)
UnityEngine.Rendering.HighDefinition.StaticLightingSky.UpdateCurrentStaticLightingVolumetricClouds () (at ./Library/PackageCache/com.unity.render-pipelines.high-definition@14.0.7/Runtime/Sky/StaticLightingSky.cs:286)
UnityEngine.Rendering.HighDefinition.StaticLightingSky.OnEnable () (at ./Library/PackageCache/com.unity.render-pipelines.high-definition@14.0.7/Runtime/Sky/StaticLightingSky.cs:323)

{code}
Notes: the error is clearable, but reproducible every time when creating a new project

  1. Resolution Note:

    Can not reproduce

Comments (5)

  1. ViktorMSc

    Sep 10, 2023 11:31

    If you just want to get rid of the error (to start debugging for example) you can disable the sky.

    Window > Rendering > Lighting > Environment > Static lighting sky => [None]

  2. fidojones

    Aug 28, 2023 17:48

    Same error in 2022.3.8f1

  3. Pluton3000

    Aug 18, 2023 13:47

    I am getting a similar error with Unity 2022.3.7f1

  4. Ghosthowl

    Aug 08, 2023 06:45

    I am also getting this error and have been since 2022. I am now on 2023.1.7f1 and it still hasn't been fixed.

  5. Efif

    Jun 09, 2023 14:32

    I am getting a similar error with Unity 2023.1.0b20.

Add comment

Log in to post comment