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
- UI Overlay Image gets darker on each Camera when multiple Cameras are used
- Assertion failed on expression: 'scriptedImporterClass == SCRIPTING_NULL error when opening the standalone profiler window
- Disabled assets in Import Unity Package window aren't tracked but count as being selected by user
- [Windows] Crash on GetManagerFromContext when video is playing and creating High Definition 3D Projects after FMOD failed to switch back to normal output Error appeared
- GC Alloc produced when adding items to MultiColumnListView with Auto Assign Binding
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