-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Android: Memoryleaks when using FlyoutPage with NavigationPages #33355
Copy link
Copy link
Closed
Labels
area-navigationNavigationPageNavigationPagei/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionplatform/androidregressed-in-10-preview1s/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Metadata
Metadata
Assignees
Labels
area-navigationNavigationPageNavigationPagei/regressionThis issue described a confirmed regression on a currently supported versionThis issue described a confirmed regression on a currently supported versionplatform/androidregressed-in-10-preview1s/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
Done
Description
In Android (didn't test on Windows/IOS/MAC) my app is crashing cause of memory leaks in Maui when using a FlyoutPage with NavigationPages.
Navigating to different pages like this, causes memory increase and eventually the app becomes slow and unusable.
Weird thing is:
When I change
masterPage.Detail = new NavigationPage(page);inNavigationService.cstomasterPage.Detail = page;no memory leaks seem to happen. But then the "hamburger menu" is missing in the FlyoutPage which is needed in my app.Steps to Reproduce
Link to public reproduction project repository
https://github.com/3sRykaert/MauiMemoryleak
Version with bug
10.0.20
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 11 and up (didn't test on other platforms)
Did you find any workaround?
No
Relevant log output