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

Add Child Error when entering godot window (on ANY project) #82120

Closed
AcoAlexDev opened this issue Sep 22, 2023 · 4 comments
Closed

Add Child Error when entering godot window (on ANY project) #82120

AcoAlexDev opened this issue Sep 22, 2023 · 4 comments

Comments

@AcoAlexDev
Copy link

Godot version

v4.1.1.stable.official [bd6af8e]

System information

Windows 11 - Mobile or Forward+ - v4.1.0 and 4.1.1

Issue description

For the past three days, I have been encountering a message in the output whenever I entered the screen or launched the game on one project:

Parent node is busy setting up children, add_child() failed. Consider using add_child.call_deferred(child) instead.
scene/main/window.cpp:1565 - Condition "!is_inside_tree()" is true.

Initially, I updated from 4.1.0 to 4.1.1, but that did not resolve the error.

Then I assumed that I had made some mistake on that project and I had to tolerate the error.

However, today I created a brand new project and simply added a control node and now the same error is displayed in the output again when entering the Godot window or running the project:

godot-error

The error occurs regardless of whether the project is new or old.
And it also appears in older Godot versions now, such as v4.0.0.

Steps to reproduce

I am perplexed by the appearance of this error, which seems to affect every project regardless of its status. It does not make a difference whether the project is new or old. Moreover, the error persists in older versions of Godot, such as v4.0.0.

Minimal reproduction project

Add_child error.zip

This is a sample project where the error is visible. It originally occurred in a very large project, but I have no idea what causes the error.

@Calinou
Copy link
Member

Calinou commented Sep 22, 2023

Can you reproduce this if you enable self-contained mode for the editor, so that it uses default editor settings?

If not, please post the contents of %APPDATA%/Godot/editor_settings-4.tres (after making sure sensitive credentials are redacted if present in that file).

@AcoAlexDev
Copy link
Author

AcoAlexDev commented Sep 22, 2023 via email

@Calinou
Copy link
Member

Calinou commented Sep 22, 2023

Thanks for the report! Consolidating in #73765.

@push-on
Copy link

push-on commented Oct 6, 2023

Having the same error. thanks for reporting! for me it happens when i create a new node and select any window other then godot. using window 10. disabling save on focus loss solves the issue for me. it's on editor settings > interface > editor > save on focus loss. it's off by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants