Search Issue Tracker
Fixed in 12.0.0
Votes
0
Found in [Package]
11.0.0
Issue ID
1320535
Regression
No
[2D][URP] Increasing Freeform Light 2D Falloff greater than 53 causes errors in console
[2D][URP] Increasing Freeform Light 2D Falloff greater than 53 causes errors in console
Repro steps:
1. Open SampleScene in attached "2DLight_Falloff_Bug_2" project
2. Observe Light 2D in scene, increase its Falloff in inspector to any value greater than 53, observe IndexOutOfRange exception in console
IndexOutOfRangeException: Index 1024 is out of range of '1024' Length.
Unity.Collections.NativeArray`1[T].FailOutOfRangeError (System.Int32 index) (at <382795dbdc064c2c97e30b4fbf6ba703>:0)
Unity.Collections.NativeArray`1[T].CheckElementWriteAccess (System.Int32 index) (at <382795dbdc064c2c97e30b4fbf6ba703>:0)
Unity.Collections.NativeArray`1[T].set_Item (System.Int32 index, T value) (at <382795dbdc064c2c97e30b4fbf6ba703>: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@12.0.0/Runtime/2D/LightUtility.cs:334)
UnityEngine.Experimental.Rendering.Universal.Light2D.UpdateMesh (System.Boolean forceUpdate) (at Library/PackageCache/com.unity.render-pipelines.universal@12.0.0/Runtime/2D/Light2D.cs:244)
UnityEngine.Experimental.Rendering.Universal.Light2D.LateUpdate () (at Library/PackageCache/com.unity.render-pipelines.universal@12.0.0/Runtime/2D/Light2D.cs:318)
Expected result: Falloff increases gracefully without errors in console
Actual result: Errors in console if Falloff increases above 53
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
- Shader warnings are being thrown after building Mixed Reality Template
- Error is thrown when entering play mode with build profiles docked and standalone profiler open
- The Player hangs when activating another maximized application
- [XR] Input is not registered and headset view is headlocked after entering Play Mode with Meta XR SDK on 6000.0.0b16 and higher
- Crash on RtlLookupFunctionEntry when using 10 or more GameObjects with Articulation Body component in the scene
Resolution Note (fix version 12.0.0):
Fix for this issue available on Unity 2021.2.0b14 and above