Repository: godot
Issue: Godot sometimes (often) crashes on Linux when loading a project
Labels: bug,topic:editor,needs testing,crash

### Tested versions

4.2.2.stable

### System information

Godot v4.2.2.stable.mono - Ubuntu 22.04.4 LTS 22.04 - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1050 Ti (nvidia; 535.171.04) - Intel(R) Core(TM) i5-6600 CPU @ 3.30GHz (4 Threads)

### Issue description

As the title says. It does not matter which project and just crashes sometimes and sometimes not.
Here is the output from creating a new project (where I got a backtrace):
```
Editing project: /home/me/godot4/Empty
Godot Engine v4.2.2.stable.mono.official.15073afe3 - https://godotengine.org
EditorSettings: Save OK!
vkEnumerateInstanceVersion not available, assuming Vulkan 1.0.
Unloading: Disposing tracked instances...
Unloading: Finished disposing tracked instances.
XR: Clearing primary interface
XR: Removed interface "Native mobile"
XR: Removed interface "OpenXR"
PulseAudio: context terminated
Vulkan API 1.3.242 - Forward+ - Using Vulkan Device #0: NVIDIA - NVIDIA GeForce GTX 1050 Ti
me@darkbreed ~/a/Godot_v4.2.2-stable_mono_linux_x86_64>  

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.2.2.stable.mono.official (15073afe3856abd2aa1622492fe50026c7d63dc1)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7ff4fb233520] (??:0)
[2] /home/me/apps/Godot_v4.2.2-stable_mono_linux_x86_64/Godot_v4.2.2-stable_mono_linux.x86_64() [0x3c47fe0] (??:0)
[3] /home/me/apps/Godot_v4.2.2-stable_mono_linux_x86_64/Godot_v4.2.2-stable_mono_linux.x86_64() [0x3c04b37] (??:0)
[4] /home/me/apps/Godot_v4.2.2-stable_mono_linux_x86_64/Godot_v4.2.2-stable_mono_linux.x86_64() [0xab996d] (??:0)
[5] /home/me/apps/Godot_v4.2.2-stable_mono_linux_x86_64/Godot_v4.2.2-stable_mono_linux.x86_64() [0x3bd4415] (??:0)
[6] /home/me/apps/Godot_v4.2.2-stable_mono_linux_x86_64/Godot_v4.2.2-stable_mono_linux.x86_64() [0x4aeb09] (??:0)
[7] /home/me/apps/Godot_v4.2.2-stable_mono_linux_x86_64/Godot_v4.2.2-stable_mono_linux.x86_64() [0x3ffea97] (??:0)
[8] /home/me/apps/Godot_v4.2.2-stable_mono_linux_x86_64/Godot_v4.2.2-stable_mono_linux.x86_64() [0x41e7c5] (??:0)
[9] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7ff4fb21ad90] (??:0)
[10] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7ff4fb21ae40] (??:0)
[11] /home/me/apps/Godot_v4.2.2-stable_mono_linux_x86_64/Godot_v4.2.2-stable_mono_linux.x86_64() [0x42b25a] (??:0)
-- END OF BACKTRACE --
================================================================
```
Here is a different BT:
```
================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v4.2.2.stable.mono.official (15073afe3856abd2aa1622492fe50026c7d63dc1)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x42520) [0x7f000701c520] (??:0)
[2] /lib64/ld-linux-x86-64.so.2(+0xb533) [0x7f0007325533] (??:0)
[3] /lib64/ld-linux-x86-64.so.2(+0xc211) [0x7f0007326211] (??:0)
[4] /lib64/ld-linux-x86-64.so.2(+0x12f71) [0x7f000732cf71] (??:0)
[5] /lib64/ld-linux-x86-64.so.2(+0x15dae) [0x7f000732fdae] (??:0)
[6] /lib/x86_64-linux-gnu/libGLX_nvidia.so.0(+0x5510a) [0x7f000352e10a] (??:0)
[7] /lib/x86_64-linux-gnu/libGLX_nvidia.so.0(+0x9d4ff) [0x7f00035764ff] (??:0)
[8] /lib/x86_64-linux-gnu/libnvidia-glcore.so.535.171.04(+0x18d213e) [0x7f0001ec113e] (??:0)
[9] /lib/x86_64-linux-gnu/libnvidia-glcore.so.535.171.04(+0x1867e14) [0x7f0001e56e14] (??:0)
[10] /home/me/apps/Godot_v4.2.2-stable_mono_linux_x86_64/Godot_v4.2.2-stable_mono_linux.x86_64() [0x1056ea6] (??:0)
[11] /home/me/apps/Godot_v4.2.2-stable_mono_linux_x86_64/Godot_v4.2.2-stable_mono_linux.x86_64() [0x1057f4c] (??:0)
[12] /home/me/apps/Godot_v4.2.2-stable_mono_linux_x86_64/Godot_v4.2.2-stable_mono_linux.x86_64() [0x497837] (??:0)
[13] /home/me/apps/Godot_v4.2.2-stable_mono_linux_x86_64/Godot_v4.2.2-stable_mono_linux.x86_64() [0x4a214b] (??:0)
[14] /home/me/apps/Godot_v4.2.2-stable_mono_linux_x86_64/Godot_v4.2.2-stable_mono_linux.x86_64() [0x4a3ed2] (??:0)
[15] /home/me/apps/Godot_v4.2.2-stable_mono_linux_x86_64/Godot_v4.2.2-stable_mono_linux.x86_64() [0x3fa36b1] (??:0)
[16] /home/me/apps/Godot_v4.2.2-stable_mono_linux_x86_64/Godot_v4.2.2-stable_mono_linux.x86_64() [0x4ab96f] (??:0)
[17] /home/me/apps/Godot_v4.2.2-stable_mono_linux_x86_64/Godot_v4.2.2-stable_mono_linux.x86_64() [0x3ffea97] (??:0)
[18] /home/me/apps/Godot_v4.2.2-stable_mono_linux_x86_64/Godot_v4.2.2-stable_mono_linux.x86_64() [0x41e7c5] (??:0)
[19] /lib/x86_64-linux-gnu/libc.so.6(+0x29d90) [0x7f0007003d90] (??:0)
[20] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80) [0x7f0007003e40] (??:0)
[21] /home/me/apps/Godot_v4.2.2-stable_mono_linux_x86_64/Godot_v4.2.2-stable_mono_linux.x86_64() [0x42b25a] (??:0)
-- END OF BACKTRACE --
================================================================
```

But sometimes instead of a BT I only get:
```
free(): invalid size
```
### Steps to reproduce

Unfortunately I don't have a way to reliably reproduce this. I just open projects and about half of the time Godot crashes.

### Minimal reproduction project (MRP)

NA