-
-
Notifications
You must be signed in to change notification settings - Fork 957
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
Stride TextBlock newline infinite loop and memory leak #2514
Labels
bug
Something isn't working
Comments
roku674
changed the title
[URGENT] fix needed: Stride TextBlock newline infinite loop and memory leak
Stride TextBlock newline infinite loop and memory leak
Nov 9, 2024
can you make a repro to try it out |
I just obtained a stacktrace
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's an infinite loop at TextBlock::UpdateWrappedText ( https://github.com/stride3d/stride/blame/master/sources/engine/Stride.UI/Controls/TextBlock.cs ) when using The text Combat that was most likely placed vertically. These are screenshots from debugging:
As far as I noticed, I think there's not enough space calculated for the first row, plus and the m character keeps being added and deleted because somehow indices are being set to 0 ad infinitum (or well, until the game crashes because of an out of memory error).
The text was updated successfully, but these errors were encountered: