Search Issue Tracker
Third Party Issue
Votes
0
Found in
2020.3.41f1
2021.3.13f1
2022.1.22f1
2022.2.0b14
2023.1.0a18
Issue ID
UUM-18699
Regression
No
Editor FPS drops when VS 2022 Debugger is attached and custom window is open
How to reproduce:
1. Open the attached project “VSDebuggerBug.zip“
2. Set Visual Studio 2022 as External Script Editor (Edit → Preference → External Tools)
3. Open the “SampleScene” in Scenes
4. Open the “ExampleScript.cs” script in Assets
5. Enter the Play Mode
6. Press Window → “My Window”
7. Attach Unity Debugger to the Editor
8. Hover the cursor over the “MyWindow” custom window or try making any changes to it
9. Observe the editor and “Stats” window
Expected result: FPS doesn’t drop. There’s no lag in the editor
Actual result: FPS drops. There is a lag in the editor
Reproducible with: 2020.3.41f1, 2021.3.13f1, 2022.1.22f1, 2022.2.0b14, 2023.1.0a18
Reproducible on: Windows 10 Pro
Notes:
- Not reproducible with VS 2019
- Everything works as expected if “MyWindow” is turned off
- Also reproducible if the script is attached to unity without entering Play Mode
Workaround:
In Visual Studio:
1. Press Debug → Windows → Exception Settings
2. Add "UnityEngine.ExitGUIException" to the well-known exceptions in the Common Language Runtime Exceptions category (using the + button on the toolbar)
3. Uncheck it so that the debugger doesn't break on it
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
The problem is that something is causing a lot of `UnityEngine.ExitGUIException` to be thrown, which when a debugger is attached, even if the exception will be hidden, it is still thrown/slowing the debugger down