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
- 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 (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.```