You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In recent days our company discovered serious memory leak in MAUI app we are working on i.e. views set as transient don't get disposed of correctly resulting in linear memory growth. Firstly we tried using MAUI wiki page on memory leaks, which yield no concrete results to our problem. Our team decided look up how it is done in eShop demo, and we found same leak here.
In demo we added GC.Collect, destructors to each view (on which we put a breakpoints) and label (under "Adventure Works'" title) that displays current heap size.
Examples below:
Cheap size on startup:
Cheap size after opening and closing BasketView 10 times
On opening and closing BasketView breakpoints weren't triggered single time and heap size kept increasing.
After deleting command from button in BasketView destructor started working.
Questions
Why does it happen, is there some explanation to why MAUI behaves this way?
If it is not problem with MAUI, then where lays that issue?
Do we need to use some practices that aren't shown in this demo?
The text was updated successfully, but these errors were encountered:
In recent days our company discovered serious memory leak in MAUI app we are working on i.e. views set as transient don't get disposed of correctly resulting in linear memory growth. Firstly we tried using MAUI wiki page on memory leaks, which yield no concrete results to our problem. Our team decided look up how it is done in eShop demo, and we found same leak here.
In demo we added GC.Collect, destructors to each view (on which we put a breakpoints) and label (under "Adventure Works'" title) that displays current heap size.
Examples below:
Cheap size on startup:
Cheap size after opening and closing BasketView 10 times
On opening and closing BasketView breakpoints weren't triggered single time and heap size kept increasing.
After deleting command from button in BasketView destructor started working.
Questions
Why does it happen, is there some explanation to why MAUI behaves this way?
If it is not problem with MAUI, then where lays that issue?
Do we need to use some practices that aren't shown in this demo?
The text was updated successfully, but these errors were encountered: