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

Windows

-

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

  1. 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

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.