Search Issue Tracker
Fixed
Votes
1
Found in [Package]
2021.1.0b3
Issue ID
1309487
Regression
Yes
Tests no longer run after upgrade to 2021.1.0b3. They produce NativeArray and URP2d errors
The tests in this project pass in full using Unity 2020.2.3f1. If the project is opened with 2021.1.0b3 all the tests fail and spew NativeArray and lighting2D URP errors to the console. Looks like the errors are related to 2D URP lighting. Let me know if this is not the case.
Steps to reproduce
- git clone git@github.cds.internal.unity3d.com:unity/internal-perfect-pixel-adventures.git -b 2020.2
- Open the project in Unity 2021.1.0b3
- Open the test runner
- Run all tests
Notice Issue >> Test runner reports all tests fail. Numerous errors are spewed to the log.
Tested Platform: macOS 11.1
Reproduced on Unity 2021.1.0b3, 2021.1.0b1
Working on Unity 2020.2.0b3, 2021.1.0a1
Errors produced
IndexOutOfRangeException: Index 1024 is out of range of '1024' Length.
Unity.Collections.NativeArray`1[T].FailOutOfRangeError (System.Int32 index) (at /Users/bokken/buildslave/unity/build/Runtime/Export/NativeArray/NativeArray.cs:286)
Unity.Collections.NativeArray`1[T].CheckElementWriteAccess (System.Int32 index) (at /Users/bokken/buildslave/unity/build/Runtime/Export/NativeArray/NativeArray.cs:142)
Unity.Collections.NativeArray`1[T].set_Item (System.Int32 index, T value) (at /Users/bokken/buildslave/unity/build/Runtime/Export/NativeArray/NativeArray.cs:161)
UnityEngine.Experimental.Rendering.Universal.LightUtility.GenerateShapeMesh (UnityEngine.Experimental.Rendering.Universal.Light2D light, UnityEngine.Vector3[] shapePath, System.Single falloffDistance) (at /Applications/Unity/Hub/Editor/2021.1.0b3/Unity.app/Contents/Resources/PackageManager/BuiltInPackages/com.unity.render-pipelines.universal/Runtime/2D/LightUtility.cs:326)
UnityEngine.Experimental.Rendering.Universal.Light2D.UpdateMesh (System.Boolean forceUpdate) (at /Applications/Unity/Hub/Editor/2021.1.0b3/Unity.app/Contents/Resources/PackageManager/BuiltInPackages/com.unity.render-pipelines.universal/Runtime/2D/Light2D.cs:244)
UnityEngine.Experimental.Rendering.Universal.Light2D.Awake () (at /Applications/Unity/Hub/Editor/2021.1.0b3/Unity.app/Contents/Resources/PackageManager/BuiltInPackages/com.unity.render-pipelines.universal/Runtime/2D/Light2D.cs:292)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Add comment