godotengine / godot

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

Editor hangs on "Quit to Project List" #69418

Open EvanNibbe opened 1 year ago

EvanNibbe commented 1 year ago

Godot version

Godot Engine v4.0.beta.custom_build.55dae3017

System information

Ubuntu 20.04.5 LTS (64 bit) AMD Ryzen 9 5900x 12-core, AMD Dimgrey_cavefish GPU is AMD 6600XT

Issue description

When I pressed on the tab "Projects" and then "Quit to Project List" in the dropdown menu, the editor hangs, it did nothing for over 1 hour after I pressed "save and close" on the dialogue box that pops up.

Steps to reproduce

I used Godot as it existed on GitHub on November 28th at noon, and I commented out each instance of "statistics();" in core/object/message_queue.cpp (I checked to make sure the function does not alter state at all, all it does is use up memory on the terminal when importing large and complex scenes on startup). I then compiled Godot with "scons target=editor CXXFLAGS=-O3 use_lto=yes platform=linuxbsd" I then built a new project called "testing_crash_on_connect_signal_on_mouse_entered" And I implemented the following minimal reproduction project (attached below). Note: the only parts of this project that I built was the one MeshInstance3D scene called chief_outer.tscn, and the script called chief_outer.gd. testing_crash_on_connect_signal_on_mouse_entered.zip

Note: I did keep Godot open for 24 hours on my computer before pressing "quit to project list".

Minimal reproduction project

testing_crash_on_connect_signal_on_mouse_entered.zip

ulvido commented 1 year ago

similar to this also happens for Godot_v4.0-beta8_win64

reproduce:

editor does nothing. not freezes like even you didnt click.

after this, if you manually save the changes (Ctrl + S) and then go to Project > Quit to Project List , it works.

error on console: image