dotnet / dotnet/wpf

RichTextBox Select Will cause the main thread to freeze and memory to continue to increase

Open
#7,701 5 comments 1 reaction 0 assignees View on GitHub
Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

### Description

After loading FlowDocument, dragging and selecting some elements with the mouse can cause the program to get stuck.This will not happen if I use the xml formatting tool to format the text and then load it.

### Reproduction Steps

[bug.zip](https://github.com/dotnet/wpf/files/11186990/bug.zip)
This is the testing program
Xaml exports flowdocument to 1. txt ,
1.xml: I use the xml tool to format

### Expected behavior

can freely select

### Actual behavior

Program stuck, memory overflow

https://user-images.githubusercontent.com/20938585/230810785-74935978-5249-4f28-be56-09df47d4a83c.mp4

### Regression?

_No response_

### Known Workarounds

_No response_

### Impact

_No response_

### Configuration

_No response_

### Other information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.