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

Demo app huge memory leak #3441

Open
holmes000 opened this issue Jan 24, 2024 · 9 comments
Open

Demo app huge memory leak #3441

holmes000 opened this issue Jan 24, 2024 · 9 comments
Labels
bug demo app Items that relate to the demo application
Milestone

Comments

@holmes000
Copy link

Bug explanation

I had the demo app (.NET Core 3.1) running in background, after ~1 hour I noticed some lags, task manager reported that the demo app has used 58 GB of memory.

Version

4.9.0

@holmes000 holmes000 added bug evaluation required Items is pending review or evaluation by the team labels Jan 24, 2024
@Keboo
Copy link
Member

Keboo commented Jan 24, 2024

Do you recall which page you had opened when this occurred?

And just confirming, this was the published version of the demo app for the 4.9.0 release from the releases page?

@holmes000
Copy link
Author

holmes000 commented Jan 24, 2024

Sorry, I didn't get a chance to check which page was open when this happened, my screen was blacking out and some weird things started happening, I terminated the process right away. I tried to take a screenshot of task manager, but the shortcut just didn't work until significant amount of memory was released. Looks like my SSD was doing a good job with the paging file before hitting 58 gigs.

I recall opening the demo app for taking a glance at group boxes and just forgot to close it afterwards. So probably it was on the group boxes page.

Yes, it was the published release version from my downloads folder "%userprofile%\Downloads\demo-app\Release\netcoreapp3.1\MaterialDesignDemo.exe".

I understand that you have literally no info to work with from here, I'll try to leave it open in a VM, see if the leaking happens again and attempt to gather some more info.

@Keboo
Copy link
Member

Keboo commented Jan 24, 2024

Awesome, thank you for the information.

@holmes000
Copy link
Author

Unfortunately I can't reproduce this even after leaving the VM running overnight.

@jhimes144
Copy link

I just experienced the same issue with the app opened with debugger attached. 6gb of usage, on the button page.

@RihardNovozhilov
Copy link

I had the same issue.

@Keboo Keboo removed the evaluation required Items is pending review or evaluation by the team label Feb 8, 2024
@Keboo Keboo added this to the 5.1.0 milestone Feb 8, 2024
@Keboo
Copy link
Member

Keboo commented Feb 8, 2024

If possible, when someone is able to reproduce this could you try and grab a memory dump. Doesn't even need to be anything huge, if you see the demo app exceed 500MB that is already unexpected.

https://learn.microsoft.com/dotnet/core/diagnostics/debug-memory-leak?WT.mc_id=DT-MVP-5003472#generate-memory-dump

@trdsolutions
Copy link

trdsolutions commented Mar 16, 2024

Hello @Keboo

I also have issues from time to time, when having the Demo running in the background for quite a while, it freezes and needed to be killed by the task manager. This is also more related to the 4.5 / 4.6 version with .NET Core 3.1.

I just downloaded the latest (5.0) version, visited every page and go to the buttons page (as this is the one I kept usually open I think when this issue occured). I clicked a bit around there (button clicks, XAML preview clicks) and got it over 500MB memory usage.

While I then uploaded the first dump, I noticed, that it meanwhile got up to 750MB, so I created another dump. Both can be found by following the link (as each file is too big to upload it here):

https://1drv.ms/f/s!AvTQ0Wkj4g-crdhy6ETUxnnP65dOCw?e=EXhPLr

Hope it helps.

PS: Let me know, when I can delete these files from my OneDrive ;-)

@Keboo
Copy link
Member

Keboo commented Mar 21, 2024

@trdsolutions thank you for the dumps. I have downloaded them. You can remove.

@MichelMichels MichelMichels added the demo app Items that relate to the demo application label Apr 1, 2024
@Keboo Keboo modified the milestones: 5.1.0, 5.2.0 Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug demo app Items that relate to the demo application
Projects
None yet
Development

No branches or pull requests

6 participants