Repository: godot
Issue: Editor crash in Linux (X connection to :0.0 broken)
Labels: platform:linuxbsd,topic:porting,crash

### Tested versions

Happened in v4.3.beta3.official [82cedc83c]

### System information

Arch Linux <span>#</span>1 SMP PREEMPT_DYNAMIC Fri, 12 Jul 2024 00:06:53 +0000 - Tty - GLES3 (Compatibility) - Mesa Intel(R) Graphics (ADL GT2) - 12th Gen Intel(R) Core(TM) i5-1235U (12 Threads)

### Issue description

The editor crashed, I'm not sure what I was doing at the time. This was printed in the console:

```
X connection to :0.0 broken (explicit kill or server shutdown).
ERROR: BUG: Unreferenced static string to 0: _compression
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: _skip_save_
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: @export_range
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: @export_multiline
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: @export
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: @warning_ignore
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: @icon
   at: unref (core/string/string_name.cpp:129)
ERROR: Pages in use exist at exit in PagedAllocator: N7Variant5Pools11BucketLargeE
   at: ~PagedAllocator (./core/templates/paged_allocator.h:170)
ERROR: Pages in use exist at exit in PagedAllocator: N7Variant5Pools12BucketMediumE
   at: ~PagedAllocator (./core/templates/paged_allocator.h:170)
ERROR: Pages in use exist at exit in PagedAllocator: N7Variant5Pools11BucketSmallE
   at: ~PagedAllocator (./core/templates/paged_allocator.h:170)
ERROR: BUG: Unreferenced static string to 0: project_settings_changed
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: menu_changed
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: animation_libraries_updated
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: mixer_applied
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: mixer_updated
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: caches_cleared
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: move_selection_commit
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: move_selection_begin
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: insert_key
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: move_selection
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: animation_step_changed
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: picker_created
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: autoshrink_changed
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: process_frame
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: physics_frame
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: interface_added
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: animation_player_changed
   at: unref (core/string/string_name.cpp:127)
ERROR: BUG: Unreferenced static string to 0: avoidance_debug_changed
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: button_up
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: fallback_changed
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: frame_pre_draw
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: frame_post_draw
   at: unref (core/string/string_name.cpp:129)
ERROR: BUG: Unreferenced static string to 0: editor_script_changed
   at: unref (core/string/string_name.cpp:129)
```

I'm not sure how to title this, feel free to change it or suggest a better one.

### Steps to reproduce

Unknown

### Minimal reproduction project (MRP)

N/A