Reply To: NodeCanvas consistent memory leaks

NodeCanvas Forums Support NodeCanvas consistent memory leaks Reply To: NodeCanvas consistent memory leaks

#15956
bellux
Participant

+1

This saldy makes the asset unusable, and forces me to either stop using it and/or close the Unity Editor every two/three minutes.
The player build works smoothly and doesn’t seem to be affected.

NodeCanvas: 3.2.1
Unity Version:  2020.3.21f1

I reproduced the issue by simply creating a new Behavior Tree graph, adding a sequence node and nesting two empty actions (no task inside them). The blackboard is empty as well.

At that point for every Repaint() or similar (moving the mouse around, clicking and/or selecting stuff), the memory constantly increases to the point of freezing the Editor. As others said, entering playmode doesn’t reset it.

I tried to stress test it (see the attachment), and the memory increases faster (it might be related to the number of nodes? some cache that keeps getting built/added? I have no idea). Sadly, by profiling the Unity Editor I wasn’t able to find out if there was any method responsible for it.

The problem seems to happen both with Behavior Trees and FSM, Bound or Asset References, so it might be caused by the inner Graph class.

I really like the asset as well, so please help us in resolving this issue. Thanks!

Attachments:
  1. memory-keeps-increasing.jpg