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

Calling add_child() during NOTIFICATION_WM_ABOUT always gives "Parent busy setting up children" error #101410

Open
MewPurPur opened this issue Jan 10, 2025 · 1 comment

Comments

@MewPurPur
Copy link
Contributor

MewPurPur commented Jan 10, 2025

Tested versions

Reproduced in 4.3

System information

Godot v4.3-stable - macOS 15.2.0 - Vulkan (Forward+) - integrated Apple M3 - Apple M3 (8 Threads)

Issue description

Seems like a pretty trivial use case to add an AboutMenu kind of node for NOTIFICATION_WM_ABOUT. But no matter what node I add it to, I get the same error, "Parent busy setting up children, add_child() failed. Consider using add_child.call_deferred(child) instead". So this is easy to workaround, but also seems like it shouldn't happen.

Steps to reproduce

See the MRP.

func _notification(what: int) -> void:
	if what == NOTIFICATION_WM_ABOUT:
		var texture_rect := TextureRect.new()
		texture_rect.texture = load("res://icon.svg")
		add_child(texture_rect)
		#add_child.call_deferred(texture_rect)

Minimal reproduction project (MRP)

MacOSbug.zip

@MewPurPur MewPurPur changed the title Calling methods during NOTIFICATION_WM_ABOUT always gives "Parent busy setting up children" error Calling add_child() during NOTIFICATION_WM_ABOUT always gives "Parent busy setting up children" error Jan 10, 2025
@MewPurPur
Copy link
Contributor Author

I believe this is also platform:macos because it seems like a MacOS-exclusive notification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: For team assessment
Development

No branches or pull requests

2 participants