dotnet / dotnet/wpf

Running on .NET Core / .NET 5.0 exhibits huge memory leak when resizing, and uses alot more memory in general

Open
#4,265 19 comments 28 reactions 0 assignees View on GitHub
Investigate
Dominant language
C#
Stars
7.7k
Forks
1.3k
Avg merge
1d 11h
Merged PRs (30d)
61

Description

In Avalonia we have had a similar problem, and one of our users tried to compare Avalonia and WPF and found that WPF also has the same/similar issue.

See https://github.com/AvaloniaUI/Avalonia/issues/5646 for details.

* .NET Core Version: 5.0.3
* Windows version: Windows 10
* Does the bug reproduce also in WPF for .NET Framework 4.8?: No
* Is this bug related specifically to tooling in Visual Studio (e.g. XAML Designer, Code editing, etc...)? If yes, please file the issue via the instructions [here](https://docs.microsoft.com/visualstudio/ide/how-to-report-a-problem-with-visual-studio?view=vs-2019). no.
* Security issues and bugs should be reported privately, learn more via our [responsible disclosure guidelines](https://github.com/dotnet/wpf/blob/master/README.md#reporting-security-issues-and-security-bugs).



**Problem description:**
For example, WPF:
**WPF IDLE**
![image](https://user-images.githubusercontent.com/29813338/110678442-5f3a0b00-81e7-11eb-8d75-aef8761357c9.png)

**WPF After Resizing**
![image](https://user-images.githubusercontent.com/29813338/110678466-65c88280-81e7-11eb-8869-765afc032709.png)

**Actual behavior:**

**Expected behavior:**

**Minimal repro:**
[AvaloniaTest.zip](https://github.com/AvaloniaUI/Avalonia/files/6118107/AvaloniaTest.zip) (File says Avalonia, but contains WPF repros also)

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.