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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
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.