Repository: godot
Issue: Program crashed with signal 11
Labels: bug,needs testing,crash

### Tested versions

- Happens in Godot v4.3.stable (77dcf97d8)

### System information

Godot v4.3.stable (77dcf97d8) - Windows 10.0.22631 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 4070 Laptop GPU (NVIDIA; 31.0.15.3820) - Intel(R) Core(TM) i9-14900HX (32 Threads)

### Issue description

Hi, I am saving my game by exporting it as a scene and then saving that to scene. I have this really weird issue where out of nowhere, my game crashes when saving. This happens without me doing something important in the game, it can even save propperly, then I go afk and wait for the autosave and it crahses when autosaving. This happens on windows and android (No other platforms tested) but only if I export the game, it doesn't happen when I run the game from the editor. I use only gdscript, so there should be no weird c++ code fucking with stuff on my end. This is the saving code:
```gdscript
func saveGame():
	GameManager.logging.logCustom("Started saving game", Logging.LogLevel.DEBUG)
	DisplayPopupSimple.new().init(2,"Saving game",15,DefaultColors.gray,DefaultColors.yellow,400,50).display()
	await get_tree().create_timer(0.1).timeout
	if !NodeActions.isNodeFreed(saveNode):
		print(1)
		var save:PackedScene = PackedScene.new()
		print(2)
		save.pack(saveNode)
		print(3)
		ResourceSaver.save(save,"user://saves/"+acitveSave+saveExtension)
		print(4)
		var file = FileAccess.open("user://saves/"+acitveSave+".savedata", FileAccess.WRITE)
		print(5)
		var json_string = JSON.stringify(activeSaveMetaData)
		print(6)
		file.store_line(json_string)
		print(7)
	else:
		GameManager.logging.logCustom("No save node present", Logging.LogLevel.ERROR)
	DisplayPopupSimple.new().init(2,"Game saved",15,DefaultColors.gray,DefaultColors.yellow,400,50).display()
	GameManager.logging.logCustom("Finished saving game", Logging.LogLevel.DEBUG)
```
And this is the error in the log 
```
[DEBUG - 15:58:39] Started saving game
1
2

================================================================
CrashHandlerException: Program crashed with signal 11
Engine version: Godot Engine v4.3.stable.official (77dcf97d82cbfe4e4615475fa52ca03da645dbd8)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] error(-1): no debug info in PE/COFF executable
[2] error(-1): no debug info in PE/COFF executable
[3] error(-1): no debug info in PE/COFF executable
[4] error(-1): no debug info in PE/COFF executable
[5] error(-1): no debug info in PE/COFF executable
[6] error(-1): no debug info in PE/COFF executable
[7] error(-1): no debug info in PE/COFF executable
[8] error(-1): no debug info in PE/COFF executable
[9] error(-1): no debug info in PE/COFF executable
[10] error(-1): no debug info in PE/COFF executable
[11] error(-1): no debug info in PE/COFF executable
[12] error(-1): no debug info in PE/COFF executable
[13] error(-1): no debug info in PE/COFF executable
[14] error(-1): no debug info in PE/COFF executable
[15] error(-1): no debug info in PE/COFF executable
[16] error(-1): no debug info in PE/COFF executable
[17] error(-1): no debug info in PE/COFF executable
[18] error(-1): no debug info in PE/COFF executable
[19] error(-1): no debug info in PE/COFF executable
[20] error(-1): no debug info in PE/COFF executable
[21] error(-1): no debug info in PE/COFF executable
[22] error(-1): no debug info in PE/COFF executable
[23] error(-1): no debug info in PE/COFF executable
[24] error(-1): no debug info in PE/COFF executable
[25] error(-1): no debug info in PE/COFF executable
[26] error(-1): no debug info in PE/COFF executable
[27] error(-1): no debug info in PE/COFF executable
[28] error(-1): no debug info in PE/COFF executable
[29] error(-1): no debug info in PE/COFF executable
-- END OF BACKTRACE --
================================================================
```
So it seems to crash while packing. I doubt that its some recursion when saving, because I checked my whole code for that like three times already, and also, then it wouldn't only happen randomly. 
Please, if someone can tell me what causes this / fix it, I would be sooo thankful because it makes my game kinda unplayable when every 10 minutes or so it just crashes and there is nothing you can do.

### Steps to reproduce

Start my game, play around a bit and afk while having autosave timer set to 1 minute, it should happen after like 10 minutes

### Minimal reproduction project (MRP)

Unfortunately I was not able to create a mrp, but if you want I can send you my whole game, but only in private dms or smth if it helps debugging (Its a really big project, I don't just want to share it pubicly here, sorry)