Reply To: NodeCanvas consistent memory leaks

Forums 💬 NodeCanvas ⚙️ Support NodeCanvas consistent memory leaks Reply To: NodeCanvas consistent memory leaks

#15840
bellux
Participant

    Update: it seems Unity’s fault, but the issue persists even with 2021.1.2f1 (it does seem a bit better with the new version, but I’m still not sure about it – and also upgrading might not be a viable option mid-production).
    I tried only invoking the code in GraphEditor.cs, until Editor.Node.cs -> DrawNodeWindow(), and if I comment GuiLayout.Window the leak stops happening.

    There is an open Unity’s issue related to this: https://issuetracker.unity3d.com/issues/guilayout-dot-window-never-releases-old-windows-which-causes-a-memory-leak

    It seems that the issue persists with GUI.Window as well.

    Sadly it’s marked as “Won’t Fix”, so I don’t know if an actual solution would be writing a different method to display floating  and resizeable windows.