Repository: godot
Issue: handle_crash: Program crashed with signal 4
Labels: bug,topic:editor,topic:plugin,needs testing,crash

### Tested versions

Engine version: Godot Engine v4.2.1.stable.official (b09f793f564a6c95dc76acc654b390e68441bd01)


### System information

Ubuntu 20.04 LTS; Godot 4.2.1; OpenGL API 4.2 (Core Profile) Mesa 21.2.6 - Compatibility - Using Device: Intel Open Source Technology Center - Mesa DRI Intel(R) HD Graphics 4000 (IVB GT2)

### Issue description

I'm using neovim to edit gdscript file then it crashed.
I don't know how to reproduce it.
Startup command:
```
LANG=zh_CN.UTF-8 DRI_PRIME=1 ./Godot_v4.2.1-stable_linux.x86_64 ../godot/gindustry/project.godot --editor
```

Log:
```
ERROR: Index p_gutter = -1 is out of bounds (gutters.size() = 4).
   at: set_line_gutter_item_color (scene/gui/text_edit.cpp:5886)
ERROR: Index p_gutter = -1 is out of bounds (gutters.size() = 4).
   at: set_line_gutter_item_color (scene/gui/text_edit.cpp:5886)
ERROR: Index p_gutter = -1 is out of bounds (gutters.size() = 4).
   at: set_line_gutter_item_color (scene/gui/text_edit.cpp:5886)
ERROR: Index p_gutter = -1 is out of bounds (gutters.size() = 4).
   at: set_line_gutter_item_color (scene/gui/text_edit.cpp:5886)
ERROR: Index p_gutter = -1 is out of bounds (gutters.size() = 4).
   at: set_line_gutter_item_color (scene/gui/text_edit.cpp:5886)
ERROR: FATAL: Condition "!exists" is true.
   at: operator[] (./core/templates/hash_map.h:538)

================================================================
handle_crash: Program crashed with signal 4
Engine version: Godot Engine v4.2.1.stable.official (b09f793f564a6c95dc76acc654b390e68441bd01)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x43090) [0x7f9866797090] (??:0)
[2] ./Godot_v4.2.1-stable_linux.x86_64() [0x422f65c] (??:0)
[3] ./Godot_v4.2.1-stable_linux.x86_64() [0x657ddd] (??:0)
[4] ./Godot_v4.2.1-stable_linux.x86_64() [0x760bfc] (??:0)
[5] ./Godot_v4.2.1-stable_linux.x86_64() [0x755532] (??:0)
[6] ./Godot_v4.2.1-stable_linux.x86_64() [0x3b443a8] (??:0)
[7] ./Godot_v4.2.1-stable_linux.x86_64() [0x3b37d9d] (??:0)
[8] ./Godot_v4.2.1-stable_linux.x86_64() [0xa413e7] (??:0)
[9] ./Godot_v4.2.1-stable_linux.x86_64() [0xa41ccf] (??:0)
[10] ./Godot_v4.2.1-stable_linux.x86_64() [0x784763] (??:0)
[11] ./Godot_v4.2.1-stable_linux.x86_64() [0x3b2ce68] (??:0)
[12] ./Godot_v4.2.1-stable_linux.x86_64() [0x2098328] (??:0)
[13] ./Godot_v4.2.1-stable_linux.x86_64() [0x20eb73b] (??:0)
[14] ./Godot_v4.2.1-stable_linux.x86_64() [0x20ebfe1] (??:0)
[15] ./Godot_v4.2.1-stable_linux.x86_64() [0x4f945d] (??:0)
[16] ./Godot_v4.2.1-stable_linux.x86_64() [0x41ed28] (??:0)
[17] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7f9866778083] (??:0)
[18] ./Godot_v4.2.1-stable_linux.x86_64() [0x42aa6a] (??:0)
-- END OF BACKTRACE --
================================================================
```

Then I tried it again, and I got these:
```
user@user-Lenovo-G500:~/桌面$ LANG=zh_CN.UTF-8 DRI_PRIME=1 ./Godot_v4.2.1-stable_linux.x86_64 ../godot/gindustry/project.godot --editor
Godot Engine v4.2.1.stable.official.b09f793f5 - https://godotengine.org
/usr/lib/x86_64-linux-gnu/libxkbcommon.so.0: undefined symbol: xkb_utf32_to_keysym
/usr/lib/x86_64-linux-gnu/libxkbcommon.so.0: undefined symbol: xkb_keymap_key_get_mods_for_level
OpenGL API 4.2 (Core Profile) Mesa 21.2.6 - Compatibility - Using Device: Intel Open Source Technology Center - Mesa DRI Intel(R) HD Graphics 4000 (IVB GT2)
 
SCRIPT ERROR: Parse Error: Function "handle_camera_zoom()" not found in base self.
          at: GDScript::reload (res://contents/input_handlers/desktop/desktop.gd:53)
SCRIPT ERROR: Compile Error: 
          at: GDScript::reload (res://contents/content_list.gd:-1)
SCRIPT ERROR: Compile Error: 
          at: GDScript::reload (res://ui/main.gd:-1)
SCRIPT ERROR: Compile Error: 
          at: GDScript::reload (res://scripts/game/game.gd:-1)
SCRIPT ERROR: Compile Error: 
          at: GDScript::reload (res://types/world/tile.gd:-1)
SCRIPT ERROR: Compile Error: 
          at: GDScript::reload (res://types/world/chunk.gd:-1)
SCRIPT ERROR: Compile Error: 
          at: GDScript::reload (res://types/world/chunk_load_source.gd:-1)
SCRIPT ERROR: Compile Error: 
          at: GDScript::reload (res://types/world/world.gd:-1)
SCRIPT ERROR: Compile Error: 
          at: GDScript::reload (res://types/world/entity/entity.gd:-1)
SCRIPT ERROR: Compile Error: 
          at: GDScript::reload (res://types/world/entity/entity_adapter.gd:-1)
SCRIPT ERROR: Compile Error: 
          at: GDScript::reload (res://types/world/entity/controller_adapter.gd:-1)
SCRIPT ERROR: Compile Error: 
          at: GDScript::reload (res://types/game/player/input_handler.gd:-1)
SCRIPT ERROR: Compile Error: 
          at: GDScript::reload (res://scripts/global.gd:-1)
ERROR: Failed to load script "res://scripts/global.gd" with error "Parse error".
   at: load (modules/gdscript/gdscript.cpp:2788)
WARNING: 项目设置中启用了 blend 文件的导入，但是编辑器设置中没有配置 Blender 的路径。不会导入 blend 文件。
     at: _editor_init (modules/gltf/register_types.cpp:63)
SCRIPT ERROR: Parse Error: Function "handle_unhandled_input_event_mouse_button()" not found in base self.
          at: GDScript::reload (res://contents/input_handlers/desktop/camera.gd:12)
ERROR: Failed to load script "res://contents/input_handlers/desktop/camera.gd" with error "Parse error".
   at: load (modules/gdscript/gdscript.cpp:2788)
SCRIPT ERROR: Parse Error: Invalid operands "Vector2i" and "Vector2" for "+" operator.
          at: GDScript::reload (res://types/world/building/builder_adapter.gd:76)
ERROR: Failed to load script "res://types/world/building/builder_adapter.gd" with error "Parse error".
   at: load (modules/gdscript/gdscript.cpp:2788)
段错误 (核心已转储)
```

Then I tried run it with sudo. It launched correctly.

### Steps to reproduce

I don't know how to reproduce it.

### Minimal reproduction project (MRP)

I don't have it. But if you asked, I can provide the access of my repo.