Search Issue Tracker
By Design
Votes
0
Found in
2017.4.0f1
2018.3.0a1
2018.3.4f1
2019.1.0a1
2019.2.0a1
Issue ID
1124723
Regression
No
Windows Standalone build takes a long time to close when GC.ReRegisterForFinalize(this); is used
Steps to reproduce:
1. Download and open the attached project
2. Build and run for standalone
3. Wait until the first logo finishes
4. Press Alt+F4 to exit the game
Expected result: build closes immediately
Actual result: build hangs for a while before closing
Reproduced on 2017.4.0f1, 2017.4.20f1, 2018.3.5f1, 2019.1.0b3, 2019.2.0a4
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:
Finalizers are given up to 40s to execute before the process is terminated. Repeatedly queuing objects for finalization will delay process close. See https://blog.stephencleary.com/2009/08/finalizers-at-process-exit.html