You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like a thread guard issue, instantiating the scene eventually calls Node2D::get_transform() which has ERR_READ_THREAD_GUARD_V() guard. Might be intentional or not.
You can work around this by calling Thread.set_thread_safety_checks_enabled(false) in the thread function, but be careful as this might not be fully supported currently.
Godot version
4.1
System information
Godot v4.1.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - integrated Intel(R) UHD Graphics (Intel Corporation; 31.0.101.4575) - 13th Gen Intel(R) Core(TM) i7-1370P (20 Threads)
Issue description
In thread, instantiating physicsbody2ds with a collision shape child raises a get_transform error.
According to https://docs.godotengine.org/en/stable/tutorials/performance/thread_safe_apis.html#scene-tree, this isn't the intended behavior.
Steps to reproduce
see project
Minimal reproduction project
gd_thread_instantiate.zip
The text was updated successfully, but these errors were encountered: