Target object freed before starting, aborting Tweener

Godot Version

4.4

Question

The error is : Target object freed before starting, aborting Tweener.

No idea what the problem is. In general , this is a popup where user can click “ok”. I try to make a fade effect where the popup is not closed instantly.

The fade effect happens as expected, but above error is thrown… when I tried adding tween.is_valid() condition, it caused entire fading effect to not happen at all

Could this be because the tween isn’t bound to the node?
I’d try using Node.create_tween() instead of SceneTree.create_tween().

	var tween = create_tween()
1 Like

How do you know this particular tween is causing the warning?

thank you, that fixed it

A tween doesn’t need to be bound to a node to work properly. This may indicate some other bugs lurking underneath - watch out.