Editor freezes when trying to save scene

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

Randomly when I’m saving a scene the editor freezes. I have no clue as to why and the debugger/game is not opened. It just happens randomly when trying to save. It is possible, however, to force close it by closing the “cmd” window (not sure what to call it, but the black window).

Does the project have a bunch of 3D assets? The editor may be doing something to those assets. It could also be some problem with the filesystem. BTW, you closed the program with Windows’ command prompt.

Ertain | 2022-08-04 23:28

No it only has 2d nodes and what i meant with the “cmd” windows is the black terminal godot window (not sure if thats actually windows command prompt)

Nonken | 2022-08-04 23:36

Most Probably Godot is saving or processing your scene in the background. If the scene is too heavy (MB) it takes time to save it. Ideally I always try to keep the debugger open. If this happens too often, try opening the project and the same scene with an external debugger (e.x: VSCode ) with --verbose --stdout --debug flags enabled to see what is going on.

Example: create a launch.json in .vscode folder

{
“name”: “Debug Godot Project”,
“type”: “cppvsdbg”,
“request”: “launch”,
“program”: “${workspaceFolder}/bin/godot.exe”,
“args”: [
“–editor”,
“–path”,
“[the path to your project root folder]”,
“–verbose”,
“–debug”,
“–stdout”
],
“stopAtEntry”: false,
“cwd”: “${workspaceFolder}”,
“environment”: ,
“console”: “internalConsole”,
“visualizerFile”: “${workspaceFolder}/platform/windows/godot.natvis”
//“preLaunchTask”: “build godot editor in debug mode”
},

OzzRC | 2022-11-15 06:19