total_visible_line_count
decreases indefinitely when setting TextEdit
's text with boundary wrap mode
#102279
Labels
Milestone
Tested versions
Reproducible in: 4.4-dev2 and above, starting with commit 2fc5321
System information
Godot v4.4.beta (000dd0bdc) - Arch Linux # 1 SMP PREEMPT_DYNAMIC Sat, 18 Jan 2025 02:26:57 +0000 on Wayland - X11 display driver, Multi-window, 3 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1080 Ti (nvidia; 565.77) - AMD Ryzen 5 2600X Six-Core Processor (12 threads)
Issue description
I keep getting the following error when setting the text of a
TextEdit
:Steps to reproduce
TextEdit
text
to something where the first line is long enough to lead to wrap over. The text also needs at least a second line, but it doesn't need to wrap to produce the error.Condition "total_visible_line_count < 0" is true
.For the MRP below, run the project and repeatedly press the button in the center of the screen. It also prints the current
total_visible_line_count
, and as you can see it decreases by three with every press of the button, and never increases.Also, if you swap out the two lines so the first one does not wrap and the second line does, you get the opposite problem: the
total_visible_line_count
increases with every press of the button.Minimal reproduction project (MRP)
visible_line_count_mrp.zip
The text was updated successfully, but these errors were encountered: