Search Issue Tracker

Active

Votes

0

Found in

2017.4.0f1

2017.4.23f1

2018.4.0f1

2019.2.0a1

2019.3.0a1

2020.1.0a1

Issue ID

1178765

Regression

No

Crash on AnimationState::~AnimationState when exiting Play Mode after recompiling scripts

Animation

-

How to reproduce:
1. Open the attached project
2. Open the "MessagePanelBase.cs" script
3. Add the following function to the script:
public virtual void Initialise(MessageCellBaseData data)
{
m_Data = data;
}
4. Open "InitialisationScene.unity" scene
5. Enter Play Mode
6. Press "New User"
7. Create a character
8. Select Make Friends
9. Start dancing (Dance >> ..)
10. Delete the recently created Initialise function at MessagePanelBase.cs
11. Focus Unity and let scripts recompile
12. Restore the recently deleted Initialise function at MessagePanelBase.cs
13. Focus Unity and let scripts recompile (null references appear and project breaks)
14. Exit Play Mode
15. If Unity didn't crash, repeat from step 5 (character will already be created)

Actual result: Unity crashes.

Reproducible with: 2017.4.32f1, 2018.4.8f1, 2019.2.4f1, 2019.3.0b2, 2020.1.0a3.

Notes:
- Dancing or watching at more people seems to increase the chance of crashing.
- Unity crashes after 1-6 tries most of the time.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.