Skip to content

There's maybe a memory leak somewhere #545

Open
@zadjii-msft

Description

@zadjii-msft

I don't know how exactly to trigger it. But it seems like when I go into the GitHub extension onto a query page, then back out, those list items never get released from memory. That's wack.

Repro steps

Easiest repro is to clone https://github.com/zadjii/CmdPalExtensions and build the SegoeIconsExtension there. That extension has a list of 1400 items in it, and instantiating it will burn like, 60MB of memory. It'll take a little while as it instantiates all the icons, but it'll work. Go into that page and out a few times, and the memory will just go up and never come back down.

Links:

Things I've tried so far

my current tracking branch is dev/migrie/b/memory-leaks-3

  • I tried making the IPageContext in ExtensionObjectViewModel a WeakReference. That didn't work.
  • I tried the Cleanup.FrameworkElement from Navigation Memory Leak microsoft/microsoft-ui-xaml#934 (comment). That doesn't work.
  • When we ListPage.NavigatingFrom, we do set the ViewModel to null. Someone else is holding it.
  • I have a breakpoint in ListViewModel.Dispose. It's literally never hit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions