How to debug 'ERROR: Condition "_first != nullptr" is true'?

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

When I exit my game I get this message in console:

ERROR: Condition “_first != nullptr” is true.
at: ~List (./core/templates/self_list.h:106)

It happens in both Godot 3 and Godot 4 but I’ve never been able to pin down what is causing it. I tried building Godot in debug mode but that didn’t give extra info.

Any ideas how I could figure out why that message is happening?

And should I even bother?

:bust_in_silhouette: Reply From: theoddpaw

same i think its when you remove_child() and you dont add_child() before the game is exited