Good Afternoon,
We are currently in the process of moving a WPF app to Maui.
Version -
200.4.0 ESRI Runtime Maui
Maui 8.0.40
.NET 8 - current release
C#
MVVM
No Toolkits
The application uses a mixture of online / vtpks / hosted layers / graphic layers / custom location datasource. Ability's of navigation / panning / selection / switching maps / no editing
I've listed the above to give an idea of what functionality is in use.
The issue we are currently seeing is memory growth when minimizing or logout/login. As an example using the ios graphics hub overview. Upon logging out/in or background / foreground noticing memory increase each time this happens till eventually the app crashes due to memory. Memory growth varies but generally around 100mbs each load.
This application does have a login view then proceeds to the map view. Upon logout the map view is disposed along with disposing of view / map view / maps / layers / graphics / location datasource / event handlers / etc. Disposing as in clearing and setting null / removing references. Upon reentry breaking at points of recreation the mapview / map / controller / location data / graphic overylays appear to be null and checked before recreation. The map view itself is presented as a Transient view using dependency injection.
I generally assume it's something within the custom code that is causing the leak whether something is not properly disposed however cycling through this many of times, every object seems to be. I'm reaching out because this one has me stumped and an understanding that Maui and ESRI Maui runtime is still fairly new with fixes quite often. I've searched through the community and online. Have seen a few similar post but not really any defined issues nor work arounds / fixes. I've not seen any known issues on this as well. Any help, links or information inside this scope is greatly appreciated.
Also I did not post code being I'm not certain what would help in troubleshooting. If something in particular needs to be looked at I can post.