-
-
Notifications
You must be signed in to change notification settings - Fork 21.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading a scene using "ResourceLoader.load_threaded_request" using (subthread = true) causes cascade of "Invalid Task ID" errors #94018
Comments
Haven't tested the project here yet, but for the record @RandomShaper, I've seen the same errors in W4's project genesis. |
Bisecting points to #93082 as the culprit: |
@LunaticWyrm467 Please open a new issue with a MRP so we can properly check the problem to find a solution. |
I'm also seeing this issue reopened after updating my project from 4.3 to 4.4. |
Same issue here after upgrading to 4.4. After some experimentation I noticed that if I set the use_sub_threads parameter to true, the error goes away. |
I am currently working on an MRP. |
@LunaticWyrm467 No because look the OP, problem was before the 4.3 stable and the fix was done before 4.3 stable launch (as yourself pointed in your commentary that works in 4.3 stable) so the cause is another thing that needs to be investigated. That should be reopened only if the fix failed in 4.3 stable. |
can confirm that setting using subthreads while loading makes this issue disappear! |
Created a new issue here: #103648 |
Tested versions
System information
Godot v4.3.beta2 - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2060 (NVIDIA; 32.0.15.5612) - Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz (12 Threads)
Issue description
When I use

ResourceLoader.load_threaded_request(level, "", true)
to load a level, it causes a cluster of the same error message:
wait_for_task_completion: Invalid Task ID
The more complex the load, the more these messages keep appearing.
This does not happen when I tweak the level loading code here:
ResourceLoader.load_threaded_request(level, "", false)
or here:
var loaded_scene = ResourceLoader.load(level)
This was not an issue in the latest 4.2 release.
Steps to reproduce
Import the project and open the "Base Level" scene.
Press F5 to start the game.
Notice the error outputs in the Debugger tab should all say:
wait_for_task_completion: Invalid Task ID
Minimal reproduction project (MRP)
The project can be downloaded here: https://drive.google.com/file/d/1EGhASSLeyHpbAaYk0Vv9C0yQLZhI2B8B/view?usp=sharing
It weights about 200 mb and is compatible with 4.3beta2
The text was updated successfully, but these errors were encountered: