Search Issue Tracker
Fixed in 2021.2.X
Votes
0
Found in
2021.2
2022.1
2022.1.0b6
2022.2
Issue ID
1401696
Regression
Yes
Unity Editor hangs for a long time when switching to release mode after attaching C# script to Unity
How to reproduce:
1. Create a new project
2. Create a new C# script and open it
3. Click the "Attach to Unity" button
4. End Debugging
5. Go to the Unity Editor
6. In the bottom right click the bug icon
7. Click the "Switch to release mode" button
Expected result: Switching to release mode is successful
Actual result: The Editor hangs for a really long time
Reproducible with: 2021.2.0a1, 2021.2.13f1, 2022.1.0a1, 2022.1.0b9, 2022.2.0a1
Not reproducible with: 2020.3.32f1, 2021.2.14f1, 2021.2.16f1, 2022.1.0b10, 2022.1.0b13, 2022.2.0a2, 2022.2.0a8
Couldn't test with: 2019.4.36f1 (no release mode)
Reproducible with:
Visual Code Editor 2.0.14
Visual Studio Code Editor 1.2.5
Couldn't test with:
JetBrains Rider Editor 3.0.12(error attaching to Unity Editor)
Note: If you are not able to reproduce delete the Library folder and the .sln file from the project folder before opening
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
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.14f1, 2022.1.0b10, 2022.2.0a2