When switching tabs back and forth memory usage will increase for no good reason. The memory increases when switching TO the page with the MapView. It rapidly increases to multiple gigabytes and the application is killed by the OS.
Please see repro code and my findings (in the readme) at GIT repository
issue-repro/arcgis-maps-maui-v200.4.0-high-memory-usage at main · espenrl/issue-repro (github.com)
Solved! Go to Solution.
Hi @esp1rl thank you for your question and attached reproducer.
I was able to reproduce your issue on a Motorola g200 5g using 200.4.0 nuget packages. This didn't occur initially but when I zoomed in on your data and rapidly moved between tabs I triggered the memory leak and crashed the app.
I then tested your reproducer with 200.5.0 packages which will be available in the next release. This includes improvements to memory handling for .NET MAUI Android. In my testing I was not able to reproduce the crash with 200.5.0 packages.
Your issue should be resolved in the next release, if it is not please post again and we can take another look.
Hi @esp1rl thank you for your question and attached reproducer.
I was able to reproduce your issue on a Motorola g200 5g using 200.4.0 nuget packages. This didn't occur initially but when I zoomed in on your data and rapidly moved between tabs I triggered the memory leak and crashed the app.
I then tested your reproducer with 200.5.0 packages which will be available in the next release. This includes improvements to memory handling for .NET MAUI Android. In my testing I was not able to reproduce the crash with 200.5.0 packages.
Your issue should be resolved in the next release, if it is not please post again and we can take another look.
Thanks for the update @HamishDuff
I did a new test with MAUI v8 SR6 as it has some fixed some memory leaks, but the same problem persists. I guess I will have to wait for 200.5.0
@HamishDuff do you have a NuGet feed for beta packages of 200.5.0 ? Would love to test it and make sure that the problem is fixed. If not there will be a long wait for a fix in the next release after.
@esp1rl , ArcGIS Maps SDK for .NET was released mid of August 2024. Were you able to test your workflow with the latest version? If yes, is it working as expected?