Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2020.3.X, 2021.1.X
Votes
0
Found in
2018.4
2019.4.8f1
2021.1
Issue ID
1276785
Regression
No
Crash on Transform::CountNodesDeep when calling InstantiatePrefab and passing a Transform received from the Prefabs Component
How to reproduce:
1. Open the attached project (case-1276785.zip)
2. In the Project window select the 'Prefab' Asset
3. At the top of the Editor click 'Examples' -> 'Case 1276785'
Reproducible with: 2018.4.27f1, 2019.4.10f1, 2020.1.5f1, 2020.2.0b3, 2021.1.0a1
First lines of the stacktrace:
0x00007FF73F4C43B7 (Unity) Transform::CountNodesDeep
0x00007FF73F4CA7DB (Unity) Transform::RebuildTransformHierarchy
0x00007FF73E34750B (Unity) SynchronizeMeshRenderersAndMaterials
0x00007FF73E34740A (Unity) AssetHotreload
0x00007FF740D61CFC (Unity) AssetHotreload
0x00007FF740DF346B (Unity) RefreshInternalV2
Notes
1. The error message 'Cyclic nesting detected' is logged right before the crash
2. Issue reproduces not only with Script Components
3. 'EditorUtility.SetDirty(prefab)' and 'AssetDatabase.SaveAssets()' have to called as well for the crash to occur
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
- List element overlaps everything when using Serializable struct/class
- [Android] Specular Highlights have precision issues on devices with Adreno GPU
- Wireframe mesh flickers when cursor is in Scene view
- [Linux] Android build fails with “CommandInvokationFailure: Gradle build failed.” error
- [iOS] Touch.rawPosition changes position when touch is dragged
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0a9
Resolution Note (fix version 2021.1):
Fixed in: 2021.1.0a2
Resolution Note (fix version 2020.3):
Fixed in: 2020.3.18f1