-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
ResourceLoader.load_threaded_get_status(SCENE, PROGRESS)
always returns 0 (THREAD_LOAD_INVALID_RESOURCE)
#95470
Comments
Testing on Fedora 40. I can reproduce the 0 status in 4.3.rc3, but not the 1/3 statuses of the "what was expected" in 4.2.2.stable. Could you clarify how you tested previous versions? In 4.2.2.stable, I get:
I get the same result with 4.3.beta1. Then 4.3.beta2 gives:
4.3.beta3 exhibits the behavior described here and still reproducible as of 4.3.rc3:
And finally the latest
|
Nevermind the crash, it happens only in a
So it was trying to catch this kind of error case but it's only evident when running a dev build. (For the record @RandomShaper I'm still of the opinion that well placed In a non dev build, I get the same issue as in the OP in latest
|
I tested #94169 but it doesn't seem to address this issue. |
You are right, sorry I just made a mistake, I got those logs from other situations which... doesn't matter actually. The state you are seeing is right and in a normal behavior, the load_threaded_get_status_2.zip Expected logs:
Received Logs:
It goes into a loop because it never actually sees the status = 3 and so it never loads the scene. |
Thanks, I can reproduce these results with the new MRP. I'll bisect so we can pinpoint when the regression happened exactly. |
This seems to be the correct behavior since the cache mode is set to |
Tested versions
System information
Ubuntu 22.04.4 LTS - Godot v4.3.rc3
Issue description
I have an addon called Scene Manager and I got an issue about this which made me come here and report the problem after identifying the problem.
In one sentence:
ResourceLoader.load_threaded_get_status
doesn't seem to work right at all.Simply define a scene and request to load it with
ResourceLoader.load_threaded_request
and then ask for how it is doing withResourceLoader.load_threaded_get_status
and it always returns 0 which meansTHREAD_LOAD_INVALID_RESOURCE
but actually when usedResourceLoader.load_threaded_get
after you see theTHREAD_LOAD_INVALID_RESOURCE
, it actually returns the scene just fine butResourceLoader.load_threaded_get_status
said that the scene is not valid which means that it isn't working properly as expected.Note: This was working completely fine in previous versions of godot4.
Note: Loading normally is fine but loading with
ResourceLoading
doesn't seem to work at all.Steps to reproduce
Simply pass a scene address into this function and watch the results:
You will see this output:
Which means
ResourceLoader.load_threaded_get_status
is not working properly at all but actuallyResourceLoader.load_threaded_get
works just fine although is was said byResourceLoader.load_threaded_get_status
that the scene is not valid and it will not load properly.What was expected:
Minimal reproduction project (MRP)
load_threaded_get_status.zip
The text was updated successfully, but these errors were encountered: