godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.22k stars 21.22k forks source link

Console error when launching Godot, and error with TextEdit node #80413

Closed Lemonymous closed 1 year ago

Lemonymous commented 1 year ago

Godot version

v4.2.dev.custom_build [da81ca62a]

System information

Windows 10, Forward+, NVIDIA GeForce GTX 1050 Ti (31.0.15.3179)

Issue description

I am not sure these two errors are connected or not, but I discovered them at the same time. And they look to be very similar (same file and line number), so I am going to assume they are related.

When I add a TextEdit node to my project, I see the following error when I run it.

E 0:00:00:0877   CallQueue::flush: Trying to execute a deferred call/notification/set on a previously freed instance. Consider using queue_free() instead of free().
  <C++ Source>   core\object\message_queue.cpp:327 @ CallQueue::flush()

After I saw this error the first time, I didn't know what it could be, so I closed the editor and started an editor with console, and I now see that Godot gives the following message several times in the console, even before I open my project for editing. It throws this error 3 times when opening Godot, and 7 more times when I launch a project with a TextEdit node.

ERROR: Trying to execute a deferred call/notification/set on a previously freed instance. Consider using queue_free() instead of free().
   at: CallQueue::flush (core\object\message_queue.cpp:327)

I tried to remove all projects from the project list, in case Godot was doing something with the projects in that list before editing a project, but even with an empty list, there are 3 instances of this error when launching Godot to the empty project list.

Steps to reproduce

Error 1.

Error 2.

Minimal reproduction project

Mini project with a Node2d and a TextEdit node. MRP - flush.zip

MRP for the console error when launching Godot will be simply Godot with the same version as I am using.

AThousandShips commented 1 year ago

This has been solved, please use a more recent version, duplicate of:

Lemonymous commented 1 year ago

Thank you!