The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

Hi All!

I've recently started seeing this error in the debugger when removing a node from a group in gdscript. Does anyone know what causes it? It's not doing anything to the game...

E 0:00:33.898 removefromgroup: Condition "!data.grouped.has(pidentifier)" is true.
<C++ Source> scene/main/node.cpp:1697 @ remove

in Engine by (513 points)

Please take a look at the link below and note the following comment:
"Try using call_deferred with a function used to process the removal of the node."

Game crash when removing a node from the scene #21459

Thank you. BTW, would you know what the correct syntax is for call deferref with removal from group? I used call_deferred with add child before: call_deferred("add_child", childnode). But trying call_deferred("remove_from_group", "group_name") does not work...

When I changed this:

call_deferred("remove_from_group", "group_name")

to this:

call_deferred("self.remove_from_group", "group_name")

the error went away.
If this doesn't work then a sample project could maybe be beneficial.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.