Search Issue Tracker
Won't Fix
Votes
0
Found in
2021.3.41f1
2022.3.40f1
6000.0.13f1
Issue ID
UUM-77261
Regression
No
Editor freezes when entering and exiting Play Mode with Ctrl + P while Play Mode is loading
How to reproduce:
1. Open the attached “Personal Project - Fix.zip”
2. Open the “My Game” Scene
3. Press Ctrl + P to Enter Play Mode
4. Press Ctrl + P to Exit Play Mode while it is loading
5. Observe the Editor Window
Expected result: Editor Window is back to normal and Play Mode is stopped
Actual result: Editor Window freezes indefinitely
Reproducible in: 2021.3.41f1, 2022.3.40f1, 6000.0.13f1
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Note 1: You have to close Unity Editor with Task Manager after the freeze
Note 2: Not reproducible on empty project
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
This is caused by a bug in the project's TextManager.cs script.
The TextManager.Update() method executes an infinite loop:
void Update()
{
<snip>
while (onMainMenu)
{
mainMenu.gameObject.SetActive(true);
}
}
NOTE: onMainMenu is set true via Start() but never set false.
An infinite loop within a script will completely hang Unity.