Search Issue Tracker
Third Party Issue
Third Party Issue in 2023.1.X
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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
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
Resolution Note (2023.1.X):
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