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
-
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]
-
fidojones
Aug 28, 2023 17:48
Same error in 2022.3.8f1
-
Pluton3000
Aug 18, 2023 13:47
I am getting a similar error with Unity 2022.3.7f1
-
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.
-
Efif
Jun 09, 2023 14:32
I am getting a similar error with Unity 2023.1.0b20.
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
- Animation Clip with Legacy enabled does not play when Time.timeScale is set to 0 despite Update mode set to "Unscaled time"
- Rename is enabled on subfolder empty space - "Can't rename to empty name" warning
- SamplerState Property Missing Anisotropic Filtering
- Visual glitches when using Handles API
- The RGBA color values are inconsistent when comparing two identical colors set in the Inspector
Resolution Note:
Can not reproduce