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
Comments (5)
-
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
- UI Builder “Fit viewport” button zooms to fit Canvas instead of the selected Element
- Crash on DrawGUITexture when rendering scene view window in a specific project
- [Android] Light2D with Light type "Spot" does not work in the Player on some Pixel devices
- [Android] Loading the asset using an old reference returns null even when the "FormerlySerializedAs" attribute is used
- Crash on ParticleSystemTrailGeometryJob::RenderJobCommon when changing trail Mode change with a large particle count
Resolution Note:
Can not reproduce