-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
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
Description
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); in NavigationService.cs to masterPage.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
- Run the App on an android device
- Click the button to navigate to DetailPage1
- In DetailPage1 click the button to navigate to DetailPage2
- Wait a few seconds and the nuget package from https://github.com/AdamEssenmacher/MemoryToolkit.Maui "displays" all the leaks from DetailPage1 in an Alert popup
- In DetailPage2 click the button to navigate to DetailPage1
- Wait a few seconds and the nuget package from https://github.com/AdamEssenmacher/MemoryToolkit.Maui "displays" all the leaks from DetailPage1 in an Alert popup
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
Reactions are currently unavailable
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
Projects
Status
Todo