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
- [Scene View][Ubuntu] Prefab mode UI ghosting in HDRP
- Deleting AudioMixer asset throws MissingReferenceException and breaks the Audio Mixer window
- Crash on ScheduleGenerateTilingShape when modifying PolygonCollider2D path count and setting path vertices
- Crash when a scene is created with LocalPhysicsMode::Physics3D
- [HDRP] Light doesn't bounce off terrains
Add comment