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

NavigationView memory leak #7322

Closed
1 of 2 tasks
brandon3343 opened this issue Jul 6, 2022 · 2 comments
Closed
1 of 2 tasks

NavigationView memory leak #7322

brandon3343 opened this issue Jul 6, 2022 · 2 comments
Labels
area-NavigationView NavView control bug Something isn't working duplicate This issue or pull request already exists product-winui3 WinUI 3 issues team-Controls Issue for the Controls team

Comments

@brandon3343
Copy link

Describe the bug

after navigate many times, memory usage is increased and has not been recycled.
both packaged and unpackaged has the problem.

Steps to reproduce the bug

  1. run demo project.
  2. click "Content Grid" item.
  3. click "Blank" item.
  4. repeat step 1-2 many many times.
  5. memory has not been recycled.(also appears when Frame Element IsNavigationStackEnabled="False")

Expected behavior

memory should be recycled.

Screenshots

leak

NuGet package version

WinUI 3 - Windows App SDK 1.1.1

Windows app type

  • UWP
  • Win32

Device form factor

Desktop

Windows version

Windows 11 (21H2): Build 22000

Additional context

demo is here

https://github.com/l619534951/NavMemLeak

it's created by VS2022 extendsion "Template Studio for WinUI (C#)", and all the code is default.
https://marketplace.visualstudio.com/items?itemName=TemplateStudio.TemplateStudioForWinUICs
Memory leak also appears in the project that I created by "Windows App SDK C# VS2022 Templates"

@brandon3343 brandon3343 added the bug Something isn't working label Jul 6, 2022
@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Jul 6, 2022
@ojhad ojhad added area-NavigationView NavView control team-Controls Issue for the Controls team product-winui3 WinUI 3 issues and removed needs-triage Issue needs to be triaged by the area owners labels Jul 11, 2022
@brandon3343
Copy link
Author

It seems to be the bug of CsWinRT,and also appears in a simple ListView with text, There is no good idea for that now, close issue.

@ghost ghost added the needs-triage Issue needs to be triaged by the area owners label Jul 12, 2022
@krschau
Copy link
Contributor

krschau commented Jul 15, 2022

Duplicate of #5978

@krschau krschau marked this as a duplicate of #5978 Jul 15, 2022
@ghost ghost removed the needs-triage Issue needs to be triaged by the area owners label Jul 15, 2022
@krschau krschau added the duplicate This issue or pull request already exists label Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-NavigationView NavView control bug Something isn't working duplicate This issue or pull request already exists product-winui3 WinUI 3 issues team-Controls Issue for the Controls team
Projects
None yet
Development

No branches or pull requests

3 participants