Select to view content in your preferred language

Memory Leak Issue and Out-of-Memory Exception When Adding Raster Layer on ArcGIS VTPK Map in ArcGIS Runtime 200.4.0.0

274
1
08-05-2024 02:21 AM
SainathReddyKommidi
New Contributor

Description: I'm encountering a memory leak issue in my application while using ArcGIS Runtime 200.4.0.0. Specifically, the problem occurs when I add a raster layer on top of a vector tile package (VTPK) map.

Problem Details:

  • Issue: When I zoom in and out, the memory usage of my application keeps increasing continuously. Eventually, the application crashes once the memory usage exceeds approximately 700 MB, resulting in an "Out of Memory" exception.
  • Environment:
    • ArcGIS Runtime Version: 200.4.0.0
    • Operating System:Windows 10
    • Development Environment:  Visual Studio 2022
  • Steps to Reproduce:
    1. Load a VTPK map.
    2. Add a raster layer on top of the VTPK map.
    3. Continuously zoom in and out on the map.
    4. Observe the memory usage increase.

Additional Information:

  • Observed Behavior: The application's memory usage increases steadily with each zoom operation and does not decrease, leading to a crash when memory usage exceeds around 700 MB, throwing an "Out of Memory" exception.
  • Expected Behavior: The memory usage should stabilize and not cause the application to crash.

 

Request: I am looking for any insights or solutions to resolve this memory leak issue. Has anyone encountered a similar problem or can provide any guidance on how to manage the memory usage effectively in this scenario?

Thank you!

0 Kudos
1 Reply
John-Foster
Esri Contributor

which platform are you developing with? It might get a faster reply if you asked this question in the forum for the specific Maps SDK you are developing with https://community.esri.com/t5/arcgis-maps-sdks-for-native-apps/ct-p/arcgis-runtime-sdks

--jf
0 Kudos