-
Notifications
You must be signed in to change notification settings - Fork 15
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
Project Crashing in Godot 4.3 #13
Comments
Don't clone the repository, create a fresh project and add the binaries from the GitHub Actions: Can you check with that files? |
I can confirm the same issue is occurring for me using that download in a fresh project. |
@TravsVoid Can you post a fresh project with these files? The first one contained too much distracting stuff. Just an empty project with the changes required for the crash (including the addon). Sounds very interesting, like a general bug. Will try to check on other OS systems too when having that project (to rule out it being an OS dependent issue). |
Another question: have you checked if the issue is present in older versions of Godot? |
Try running the project from the console to see the errors that have occurred. I migrated my project from 4.2 to 4.3 using Windows as well, but I don't have such problems |
Here is the new 4.3 test, but I did try out the 4.2 version and the same crash is happening for me. Tree.Test.mp4 |
I'm experiencing this crash as well in 4.3: The reproduction steps are as in TravsVoid's video above; specifically, the crash only occurs when changing editor tabs to a scene with a Tree3D in it. For me, I can have the editor successfully start up into a scene containing a Tree3D, and it crashes if I tab away to a different scene and back. Here's the most detailed backtrace I could get, from using my own built version of 4.3 x64 godot_cpp, and my own built editor of 4.3, which is a mostly-unchanged Godot 4.3 build (the crash occurs whether I use my own build or 4.3-stable):
Admittedly I haven't figured out how to get debug symbols in a GDExtension; I looked around but couldn't find a straight-forward guide for this and I'm pretty green to using GDExtension. If anybody has a tip here I can try to get better debug information. |
To sum up the video:
thanks @TravsVoid for the video and the clean project, that helps thanks @vabrador too, not sure about the debug-information inside the GDExtensions, they "should" be included in the binaries, but maybe they are (still) compiled somehow wrong (documentation from Godot is a bit wonky there) I will experiment with creating the binaries with a Windows VM again, maybe that will give some dbg files again to find the problem |
This comment was marked as off-topic.
This comment was marked as off-topic.
@Yora0 this is a different issue you are having, please iopen a different bug issue |
There is a suspicion that the crash problem is somehow related to this problem #1, probably the links to the meshes are lost somewhere... |
I can confirm this happening in the linux build as well. Crashes on changing editor tab to a scene that contains a Tree3D. One possible workaround is to always close any scene that contains a tree and open it from the FileSystem browser instead of changing tabs. It can open the scene without crashing, but it's inconvenient. |
Not sure if helpful, but i am currently experiencing the very same, switching tabs to the one containing Tree3D instantly crashes the editor, enve just blank scene, blank project, with just one tree, (create tree scene, create new scene, return to tree - crash) edit: using the demo project, behavior is exactly the same edit2: forward+ and mobile renderers both does the same edit3: workaround - issue fixed itself the moment i saved the tree as its own scene, and added only that to the other scenes, crashes are gone for now |
@MendezDev42 I had same issue, older version of plugin doesn't have this problem https://github.com/JekSun97/gdTree3D/releases/tag/Tree3D_v0.6, seems to me like fixing #1 could've caused this, but i am not sure |
so after cleaning my project i realized it was not creating and saving the node that fixed it for me - its even more weird : i had to add Subfolder within the addons/Tree3D/ folder, named whatever, i went for "ALL" and i put there the release and debug dlls (i did this to store them not realizing godot will load them) this results in error on each runtime (that does not crash the app) saying node Tree3D was already registered, BUT it prevents editor from crashing! - and even built project runs well, not sure if this helps, but I think you are right that its related to fixing issue #1 |
Also getting crashes on 4.4-beta3
I also got crashes moving the Tree3D node in the scene tree. |
When opening a scene with a void Tree3D::_enter_tree() {
// HACK!! To fix duplication issue before Godot 4.3.
TypedArray<Node> children = get_children(true);
for (int i =0; i < children.size(); ++i) {
Node *node = cast_to<MeshInstance3D>(children[i]);
if (node->has_meta(get_hack_meta_identifier()) && cast_to<Node>(node->get_meta(get_hack_meta_identifier())) != this) {
remove_child(node);
node->queue_free();
}
}
} And when reparenting a void Tree3D::_exit_tree() {
//godot::UtilityFunctions::print("Tree3D exit");
remove_child(trunk_inst);
trunk_inst=nullptr;
if(twig_inst)
{
remove_child(twig_inst);
twig_inst=nullptr;
}
} Determined that by commenting out the body of those functions and performing my tests. Guessing its a memory issue. |
I faced probably the same problem in Godot 4.4. In my case, the crash was in I added some logging and that's what I've seen while loading my project:
I'm not really sure why does Godot first adds the tree to the scene, then removes it and then adds it again. But since Now, I didn't yet study Tree3D code deep enough, but this is what seems to have helped in my case:
(I also moved UpdateAllMeshed too, don't know whether it's necessary). This allowed me to load the project, but I'm not sure if it's a good solution. @FibreFoX what do you think about this? |
This PR should fix all the glitches, but it will only be in 4.5. |
I installed from the asset library and placed the .dll files for 4.3 and windows but it's causing Godot to crash when I create a Tree3D scene. This actually broke my main project after I instantiated a tree scene into my main level and it crashed every time I opened my project. I had to then edit the scene file to remove the tree references to get back into it.
Testing.mp4
Also I see debug, release, 32bit, and 64bit versions of the dll's. Do I need both the debug and release dll along with both 32 and 64 bit?

Godot Project:
treeissue.zip
The text was updated successfully, but these errors were encountered: