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
- Video does not play in macOS build when built app is placed in a path with a space in it on a specific project
 - Crash on AuxWindowManager::OnGotFocus when trying to maximize a tab while Visual Effect Graph window is open
 - “NullReferenceException: Object reference not set to an instance of an object” error is thrown when
 - [Metal] Game freezes after command buffer Timeout error
 - Addressables Report window UI is broken when opening via Build > New Build > Default Build Script
 
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.```