App crashes while line breaking text for rendering
Open
- Dominant language
- C#
- Stars
- 7.7k
- Forks
- 1.3k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 61
Description
### Description
The issue was found by Visual Studio team while analyzing crashes related to GitHub Copilot Chat
### Reproduction Steps
1. Unzip and open in VS [WpfTextCrash.zip](https://github.com/user-attachments/files/24831793/WpfTextCrash.zip)
2. Build and run
3. Click Repro button
### Expected behavior
App does not crash
### Actual behavior
App crashes. 100% repro on win11 25H2 with 200% DPI monitor
### Regression?
Regression introduced by #6857
### Known Workarounds
_No response_
### Impact
_No response_
### Configuration
Win 11 25H2, 200% DPI monitor
### Other information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.