godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
88.79k stars 20.13k forks source link

Godot crashes after ```Index p_index = 0 is out of bounds (size() = 0)``` error. #95525

Open em-s-h opened 4 weeks ago

em-s-h commented 4 weeks ago

Tested versions

System information

Godot v4.3.rc3 - Arch Linux #1 SMP PREEMPT_DYNAMIC Sun, 11 Aug 2024 16:19:06 +0000 - Wayland - Vulkan (Forward+) - integrated Intel(R) HD Graphics 5500 (BDW GT2) - Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz (4 Threads)

Issue description

Godot will randomly print Parameter "sd" is null and Index p_index = 0 is out of bounds (size() = 0) errors and then crash, so far I've no clue on how to trigger this error.

Error:

ERROR: Parameter "sd" is null.
   at: _shaped_text_is_ready (modules/text_server_adv/text_server_adv.cpp:6425)
ERROR: Parameter "sd" is null.
   at: _shaped_text_set_custom_ellipsis (modules/text_server_adv/text_server_adv.cpp:4153)
ERROR: ShapedTextDataAdvanced invalid.
   at: _shaped_text_overrun_trim_to_width (modules/text_server_adv/text_server_adv.cpp:5086)
ERROR: Parameter "sd" is null.
   at: _shaped_text_get_size (modules/text_server_adv/text_server_adv.cpp:6535)
ERROR: FATAL: Index p_index = 0 is out of bounds (size() = 0).
   at: get (./core/templates/cowdata.h:205)

================================================================
handle_crash: Program crashed with signal 4
Engine version: Godot Engine v4.3.rc3.official (03afb92efa18874da19f7fc185a32c005d20aa1d)
Dumping the backtrace. Please include this when reporting the bug to the project developer.
[1] /usr/lib/libc.so.6(+0x3d1d0) [0x7bbb46a851d0] (??:0)
[2] /home/esh/.local/bin/godot_v4.3-rc3() [0x26814ee] (??:0)
[3] /home/esh/.local/bin/godot_v4.3-rc3() [0x24fc234] (??:0)
[4] /home/esh/.local/bin/godot_v4.3-rc3() [0x26f3478] (??:0)
[5] /home/esh/.local/bin/godot_v4.3-rc3() [0x48001ed] (??:0)
[6] /home/esh/.local/bin/godot_v4.3-rc3() [0x43147a4] (??:0)
[7] /home/esh/.local/bin/godot_v4.3-rc3() [0x23b6ac7] (??:0)
[8] /home/esh/.local/bin/godot_v4.3-rc3() [0x527a84] (??:0)
[9] /home/esh/.local/bin/godot_v4.3-rc3() [0x4202b2] (??:0)
[10] /usr/lib/libc.so.6(+0x25e08) [0x7bbb46a6de08] (??:0)
[11] /usr/lib/libc.so.6(__libc_start_main+0x8c) [0x7bbb46a6decc] (??:0)
[12] /home/esh/.local/bin/godot_v4.3-rc3() [0x43d45a] (??:0)
-- END OF BACKTRACE --
================================================================

Steps to reproduce

As of now this error seems to happen randomly when using godot.

Minimal reproduction project (MRP)

N/A

akien-mga commented 4 weeks ago

Could you compile Godot from source with debug symbols (scons dev_build=yes) and see if you can reproduce the crash and get a more detailed backtrace?

Calinou commented 4 weeks ago

so far I've no clue on how to trigger this error.

I suggest recording a video of the Godot window when running it, so you can track down what you were doing when it crashed. You can then trim the video to the last 20 seconds or so and upload it here.

Nodragem commented 3 weeks ago

is that happening on an empty project?

em-s-h commented 3 weeks ago

is that happening on an empty project?

I haven't tested that yet since I'm trying to find what causes this error to happen.

sleepinbagz commented 2 weeks ago

I am having the same issues, tried moving my save file to laptop to work on my game during lunch breaks, ended up not loading and now it does the same thing on my main PC. Reinstalled Godot multiple times, deleted .godot folder as others suggested. Blank projects load, but somehow my back up zips are even getting the same issue as far back as over 30 saves ago,

I've been going over scripts in notepad trying to find the origin of this and deleting things deemed as problematic and I can;t seem to get any results.

Any help would be greatly appreciated.

image