remove_from_group: Condition "!data.grouped.has(p_identifier)" is true.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By moredear

Hi, nice people!

remove_from_group: Condition “!data.grouped.has(p_identifier)” is
true.

This error keeps showing up when

get_tree().call_group('group_name','clear_group')

And in nodes that in ‘group_name’, is a function

func clear_group():
    self.remove_from_group('group_name')

Anyone could please explain to me why this error happens? Thank you very much!