Skip to content
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

[Godot v4.4] Loading a scene using "ResourceLoader.load_threaded_request" using (subthread = true) causes cascade of "Invalid Task ID" errors #103648

Open
LunaticWyrm467 opened this issue Mar 5, 2025 · 3 comments

Comments

@LunaticWyrm467
Copy link

Tested versions

  • Reproducible in: Godot v4.4 Stable
  • Does not occur in: Godot v4.3

System information

Godot v4.4.stable - Arch Linux #1 SMP PREEMPT_DYNAMIC Fri, 08 Nov 2024 17:57:56 +0000 - X11 display driver, Multi-window, 1 monitor - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3050 Laptop GPU - 11th Gen Intel(R) Core(TM) i5-11260H @ 2.60GHz (12 threads)

Issue description

Using ResourceLoader.load_threaded_request(level, "", true) to load more than one scene at a given moment will result in the following error cascade:

Image

This issue used to exist before 4.3 Stable (bug report can be found here: #94018 ), but was later reintroduced in 4.4.

Steps to reproduce

Simply run the MRP. The errors will be visible in the editor.

Minimal reproduction project (MRP)

mrp-resource-loader.zip

@matheusmdx
Copy link
Contributor

Regression between 4.4 dev1 and 4,4 dev 2, bisecting.

@matheusmdx
Copy link
Contributor

Bisected to commit 28619e2 from pr #94169 as the culprit, CC @RandomShaper

Image

@Fifut
Copy link

Fifut commented Mar 5, 2025

I have the same issues but without sub threads enabled.
Append 7 times on 37 call of load_threaded_request()

E 0:00:01:585 ResourceLoaderManager.gd:98 @ _process(): Invalid Task ID
<C++ Error> Method/function failed. Returning: ERR_INVALID_PARAMETER
<C++ Source> core\object\worker_thread_pool.cpp:369 @ WorkerThreadPool::wait_for_task_completion()
<Stack Trace> ResourceLoaderManager.gd:98 @ _process()

E 0:00:01:504 WorkerThreadPool::wait_for_task_completion: Invalid Task ID
<C++ Error> Method/function failed. Returning: ERR_INVALID_PARAMETER
<C++ Source> core\object\worker_thread_pool.cpp:369 @ WorkerThreadPool::wait_for_task_completion()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Unassessed
Status: For team assessment
Development

No branches or pull requests

3 participants