Search Unity

Game freezes on quit when you disable garbage collector

Discussion in 'Editor & General Support' started by hermitcat64, Aug 28, 2021.

  1. hermitcat64

    hermitcat64

    Joined:
    Apr 18, 2020
    Posts:
    16
    It happens only in verison 2018.4.36f1 and it doesn't happen in 2019.x and 2020.x
    If I disable garbage collector by

    Code (CSharp):
    1. using UnityEngine.Scripting;
    2.  
    3. GarbageCollector.GCMode = GarbageCollector.Mode.Disabled;
    and try to quit the game, it freezes for well over a minute before eventually quiting. Is it intended? I checked it on version 2019.4.latest and 2020.3.latest and it didn't happen, so it's a bug specific to 2018.4.x

    Also I'm posting here because the editor's bug report feature has minimum word threshold like I'm writing an essay at school?????
     
    Last edited: Aug 28, 2021