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
- Spot Light with 'Box' Shape stops working when it collides with Mesh
- Accepting Asset Store EULA endless loop in Package Manager window
- “InvalidOperationException: Sequence contains no matching element“ error when reenabling a custom Debug Draw Mode
- Prefab that contains a layout group is marked as changed by the Editor when opened
- Emission animation does not appear when the "Emission Map" parameter is set to black in a Lit material
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.