godotengine / godotengine/godot

run current scene crashes with no error report when a label is set using animation player

Open
#116,186 5 comments 0 reactions 0 assignees View on GitHub
bug crash needs testing needs work topic:animation topic:gui
Dominant language
C++
Stars
117k
Forks
26.8k
PR merge metrics
PR metrics pending

Description

### Tested versions

-Godot 4.5.1
- AMD Radeon RX 9070 XT
- os Kubuntu 24.04

### System information

Godot v4.5.1.stable - Steam Runtime 2 (soldier) 2 on X11 - X11 display driver, Multi-window, 3 monitors - Vulkan (Mobile) - dedicated AMD Radeon RX 9070 XT (RADV GFX1201) - Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz (8 threads) - 62.59 GiB memory

### Issue description

I'm using an animation player to trigger a function in the scrip on the root node. When triggered the function causes the running of the scene to crash. I have tried restarting godot and my pc, the crash it continues, strangely it only occurs when a this line runs: `label.set_text('Salutations Mortal! W')`

The issue doesn't occur if `label.set_text('Salutations Mortal!')` the crash occurs if a longer sentence is used. If the line is commented out no crash occurs. If the text is replaced with 'aaaaaaaaaaaaaaaaaaaaaa' it occurs again, one fewer 'a' and it doesn't.

I've used this method for displaying text a lot this is the first instance where its a problem. Not sure why. This is also significantly shorter text than I have used in other places. Calling a function to switch the text later on in the same animation doesn't have the same issue. Moving shot_12_text1() to later in the animation still causes the crash.

### Steps to reproduce

My set up:

Image

The scrpt containing the functions:

Image

The animation player activated shot_12_play() on frame 0 and shot_text1() on frame 1.

### Minimal reproduction project (MRP)

I'm not sure how to provide you with this, this is my first Godot project and its ~1GB compressed.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.