<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Graphic memory usage is increasing untill app crashes in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphic-memory-usage-is-increasing-untill-app/m-p/1058837#M5495</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am grateful for your answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the example you gave, no graphics were drawn on the screen, but when I triggered the onPause() and onResume() methods, I saw a stable memory usage. I think my problem occurs while drawing graphics on the screen.&lt;BR /&gt;Thank you for the codes you shared helped me understand the source of the problem.&lt;/P&gt;&lt;P&gt;Happy coding!&lt;/P&gt;&lt;P&gt;Gaye.&lt;/P&gt;</description>
    <pubDate>Tue, 18 May 2021 06:29:47 GMT</pubDate>
    <dc:creator>gayedurmaz</dc:creator>
    <dc:date>2021-05-18T06:29:47Z</dc:date>
    <item>
      <title>Graphic memory usage is increasing untill app crashes</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphic-memory-usage-is-increasing-untill-app/m-p/1057056#M5486</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I am developing an android app with using Esri Runtime SDK 100.10.0 version. And I am&amp;nbsp;&lt;SPAN class="Y2IQFc"&gt;struggling with memory management.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Y2IQFc"&gt;I realised that MapView's resume() method causes graphic memory increase. And that increase continues until app crashes.&amp;nbsp; During my tests, I was able to crash my app by using just &lt;STRONG&gt;mapview.pause()&lt;/STRONG&gt; and &lt;STRONG&gt;mapview.resume()&amp;nbsp;&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Y2IQFc"&gt;I am also attaching the screenshot I took from the profiler regarding the memory situation I mentioned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Y2IQFc"&gt;I don't understand. Shouldn't the graphic memory used after at some point be cleared?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="memory usage.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/13127i8871A82B31797B3B/image-size/large?v=v2&amp;amp;px=999" role="button" title="memory usage.PNG" alt="memory usage.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN class="Y2IQFc"&gt;I am beginner for Esri and Android so any advice you can give will be useful to me.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Happy coding &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 12:19:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphic-memory-usage-is-increasing-untill-app/m-p/1057056#M5486</guid>
      <dc:creator>gayedurmaz</dc:creator>
      <dc:date>2021-05-12T12:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic memory usage is increasing untill app crashes</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphic-memory-usage-is-increasing-untill-app/m-p/1057496#M5493</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;Can you share any code on how the view is being managed in your android activity? The MapView along with layers when rendering is expected to allocate memory (include the native memory).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;The activity lifecycle should&amp;nbsp; honor pause, resume and destroy of the MapView accordingly. Do you see the same behavior when profiling this sample?&lt;BR /&gt;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-android/tree/main/java/display-map" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-runtime-samples-android/tree/main/java/display-map&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Rama&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 05:39:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphic-memory-usage-is-increasing-untill-app/m-p/1057496#M5493</guid>
      <dc:creator>RamaChintapalli</dc:creator>
      <dc:date>2021-05-13T05:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic memory usage is increasing untill app crashes</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphic-memory-usage-is-increasing-untill-app/m-p/1058837#M5495</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am grateful for your answer.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I use the example you gave, no graphics were drawn on the screen, but when I triggered the onPause() and onResume() methods, I saw a stable memory usage. I think my problem occurs while drawing graphics on the screen.&lt;BR /&gt;Thank you for the codes you shared helped me understand the source of the problem.&lt;/P&gt;&lt;P&gt;Happy coding!&lt;/P&gt;&lt;P&gt;Gaye.&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 06:29:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphic-memory-usage-is-increasing-untill-app/m-p/1058837#M5495</guid>
      <dc:creator>gayedurmaz</dc:creator>
      <dc:date>2021-05-18T06:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Graphic memory usage is increasing untill app crashes</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphic-memory-usage-is-increasing-untill-app/m-p/1112606#M5642</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/483084"&gt;@gayedurmaz&lt;/a&gt;, I’m facing the same problem.&lt;/P&gt;&lt;P&gt;In my application I draw some polygons according to information that I receive, and as soom these graphics are drawn on the map the Memory of the mobile phone grows until the application crash.&lt;BR /&gt;How did you manage to solve this problem?&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 30 Oct 2021 00:51:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/graphic-memory-usage-is-increasing-untill-app/m-p/1112606#M5642</guid>
      <dc:creator>GuilhermeFernandes</dc:creator>
      <dc:date>2021-10-30T00:51:54Z</dc:date>
    </item>
  </channel>
</rss>

