How to cause a crash(doesn’t always occurs, its a race condition as I said):
- Have unity projects with scripts
- Modify script
- Give Unity focus and quickly press the play button
To avoid the crash you need to make sure that Unity recompiled the assembly before pressing the play button.