Search Issue Tracker
Fixed in 13.1.2
Votes
0
Found in [Package]
2022.1.0a16
Issue ID
1383730
Regression
Yes
[HDRP] ArgumentOutOfRangeException thrown after creating new Area Light object after opening ShaderGraph
How to reproduce:
1. Create new HDRP project
2. Create new Shadergraph via Project tab and open it
3. In Hierarchy create new Area Light
4. Observe console
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 <96f838c04c564175a85f709a665a953d>:0)
UnityEngine.Rendering.HighDefinition.HDLightRenderDatabase.EditLightDataAsRef (UnityEngine.Rendering.HighDefinition.HDLightRenderEntity& entity) (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Runtime/Lighting/Light/HDLightRenderDatabase.cs:96)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.ComputeLightType (UnityEngine.Light attachedLight) (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Runtime/Lighting/Light/HDAdditionalLightData.Types.cs:514)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.get_type () (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Runtime/Lighting/Light/HDAdditionalLightData.Types.cs:233)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.UpdateBounds () (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Runtime/Lighting/Light/HDAdditionalLightData.cs:3153)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.OnValidate () (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Runtime/Lighting/Light/HDAdditionalLightData.cs:2851)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.Migrate () (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Runtime/Lighting/Light/HDAdditionalLightData.Migration.cs:189)
UnityEngine.Rendering.HighDefinition.HDAdditionalLightData.Awake () (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Runtime/Lighting/Light/HDAdditionalLightData.cs:2955)
UnityEditor.Rendering.HighDefinition.HDLightEditor:OnEnable() (at Library/PackageCache/com.unity.render-pipelines.high-definition@13.1.1/Editor/Lighting/HDLightEditor.cs:42)
Reproduced with: 2022.1.0a16
Does not reproduce with: 2022.1.0a15
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Code runs slower when using a cached exception instance compared to creating a new one
- Broken UI in Default Preset Add Section of "Preset Manager" window
- [iOS] The Player freezes when closing the Notification Center and quickly swiping down from top
- Crash on Texture2D:SetPixelImpl when rapidly calling Texture2D.Apply()
- Graph Lines are not rendered when using Experimental GraphView or GridBackground
Add comment