Search Issue Tracker
By Design
Votes
0
Found in
2020.2.7f1
2020.3
2021.1
2021.2
Issue ID
1322357
Regression
No
ArticulationBody crashes when instantiating an object from the scene and reparenting it
Reproduction steps:
1. Open the user's attached project and Scenes/John scene
2. In the Hierarchy window, select BadRope
3. In the Inspector, right-click on the Chain component and select Build Rope
Expected result: Project doesn't crash
Actual result: Project crashes
Reproducible with: 2020.3.1f1, 2021.1.0f1, 2021.2.0a10
Not reproducible with: 2018.4.32f1, 2019.4.22f1 (could not downgrade)
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
- [HDRP] Game view doesn’t refresh after changing Camera Background Type until mouse moves over it
- Some Shaders appear twice in Material Shader selection menu
- Editor freezes with a StackOverflowException when certain asset types are assigned to a managed component in a SubScene via AddComponentObject
- Scale Snapping with Gizmos does not work in the Scene view when Snapping and Absolute Grid Snapping are toggled off
- Text Script Importer Reference button links to a Missing Page when clicking the Reference Button in the Inspector
Resolution Note:
First off, the maximum amount of ArticulationBody components in an articulation can be 64 maximum, per the current physics engine restriction. It's advised to connect articulations with regular joints should the need for longer chains arise.
Secondly, it appears that in this particular project the whole current hierarchy is being cloned at each iteration. This scales as O(2^N), resulting in well over a million ArticulationBodies created in a hierarchy.