-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Memory leak while repeatedly navigating between pages #10578
Copy link
Copy link
Closed
Labels
area-navigationNavigationPageNavigationPagefixed-in-8.0.0-preview.4.8333Look for this fix in 8.0.0-preview.4.8333!Look for this fix in 8.0.0-preview.4.8333!perf/generalThe issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf)The issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf)platform/windowst/bugSomething isn't workingSomething isn't working
Milestone
Metadata
Metadata
Assignees
Labels
area-navigationNavigationPageNavigationPagefixed-in-8.0.0-preview.4.8333Look for this fix in 8.0.0-preview.4.8333!Look for this fix in 8.0.0-preview.4.8333!perf/generalThe issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf)The issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf)platform/windowst/bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
Recurring navigation to a page and back causes memory leak. It can lead to extreme degradation in performance in a case of an app that uses TabbedPage with complex Views that contain a lot of controls.
In the app I'm developing I have a CollectionView of items which can be opened by user to show detailed information. The user has to be able to do such action hundreds of times during a session. However there seems to be something lingering in the memory which can't be collected by GC and isn't properly disposed.
I made a simple example consisting of two pages. The app is made so that you can easily push and pop a page. The pushed page consists only of a simple CollectionView.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/Vroomer/MAUI-navigation-memory-leak.git
Version with bug
Unknown/Other (please specify)
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows SDK 10.0.22000
Did you find any workaround?
No response
Relevant log output
No response