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
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
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.```