Search Issue Tracker
Fixed in 2022.1.X
Fixed in 2019.4.X, 2020.3.X, 2021.2.X
Votes
0
Found in
2020.3
2020.3.9f1
Issue ID
1346442
Regression
No
Crash when entering Play Mode and serializing data right after recompilation of script changes
How to reproduce:
1. Open the attached project "Share.zip"
2. Open the "Test_School" Scene
3. Open the PlayInEditorHook.cs
4. Set both the IDE and Unity as floating windows
5. Edit the PlayInEditorHook() function by adding or deleting new lines
6. Save the script
7. Return focus to Unity by clicking on the custom "Export and Play" button to the right of the Play/Pause/Step buttons
8. Repeat from step 5 until it crashes
Expected result: Editor enters Play Mode
Actual result: Editor crashes
Reproducible with: 2020.3.14f1
Can't test with: 2018.4.36f1, 2019.4.29f1, 2021.1.15f1, 2021.2.0b3, 2022.1.0a2 (Custom button that serializes Scene data doesn't exist)
Notes:
- If it doesn't crash for a while delete the Library folder and start from step 1
- Might happen more commonly with Visual Studio 2017 - 2019
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 6-way VFX Shader is lit incorrectly when World coordinates are used
- 2D Sprite Renderer in front is affected by Sprites in the background when using Sorting Layers and a Shadow Caster 2D with Self Shadow
- Modifying UI Prefab child's Height only confirms the first 1 or 2 digits when the Scene is newly opened or the Prefab is newly created
- ProfilingSampler.Get() returns null and makes the Player only render black when building a Release Build
- Search text field visual controls for the Path binding in an Input Actions Asset is misaligned
Resolution Note (fix version 2022.1):
Fixed in: 2022.2.0a1
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0b5
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.10f1
Resolution Note (fix version 2020.3):
Fixed in: 2020.3.26f1
Resolution Note (fix version 2019.4):
Fixed in: 2019.4.35f1