Error when calling queue_free to some nodes

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By snk


I have some C# code that is procedurally adding and deleting nodes on my scene. The operations are done through C# Tasks (Thread Pool).

During the process I often get the following error in my terminal :

ERROR: remove_child: Condition ' idx == -1 ' is true.
   At: scene/main/node.cpp:1256.

Any idea what could cause this and how to solve it ?


:bust_in_silhouette: Reply From: snk

The scene tree doesn’t like parallel calls. I solved the problem with a mutex.