Search Issue Tracker
By Design
Votes
0
Found in
2018.3.0a1
2018.3.6f1
2019.1.0a1
2019.2.0a1
Issue ID
1133860
Regression
No
Editor freezes after Building & Running while in Play mode
How to reproduce:
1. Open the attached project
2. Open the "OfflineLobby.unity" scene
3. Enter Play Mode
4. Press Ctrl + B
5. Build the project
6. Close the build dialog
Actual result: Unity Editor freezes.
Reproducible with 2019.2.0a8, 2019.1.0b7, 2018.3.9f1.
Notes:
The freeze occurs when "Log(string.Format(format,args), (int)unityLogType);" DefaultLogger.cs:88 is called.
Can't test previous versions because the project gets corrupted.
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
- The Scene View becomes gray and "NullReferenceException" errors are thrown when attaching the Unity Editor process to RenderDoc
- Memory usage rapidly rises when changing colors in the color wheel
- Physically Based Sky's Horizon and Zenith Tint Color Selection Bars don't have immediate access to color pickers
- EmptyAdditionalLightShadowmapTexture leaks from memory when URP quality level is changed using QualitySettings.SetQualityLevel
- Referenced ScriptableObject field does not get updated and cannot be set to "None" when there are no Objects of that type
Resolution Note (2019.2.X):
The problem is that the user is overwriting the logging function. Inside his/her log function they are calling Debug.Assert, which causes another log callback. This log is sent to his/her log function which again calls the Debug.Assert causing this endless loop to happen. By commenting out line 88 things work and we can see the build error:
```MissingReferenceException: The object of type 'ScrollRect' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.```