Help with this error { ERROR: Reference to a Thread object object was lost while the thread is still running..}

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By vonflyhighace2
:warning: Old Version Published before Godot 3 was released.

I tried doing some threading in my code for performance sake but keep running into this error.

This error means you created a thread, started it, but forgot to keep a reference on it in order to stop it. As a consequence it could run forever.
What is the code you use to manage your thread?

Zylann | 2016-10-12 12:36

I think that’s my problem. I currently don’t have any thread management right now. I’m basically a newbie with when it comes to multithreading. so this is a learning phase for me. If you have examples of thread management you would like to share I would greatly appreciate it.

vonflyhighace2 | 2016-10-14 02:45

There is an example of thread usage in the demos, in misc/threads. Sorry I don’t have much time to expand on it right now^^"

Zylann | 2016-10-14 20:06

:bust_in_silhouette: Reply From: Gianclgar

I just had this problem and it was due to the thread crashing due to a error in my code (typo in referencing a dictionary entry). Seems that secondary threads don’t output the errors the same way as primary threads. So if this happens to you, check your code!