Search Issue Tracker
Fixed in Any (fix is in Editor)
Votes
0
Found in [Package]
10.1.0
Issue ID
1321411
Regression
Yes
Crash on Terrain::UpdateSplatMaterials when removing Universal RP package with Terrain Lit material
How to reproduce:
1. Open the attached project from "URPpackageCrash.zip"
2. Open scene "PolarScene"
3. Using Package Manager, remove the "Universal RP" package
Expected result: Package is removed
Actual result: Unity crashes
Reproducible with: 2020.2.0b9, 2020.3.2f1, 2021.1.0f1, 2021.2.0a10 (Universal RP 10.1.0-12.0.0)
Not reproducible with: 2018.4.33f1, 2019.4.23f1, 2020.2.0b8 (Universal RP 7.0.0-10.0.0-preview.26)
First lines of stack trace:
0x00007ff6357151a9 (Unity) Terrain::UpdateSplatMaterials
0x00007ff63571fd8c (Unity) TerrainManager::CullAllTerrains
0x00007ff63443a27a (Unity) Camera::CustomCull
0x00007ff636657536 (Unity) Camera::RenderEditorCamera
0x00007ff636ee136c (Unity) Handles_CUSTOM_Internal_DrawCameraWithGrid
0x0000013f126377db (Mono JIT Code) (wrapper managed-to-native) UnityEditor.Handles:Internal_DrawCameraWithGrid
Notes:
1. Removing terrain "SnowGround" from Hierarchy resolves the issue
2. Seems to be related to the terrain's material, only reproduces with "Terrain Lit"
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version Any (fix is in Editor)):
Removed code that skipped initialization on null material.
FIxed in 2021.2.0a20
Resolution Note (fix version Any (fix is in Editor)):
Fixed in 2021.1.14f1
Resolution Note:
Fixed in 2020.3.14f1
PR here: https://ono.unity3d.com/unity/unity/pull-request/123468/_/2020.3/terrain/srpremovalcrash