Search Issue Tracker
Fixed
Fixed in 2021.3.19f1, 2022.2.6f1, 2023.1.0b3, 2023.2.0a1
Votes
0
Found in
2021.3.12f1
2022.1.20f1
2022.2.0b11
2023.1.0a14
2023.2.0a1
Issue ID
UUM-17546
Regression
No
Crash on "QueryComponentByType" when entering Play Mode if setting "useInstancing" to true in "DetailPrototype"
How to reproduce:
1. Open the attached project “Terrain.zip”
2. Open the “SampleScene” Scene (Assets > Scenes > SampleScene)
3. Enter Play Mode and observe the result
Expected result: No crash
Actual result: Crash
Reproducible with: 2021.2.0a1, 2021.3.12f1, 2022.1.20f1, 2022.2.0b11, 2023.1.0a14
Could not test with: 2020.3.40f1 (useInstancing introduced in 2021.2)
Reproduced on: macOS 12.4 (Intel)
Notes:
- Not reproducible if setting “useInstancing” to false in the “TestDetailCrash.cs” script
- Reproducible in the Editor and in the macOS Standalone Player
Stack trace:
#0 0x0000010dc25d04 in GameObject::QueryComponentByType(Unity::Type const*) const
#1 0x0000010ec09847 in DetailDatabase::RefreshPrototypesStep1(Texture2D*)
#2 0x0000010ec0907d in DetailDatabase::RefreshPrototypes()
#3 0x0000010ec0aeee in DetailDatabase::SetDetailPrototypes(dynamic_array<DetailPrototype, 0ul> const&)
#4 0x0000010ec64e21 in TerrainDataScriptingInterface::SetDetailPrototypes(TerrainData&, ScriptingArrayPtr, ScriptingExceptionPtr)
#5 0x0000010d954b35 in TerrainData_Set_Custom_PropDetailPrototypes(ScriptingBackendNativeObjectPtrOpaque, ScriptingBackendNativeArrayPtrOpaque)
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
- [Tile Palette] Sprites not rendering when brush tool "Paint a filled box with active brush" is used for the first time
- Adding available Nodes with longer names in Fragment Context window overflow Fragment Context window in Shader Graph
- "Layer Palette Profile" Asset is automatically applied to the second Terrain but doesn't load any layers
- "Terrain Tools" shortcut conflicts with the Overlays shortcut by default
- Longer Shader Graph Property Reference names breaks VFX Graph Output Particle Node
Resolution Note (fix version 2023.2.0a1):
Fixed in: 2023.2.0a1
Resolution Note (fix version 2023.1.0b3):
Fixed in: 2023.1.0b3
Resolution Note (fix version 2022.2.6f1):
Fixed in: 2022.2.6f1
Resolution Note (fix version 2021.3.19f1):
Fixed in: 2021.3.19f1