You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 4.4 beta, it's very trivial to trigger an error in TextEdit where you consistently get the following error when setting the text: <anonymous lambda>(): Condition "total_visible_line_count < 0" is true. <C++ Source> scene/gui/text_edit.cpp:444 @ remove_range() <Stack Trace> Benchmark.gd:12 @ <anonymous lambda>()
It's not just an error spam, this also messes up the scrollbar and makes it impossible to scroll down in the text, so it pretty much completely ruins the node if you need to do this.
Haven't made one, but I provided the code to replicate this.
The text was updated successfully, but these errors were encountered:
MewPurPur
changed the title
TextEdit with line wrapping gets an unusable
TextEdit with line wrapping becomes unusable when setting text via code.
Jan 30, 2025
MewPurPur
changed the title
TextEdit with line wrapping becomes unusable when setting text via code.
TextEdit with line wrapping becomes unusable when repeatedly setting text via code.
Jan 30, 2025
Tested versions
4.4 betas
System information
Godot v4.4.beta2 - Pop!_OS 22.04 LTS on X11 - X11 display driver, Multi-window, 1 monitor - OpenGL 3 (Compatibility) - Mesa Intel(R) Graphics (ADL GT2) - 12th Gen Intel(R) Core(TM) i5-1235U (12 threads)
Issue description
In 4.4 beta, it's very trivial to trigger an error in TextEdit where you consistently get the following error when setting the text:
<anonymous lambda>(): Condition "total_visible_line_count < 0" is true. <C++ Source> scene/gui/text_edit.cpp:444 @ remove_range() <Stack Trace> Benchmark.gd:12 @ <anonymous lambda>()
It points here:
godot/scene/gui/text_edit.cpp
Line 444 in a013481
It's not just an error spam, this also messes up the scrollbar and makes it impossible to scroll down in the text, so it pretty much completely ruins the node if you need to do this.
Sorry for the hideous crop:
2025-01-31.00-04-33.mp4
Steps to reproduce
Minimal reproduction project (MRP)
Haven't made one, but I provided the code to replicate this.
The text was updated successfully, but these errors were encountered: