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
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
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