Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Bug (Case 1418422) Recompile/ReloadAssembly leak

Discussion in '2022.1 Beta' started by Peter77, Apr 8, 2022.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,619
    It seems that re-importing a script causes objects to leak in the ReloadAssembly process.
    Please see the attached video for a full walk-through.




    Actual
    With every recompile, more objects are processed during the ReloadAssembly step. Each time a script re-import occurs, objects seem to leak in the ReloadAssembly process.

    Expected
    No leak.

    Notes
    Perhaps that could be a reason why people report on the forums that the ReloadAssembly step is very slow, because as I understand the problem, it should get worse the longer you work in the editor.
     
  2. Extrys

    Extrys

    Joined:
    Oct 25, 2017
    Posts:
    345
    Seems youre really a QA God
    yeah this needs to be seen maybe unity can fix the problem thanks to people like you!

    It is possible then that the larger the project is, the larger the leak becomes also?
     
  3. DoctorShinobi

    DoctorShinobi

    Joined:
    Oct 5, 2012
    Posts:
    219
    It's good to have Peter back
     
    Peter77 and Extrys like this.