Skip to content
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

Memory leak on some graphic cards #10005

Open
ShannonZ opened this issue Oct 28, 2024 · 0 comments
Open

Memory leak on some graphic cards #10005

ShannonZ opened this issue Oct 28, 2024 · 0 comments
Labels
Investigate Requires further investigation by the WPF team.

Comments

@ShannonZ
Copy link

Description

Here is a minimal reproducible demo.
There is a rapid memory increment after clicking the minimize button. I've tested this problem with different graphic cards (integrated and discrete ). Until now, the following cards could reproduce the memory leak issue:

  • NVIDIA GeForce GTX 1650
  • NVIDIA GeForce GTX 3050
  • NVidia Geforce GT 710
  • ATI 6750
  • Intel UHD 630 Graphics (integrated with i7-9700)

I've also tested the problem on different OSes (win10 LTSC2018-2022, win10 home, win 11 home) and .NET versions (framework 4.5 4.6 4.7 4.8, dotnet6 8). Unfortunately, all these software conditions have the same problem.

For Intel UHD 630, driver versions from old 27.x to the latest 30.x were tested, no help.

3GB version dump file

Reproduction Steps

This video is a step-by-step example demonstrating how to reproduce this issue.

Expected behavior

There should be no memory leaks when running on different graphics cards.

Actual behavior

Memory leaks occur when running on some graphics cards.

Regression?

No response

Known Workarounds

  1. Comment the WindowChrome part out in Style could solve the leak problem. But I don't know why; (No minimization button, should press win+D to minimize the window)
    image;
  2. Using software-rendering;
  3. Restore the window to the normal state, those memory would be "released". Video;
  4. No obvious memory leak on NVIDIA Geforce RTX 4060 Laptop GPU, win 11

Impact

No response

Configuration

No response

Other information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Investigate Requires further investigation by the WPF team.
Projects
None yet
Development

No branches or pull requests

2 participants