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
- Lights on Renderer Features break when rendering at lower resolution with "Forward+" Rendering Path
- [Android] High GPU usage is reported when the device is rotated into landscape orientation and the application is Vsync bound
- Aspect ratio toolbar doesn’t have tooltip to display contextual help or information when hovering over it
- Particle System isn't playing in Play Mode when it's out of view in Scene view, Simulation Space is set to "World", and Culling mode is set to "Pause and Catch-up"
- [Android] GameObject not rendered when rendering is performed with the help of "BatchRendererGroup"
This is a duplicate of issue #1309487