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

Package: 2D Render Pipeline

-

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

Log in to post comment