-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Random crash when trying to open a scene #80255
Comments
Is this a sequel to #79999? 🤔 I looked at #79981 again. Apparently there can be multiple ResourceImporterTexture instances. So I guess this can trigger crash:
If threading is involved it could probably happen, idk. |
I haven't looked into the reasoning, but it feels very wrong that this class can have multiple instances (reasonably), but also has a singleton which can be assigned to any instance that was created first. Why do we need a singleton? If we really need it, then we should initialize (and destroy) one instance in |
I am getting the same crash on macOS, here is the stack trace (I shortened
|
I was mistaken, it's the scene importer. ResourceImporterScene::ResourceImporterScene(bool p_animation_import) {
if (p_animation_import) {
animation_singleton = this;
} else {
scene_singleton = this;
}
animation_importer = p_animation_import;
} Edit: Seems that both instances are created in the |
Godot version
4.2 eb4301b
System information
Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1060 (NVIDIA; 30.0.15.1403) - Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz (8 Threads)
Issue description
Sometimes when trying to open a scene from filesystem dock, the editor will crash. It happened 3 times to me already, but I don't know what exactly causes it.
Steps to reproduce
I think the scene needs to be opened early enough.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: