0 votes

I am working on a project, and afeter some houers of coding I decided to cleen un a bit my code, and I saw an error in the debug window. The game runs fine even if this appears but I would like to know how to solve it or at least what it is.
Thank you!

The error:

E 0:00:00.882   _create_instance: Condition "r_error.error != Variant::CallError::CALL_OK"         is true. Returned: __null
  <C++ Source>  modules/gdscript/gdscript.cpp:127 @ _create_instance()
in Engine by (16 points)

1 Answer

+1 vote

It's just a small error in your code, but the error won't cause the game to crash. That kind of thing often happens when we code. Just check your code again. Since I don't know your code, I don't know what exactly is wrong.
An example error here: disconnect() a signal that's already disconnected. In that situation, Godot will tell you the error, but it will ignore it in game, because it's already disconnected, and here when debug, we need to add an if statement is_connected() before disconnect the signal.

by (805 points)
edited by
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 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 webmaster@godotengine.org with your username.