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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
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