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

Loading a scene using "ResourceLoader.load_threaded_request" using (subthread = true) causes cascade of "Invalid Task ID" errors #94018

Closed
cosmoddd opened this issue Jul 7, 2024 · 3 comments · Fixed by #94070

Comments

@cosmoddd
Copy link

cosmoddd commented Jul 7, 2024

Tested versions

  • Reproducible in the 4.3 beta2 build. Haven't tested earlier 4.3 builds. Not reproducible in 4.2 builds.

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
image
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

@cosmoddd cosmoddd changed the title Loading a scene using "ResourceLoader.load_threaded_get" causes many "Invalid Task ID" errors Loading a scene using "ResourceLoader.load_threaded_request using (subthread = true) causes cascade of "Invalid Task ID" errors Jul 7, 2024
@cosmoddd cosmoddd changed the title Loading a scene using "ResourceLoader.load_threaded_request using (subthread = true) causes cascade of "Invalid Task ID" errors Loading a scene using "ResourceLoader.load_threaded_request" using (subthread = true) causes cascade of "Invalid Task ID" errors Jul 7, 2024
@dalexeev dalexeev added this to the 4.3 milestone Jul 7, 2024
@dalexeev
Copy link
Member

dalexeev commented Jul 7, 2024

CC @RandomShaper

@akien-mga
Copy link
Member

Haven't tested the project here yet, but for the record @RandomShaper, I've seen the same errors in W4's project genesis.

@matheusmdx
Copy link
Contributor

Bisecting points to #93082 as the culprit:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Release Blocker
Development

Successfully merging a pull request may close this issue.

5 participants