Search Issue Tracker
Duplicate
Votes
0
Found in [Package]
11.0.0
Issue ID
1318495
Regression
Yes
Universal 2D Lights IndexOutOfRangeException: Index 1024 is out of range of '1024' Length
When trying to run Test Runner cases I get a number of compile errors related to the package cache and URP 2D lights.
Steps to reproduce
- git clone git@github.cds.internal.unity3d.com:unity/internal-perfect-pixel-adventures.git -b ImageProcessing
- Open in Unity 2021.1.0b8
- Open the test runner and select PlayMode
- Select the PlauMode > MainMenu Tests
- Run selected
Notice issue >> compile errors in the console
IndexOutOfRangeException: Index 1024 is out of range of '1024' Length.
Unity.Collections.NativeArray`1[T].FailOutOfRangeError (System.Int32 index) (at <7e29200c9b7940d493376d98d05bbc8d>:0)
Unity.Collections.NativeArray`1[T].CheckElementWriteAccess (System.Int32 index) (at <7e29200c9b7940d493376d98d05bbc8d>:0)
Unity.Collections.NativeArray`1[T].set_Item (System.Int32 index, T value) (at <7e29200c9b7940d493376d98d05bbc8d>:0)
UnityEngine.Experimental.Rendering.Universal.LightUtility.GenerateShapeMesh (UnityEngine.Experimental.Rendering.Universal.Light2D light, UnityEngine.Vector3[] shapePath, System.Single falloffDistance) (at Library/PackageCache/com.unity.render-pipelines.universal@11.0.0/Runtime/2D/LightUtility.cs:326)
UnityEngine.Experimental.Rendering.Universal.Light2D.UpdateMesh (System.Boolean forceUpdate) (at Library/PackageCache/com.unity.render-pipelines.universal@11.0.0/Runtime/2D/Light2D.cs:244)
UnityEngine.Experimental.Rendering.Universal.Light2D.Awake () (at Library/PackageCache/com.unity.render-pipelines.universal@11.0.0/Runtime/2D/Light2D.cs:292)
Assertion failed
UnityEngine.Experimental.Rendering.Universal.Light2D:OnDisable () (at Library/PackageCache/com.unity.render-pipelines.universal@11.0.0/Runtime/2D/Light2D.cs:309)
Note: I vaguely remember posting this before but I can't find anything in Fogbugs. Apologies if duplicate
Reproducible: Windows, URP 11.0.0, 2021.1.0b8, 2021.1.0b2
Not Reproducible: Windows, URP 10.3.2, 2020.2.7f1
Images Attached
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
This is a duplicate of issue #1309487