Repository: godot
Issue: Executing `AcceptDialog.popup` function crashes Godot
Labels: bug,platform:linuxbsd,topic:porting,crash

### Tested versions

4.3.dev. custom_build 4aa5c80c07f136ee184e82687df7ec1b966226aa

### System information

Ubuntu 22.04 CI

### Issue description

Executing `AcceptDialog.popup` function crashes Godot


**Godot version:**
4.3.dev.custom_build

**OS**
Ubuntu 22.04 CI

**Issue description:**
When executing (this code was automatically minimized, so it is possible, that an even more "minimal" project can be created)
```
extends Node
func _process(delta):
	var temp_variable127 = AcceptDialog.new()
	add_child(temp_variable127)
	temp_variable127.set_mouse_passthrough_polygon(PackedVector2Array([Vector2(-7825.71826171875, -3445.1240234375), Vector2(0.60586595535278, -0.79556673765182), Vector2(0.62360888719559, -0.78173649311066), Vector2(-9059.12890625, 8556.0234375), Vector2(0.9810546040535, 0.19373115897179), Vector2(0.80430150032043, 0.59422141313553), Vector2(0.08388122171164, -0.99647575616837), Vector2(-8097.9912109375, 3987.6806640625), Vector2(-2684.73559570312, -1563.79406738281), Vector2(-8575.1357421875, 9734.58203125), Vector2(9460.3125, 6858.078125), Vector2(0.92194396257401, 0.38732326030731), Vector2(6970.59375, 788.003234863281), Vector2(4732.271484375, -6778.92529296875), Vector2(-0.66412621736526, -0.74762052297592), Vector2(943.065856933594, -2798.08813476562), Vector2(-0.26218309998512, 0.96501809358597), Vector2(7671.623046875, -469.211334228516), Vector2(-890.592346191406, -7067.0478515625), Vector2(0.50908678770065, 0.86071515083313), Vector2(-80.1020889282227, 0), Vector2(0.7402052283287, 0.67238092422485), Vector2(-6933.97509765625, 8539.6884765625), Vector2(0.37804868817329, 0.92578572034836), Vector2(5660.412109375, -7545.669921875)]))
	temp_variable127.set_force_native(true)
	temp_variable127.connect(StringName(""), Callable(BoxMesh.new(),""), 4528)
	temp_variable127.popup(Rect2i(Vector2i(-9583, -4064), Vector2i(1427, -2830)))
```
Godot crashes:
```
Godot Engine v4.3.dev.custom_build - https://godotengine.org
thirdparty/harfbuzz/src/OT/name/../../hb-open-type.hh:543:11: runtime error: index 2 out of bounds for type 'NameRecord [1]'
thirdparty/harfbuzz/src/OT/name/../../hb-open-type.hh:543:11: runtime error: index 2 out of bounds for type 'NameRecord [1]'
ERROR: Method argument to Callable constructor must be a non-empty string.
   at: Callable (core/variant/callable.cpp:396)
ERROR: Cannot connect to '': the provided callable is null.
   at: connect (core/object/object.cpp:1372)
ERROR: Rect2i size is negative, this is not supported. Use Rect2i.abs() to get a Rect2i with a positive size.
   at: intersects (./core/math/rect2i.h:56)
WARNING: Could not set V-Sync mode. V-Sync is not supported.
     at: set_use_vsync (platform/linuxbsd/x11/gl_manager_x11.cpp:374)
ERROR: Unhandled XServer error: BadLength (poly request too large or internal Xlib length error)
   Major opcode of failed request: 51
   Serial number of failed request: 0
   Current serial number in output stream: 207
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:1129)
ERROR: Unhandled XServer error: BadLength (poly request too large or internal Xlib length error)
   Major opcode of failed request: 13
   Serial number of failed request: 0
   Current serial number in output stream: 208
   at: default_window_error_handler (platform/linuxbsd/x11/display_server_x11.cpp:1129)
timeout: sending signal TERM to command ‘xvfb-run’
```

This example was found by Godot fuzzer - [Qarminer](https://github.com/qarmin/Qarminer), so it is quite unlikelly that this code could be used in real project, but still this should be handled gracefully.

Memory leaks or asan backtraces are visible when using Godot build with sanitizers support - https://github.com/qarmin/GodotBuilds/actions (linux -> linux-editor-sanitizers)

   

### Steps to reproduce

Above

### Minimal reproduction project (MRP)

Above