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 1280164) UnityEditor.TestTools.TestRunner memory leak

Discussion in '2020.2 Beta' started by Peter77, Sep 24, 2020.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,619
    Reimporting a script causes various UnityEditor.TestTools.TestRunner related MonoBehaviours to leak.

    screenshot.png

    Reproduce
    1. Open attached project (or create new one)
    2. Open Profiler, select Memory tab
    3. Switch to "Detailed" mode
    4. Press "Take sample Editor"
    5. Expand "Scene Memory" and note the MonoBehaviour count
    6. Reimport "Scripts/NewBehaviourScript.cs"
    7. Press "Take sample Editor"
    8. Goto step 4

    Actual
    Every script reimport new UnityEditor.TestTools.TestRunner MonoBehaviour's are created.

    Expected
    No leak.
     
    LeonhardP likes this.
  2. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,136