Skip to content

Demo app huge memory leak #3441

Open
Open

Description

@holmes000

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

Activity

  1. Keboo commented on Jan 24, 2024

    @Keboo
    Member

    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?

  2. holmes000 commented on Jan 24, 2024

    @holmes000
    Author

    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.

  3. Keboo commented on Jan 24, 2024

    @Keboo
    Member

    Awesome, thank you for the information.

  4. holmes000 commented on Jan 26, 2024

    @holmes000
    Author

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

  5. jhimes144 commented on Feb 2, 2024

    @jhimes144

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

  6. removed
    evaluation requiredItems is pending review or evaluation by the team
    on Feb 8, 2024
  7. added this to the 5.1.0 milestone on Feb 8, 2024
  8. Keboo commented on Feb 8, 2024

    @Keboo
    Member

    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

  9. trdsolutions commented on Mar 16, 2024

    @trdsolutions

    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 ;-)

  10. Keboo commented on Mar 21, 2024

    @Keboo
    Member

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

  11. modified the milestones: 5.1.0, 5.2.0 on Jun 13, 2024
  12. modified the milestones: 5.2.0, 5.3.0 on Dec 19, 2024
  13. modified the milestones: 5.3.0, 5.3.1 on Jun 27, 2025
  14. modified the milestones: 5.3.1, 5.3.2 on Mar 30, 2026
  15. removed this from the 5.3.2 milestone on May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdemo appItems that relate to the demo application

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions