-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
ResourceInteractiveLoader in Thread produces 100 lines of error log spam #63493
Comments
UPDATE: I noticed it also happens with func _thread_full(path : String) -> Resource:
#print("THREAD STARTED")
var resource : Resource = ResourceLoader.load(path)
self._lock("_thread_full")
self._shared_result = ERR_FILE_EOF
self._shared_progress = 1.0
self._unlock("_thread_full")
return resource |
We're using ResourceInteractiveLoader not in a thread, without RID issues. Like us, you also aren't loading in a thread. The only thing you're doing is polling in a thread. It's unnecessary. You don't need a thread. Just stick your poller in Threading has historically been part of the experimental side of Godot, so YMMV. RIDs are one of the hardest things in Godot to debug, which you can read about in #53374. I recommend forgetting about threading in this class. |
Well, we are using it without a dedicated thread for now since the log spam hides all other errors. That said, poll doesn't seem to be at all. Actually, the reason why we added the threaded version was due to huge frame spikes on an older notebook. |
…e thread to avoid odd resource/RID loading issues, as noted here: godotengine/godot#63493
…e thread to avoid odd resource/RID loading issues, as noted here: godotengine/godot#63493
…e thread to avoid odd resource/RID loading issues, as noted here: godotengine/godot#63493
Godot version
v3.4.4.stable.official [419e713]
System information
Arch Linux 5.18.13, nVidia 3080 Mobile, OpenGL ES 3.2 NVIDIA 515.57
Issue description
ResourceInteractiveLoader.poll()
produces error logs when called in aThread
.(symptomatic error)
Everything looks to be loaded just fine though. It looks very much like a bug to me unless there's something wrong with the following utility. However, if that's the case please let me know what / how to fix it.
Steps to reproduce
Easiest is with the attached, minimal project:
But my guess is any call to
ResourceInteractiveLoader.poll()
on a GDscriptThread
in a loop causes this?Minimal reproduction project
ril-async-bug.zip
The text was updated successfully, but these errors were encountered: