-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TextEdit in plugin with wrap and fit_content_height
enabled can result in crash
#80546
Comments
It seems to be stuck in an infinite loop, similar to #75713. |
fit_content_height
enabled can result in crash
I encountered the same problem while developing an editor plugin. As soon as any TextEdit node gets into a state where it would need to grow to fit the contained text, either by typing in it or by resizing the GUI, Godot as a whole just freezes. This bug makes it impossible for Godot to have editor plugins with dynamic GUI text contents, so somebody please look into this. |
I can confirm experiencing this on macOS as well, latest version on an M2 Macbook 24GB. What makes this significantly worse is a plugin automatically loading data and building UI at start, once hitting this limit, will create continuous crashes requiring the user to edit data outside of Godot to remove the offending data load the plugin uses an |
Cannot reproduce in v4.2.1.stable.official [b09f793] or master (v4.3.dev.custom_build [11d3768])
|
Godot version
4.2.dev3, 4.1.1-stable
System information
Windows 10, (probably macOS 13.4.1 as well)
Issue description
When used in a plugin, a TextEdit that has fit_content_height and wrap mode enabled but only limited space to extend to will crash godot once the text get's too long.
I discovered this bug while fixing a bug for dialogic: https://github.com/coppolaemilio/dialogic/issues/1675
The user that discovered it was using mac OS 13.4.1 and godot 4.1.1 so I assume that this issue is present there too.
This issue seemed similar, but has to do with the RichTextLabel and is apparently fixed: RichTextLabel freezes Godot 4.1-rc2 on Fit Content #78932
I was not able to reproduce the problem in running games, only in plugins!
Steps to reproduce
---- Scroll Container (make it relatively small, so you need less text to enter for the crash)
-------- Vbox (expand horizontal & vertical)
----------- TextEdit (fit_content_height = true; wrap_mode = Boundary)
-> once the text edit fills the whole Scroll Container godot crashes
Minimal reproduction project
TestTextEditCrashBug.zip (has been created following the steps above)
-> crash
The text was updated successfully, but these errors were encountered: