Search Issue Tracker
Fixed in 2017.2.0f3
Votes
0
Found in
5.5.0f3
Issue ID
873403
Regression
No
Instantiating GameObject(s) in OnDestroy() when exiting play mode crashes unity
Steps to reproduce:
1. Open attached project
2. Enter play mode
3. Leave play mode
-Crash
Result: Unity crashes when GameObject(s) are instantiated in OnDestroy() method(only when exiting play mode, which calls OnDestroy()).
Note: Instantiating primitives does not crash unity, instead throws an error in the console about not destroyed objects after leaving play mode(which is expected).
Reproduced on: 5.5.0f3, 5.5.1f1, 5.6.0b6
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Add comment