maui icon indicating copy to clipboard operation
maui copied to clipboard

Memory raising when using Application.Current.MainPage.Navigation.PushAsync

Open danies8 opened this issue 2 years ago • 6 comments

Description

Hi,

I used only Application.Current.MainPage.Navigation.PushAsync(new page) only in my app for navigationg but the memory is raising after each navigation. I tested with published as exe (from Visual studio 17.8.4). Please see https://app.screencast.com/cFXT6QgHXsVja Thanks

Steps to Reproduce

I used only Application.Current.MainPage.Navigation.PushAsync(new page) only in my app for navigationg but the memory is raising after each navigation. I tested with published as exe (from Visual studio 17.8.4). Please see https://app.screencast.com/cFXT6QgHXsVja

Link to public reproduction project repository

....

Version with bug

8.0.3 GA

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

.....

Did you find any workaround?

No

Relevant log output

No

danies8 avatar Mar 05 '24 08:03 danies8

Hi @danies8. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Mar 05 '24 19:03 ghost

FlyoutExample.zip Can you please see if the navigation is ok now ? do not cause memory leak.

danies8 avatar Mar 11 '24 10:03 danies8

Any answer? FlyoutExample.zip

danies8 avatar Mar 12 '24 11:03 danies8

Can you please answer?

danies8 avatar Mar 14 '24 06:03 danies8

Verified this issue with Visual Studio 17.10.0 Preview 2. Can repro on Windows platform with sample project.

Zhanglirong-Winnie avatar Mar 18 '24 05:03 Zhanglirong-Winnie

@Eilon @PureWeen Do we have any update on this? The Memory is keeps cascading even after the Navigation.PopAsyc(). Implemented DisconnectHandler() but still the memory is cascading.

thanigaiharan avatar May 21 '24 22:05 thanigaiharan

When I ran the sample, it threw the following exception.

https://github.com/user-attachments/assets/400d43d6-2058-467e-b2bf-9070f5ce93b6

Shalini-Ashokan avatar Sep 25 '25 14:09 Shalini-Ashokan

Hi @@danies8. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.