godot icon indicating copy to clipboard operation
godot copied to clipboard

Godot 4 And Above Freezing When Saving Files

Open MMT007 opened this issue 10 months ago • 18 comments

Tested versions

  • Tested In Godot 4.0 stable and 4.2.1 Stable

System information

Godot v4.2.1.stable - Ubuntu 22.04.4 LTS 22.04 - Wayland - GLES3 (Compatibility) - Mesa Intel(R) HD Graphics (BYT) () - Intel(R) Celeron(R) CPU N2806 @ 1.60GHz (2 Threads)

Issue description

Sometimes When I Try To Save A Scene, Or Creating A Script To A Node, Godot Just Randomly Freezes And Becomes Unusable. It Usually Happens When I Try To Save A Scene, But It Also Happened When I Tried Creating A Script Or Saving A Node As A Scene. ( Godot 3.6-beta4 and below work as intended )

Screencast from 07-04-2024 18:38:56.webm

Steps to reproduce

  • Open Godot 4.0 stable or Above
  • Load A Project
  • Save A Scene/Create A Script
  • Bug Happens

Minimal reproduction project (MRP)

N/A

--verbose Output

Godot Log.txt

MMT007 avatar Apr 07 '24 21:04 MMT007

I'm seeing this issue too with Godot 4.2.2-rc3 and 4.3-dev5. I don't think it happened with 4.2.1, maybe it did but not that frequently. It happens randomly.

My system is Debian GNU/Linux 12.5, X11, Nvidia RTX 2700 Super with official drivers 525.147.05.

Godot becomes completely unresponsive, except that I can still switch from the dialog to the main window but it doesn't react to anything. I have to kill it from a terminal.

berarma avatar Apr 18 '24 08:04 berarma

I'm seeing this issue too with Godot 4.2.2-rc3 and 4.3-dev5. I don't think it happened with 4.2.1, maybe it did but not that frequently. It happens randomly.

My system is Debian GNU/Linux 12.5, X11, Nvidia RTX 2700 Super with official drivers 525.147.05.

Godot becomes completely unresponsive, except that I can still switch from the dialog to the main window but it doesn't react to anything. I have to kill it from a terminal.

Me, along with some peoole on discord found that using --single-window when opening godot, helps minimize the freezes

MMT007 avatar Apr 18 '24 09:04 MMT007

Thanks @MMT007.

@Sauermann What more testing can we do? Do you need some more info?

It seems to happen after the actual saving of files since I haven't lost any edits so far. It's a soft lock, a TERM signal forces quit.

berarma avatar Apr 18 '24 10:04 berarma

I get this issue as well in Godot 4.2.2. I open my project, do nothing else then just press Ctrl+S, and then Godot hangs. I have repeated this 3 times (killed the Godot process, reopened Godot, press Ctrl+S), and it hangs everytime.

This never happened to me on Godot 4.1. I'm on Windows.

Funny as I was typing this it suddenly unfroze, after about one minute. And now I can press Ctrl+S repeatedly and it doesn't freeze. Oh well.

tufduckhotmailcom avatar Apr 20 '24 05:04 tufduckhotmailcom

Ok, I must correct myself. I just downloaded Godot 4.1.4 and tried saving my project again. It immediately froze. So me saying it never happened in Godot 4.1 wasn't actually true.

But my old game which is completed now, and which I developed all the time in 4.1, (maybe about 100 hours in total) never froze. Not even a single time.

So it's something with my new project that's causing this. And it could be one of the addons I have installed. I will try to remove them and see is the issue goes away.

tufduckhotmailcom avatar Apr 20 '24 15:04 tufduckhotmailcom

i have this issue too, from time to time, not often, and then it hangs exactly on the same spot on the progress bar, around 70%

MMUTFX2053 avatar May 08 '24 21:05 MMUTFX2053

maybe this is useful to note, for those that are going to fix the bug, if godot freezes, and i open it up again the changes that i made before the freeze did get saved

MMUTFX2053 avatar May 08 '24 21:05 MMUTFX2053

took a screenshot, this is the exact spot where godot freezes for me every time, seems to be during thumbnail creation

Screenshot from 2024-05-14 00-14-42

MMUTFX2053 avatar May 13 '24 22:05 MMUTFX2053

In that case likely a duplicate of #70974 which was just fixed by #91630

Zireael07 avatar May 14 '24 09:05 Zireael07

I am experiencing the same issue as op, where it freezes at 100 percent, but it does still save my progress. I am on the latest dev build (Godot 4.3 dev 6) but it has happened ever since Godot 4.

I am using Debian 12 GNU/Linux with Gnome as my desktop manager.

Smorty10 avatar May 28 '24 18:05 Smorty10

@Smorty10 i think the fixes that @Zireael07 mentioned will fix the issue, but not 100% certain

MMUTFX2053 avatar May 28 '24 19:05 MMUTFX2053

I have this error too when i run a scene and changes are saved. Save windows hangs with 100% and i have to kill godot.

Godot v4.2.2.stable - Linux Mint 20 (Ulyana) - X11 - Vulkan (Mobile) - dedicated NVIDIA GeForce GTX 1660 Ti (nvidia; 535.171.04) - Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33GHz (4 Threads)

iconberg avatar Jun 05 '24 17:06 iconberg

@MMUTFX2053 A friend of mine is experiencing this issue as well. Did you ever get to pause the process and look where it's stuck?

QbieShay avatar Aug 11 '24 14:08 QbieShay

@QbieShay not sure what you mean, this happens sometimes during saving, but when it does godot freezes up completely, nothing else i can do but to terminate it and restart, but i did notice that the changes are getting saved, also, deleting the cache seems to help a bit, the freezes happen a bit less often.

MMUTFX2053 avatar Aug 11 '24 16:08 MMUTFX2053

I was talking about attaching a debugger to Godot to see where it's stuck. I'll see if friend can repro

QbieShay avatar Aug 11 '24 20:08 QbieShay

im still getting this crash, in 4.3 stable

MMUTFX2053 avatar Aug 16 '24 20:08 MMUTFX2053

I am also experiencing random crashes when saving on 4.4dev. It doesn't happen most of the time, but occasionally it will freeze at 100%, and I have to kill the process to stop it.

regulus79 avatar Sep 18 '24 23:09 regulus79

same here on 4.3stable, it block saving at 75% or 100%, my only solution is to kill app

gattolfo98 avatar Sep 22 '24 23:09 gattolfo98