imgui-node-editor icon indicating copy to clipboard operation
imgui-node-editor copied to clipboard

Circular Reference in Node Pins Causes Hang

Open Sage-of-Mirrors opened this issue 1 year ago • 0 comments

Hello,

I have created a system whereby a set of nodes are loaded from a JSON file into the nodegraph. The majority of the time this is fine, but every so often I encounter a hang caused by an infinite loop in this for statement. This loop is caused by a pin having a reference to itself in its m_PreviousPin member. I have patched it by adding if (pin == pin->m_PreviousPin) break; to the end of the body, but I am curious if the cause of this circular reference is known? I have been unable to find a cause for it.

Sage-of-Mirrors avatar Oct 16 '23 18:10 Sage-of-Mirrors