Open 0xd4d opened 5 years ago
@miguep, would you mind taking a look?
I'll give it a look
The demo
<Grid>
<TextBox x:Name="Txt"></TextBox>
</Grid>
public MainWindow()
{
InitializeComponent();
Txt.Text = new string('\u0483', 550);
}
Doesn't look like a DWRITE issue.
One good news is it can not break the UWP application. See https://github.com/Microsoft/microsoft-ui-xaml/issues/194
winver
) win 10Does the bug reproduce also in WPF for .NET Framework 4.8?: yes
Problem description:
If there are too many combining marks or other special chars on one line and you try to show this text in a WPF textbox or WPF text editor, the application crashes.
Actual behavior:
Crash
Expected behavior:
The extra special chars are either ignored or a .NET exception is thrown.
Minimal repro:
Paste this text in a WPF textbox or a WPF text editor (it's
new string ('\u0483', 550)
)Here's code that generates it, don't try to display it in the VS C# REPL, it will crash VS: