Search Issue Tracker
Fixed in 5.6.0
Votes
0
Found in
5.6.0b1
Issue ID
866831
Regression
Yes
Destroying Rigidbody2D of a colliding object crashes Unity in Rigidbody2D::IsSleeping()
Destroying Rigidbody2D of an object while it is colliding crashes Unity.
Steps to reproduce:
1) Open the attached project.
2) Open 'Test' scene.
3) Enter play mode.
- As soon as the the two squares in the scene touch, Unity will most likely crash, if it doesn't, wait for a few seconds, or:
4) Click on the BottomSquare object in the Hierarchy.
The scene consists of two 2D squares. The bottom one is Kinematic (can be Dynamic and constrained instead, doesn't matter) ant the top one is dynamic. When the scene is played, the top square falls on the bottom one. When they touch, Destroy() method is called on bottom square's Rigidbody2D. This results in a crash in Rigidbody2D::IsSleeping()
Reproduced on:
5.6.0b3, 5.6.0b1, 5.6.0a6, 5.6.0a4
Did not reproduce:
5.6.0a3, 5.5.0p3, 5.4.4f1, 5.3.7p3, 5.2.4f1
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
- [iOS] Touch input is not clocked and UI is unresponsive when the application is paused mid-drag without lifting the finger
- [sw-unity-6-1] Scene view renders any light differently when more than one camera exists and neither have the "MainCamera" tag
- Project tab navigates to the previous folder when undoing (CTRL+Z) GameObject placement in the Scene
- Blue lines appear on the sides of the "Fit Canvas" or "Fit viewport" button when it's clicked in the UI Builder.
- PlayableDirector's state remains set to Playing even when the timeline's time property exceeds its duration.
FrankvHoof
Jun 07, 2018 12:54
Issue has returned in Unity 2017.3.0p4