<?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: GeoView's dispose method crashes after migrating to 100.8 in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geoview-s-dispose-method-crashes-after-migrating/m-p/111083#M829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you give me a little more background on this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;- what does your app do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;- what device are you using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;- can you share any code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you take a very basic app such as this&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-android/tree/master/kotlin/display-map"&gt;sample&lt;/A&gt;&amp;nbsp;can you reproduce it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Aug 2020 13:46:35 GMT</pubDate>
    <dc:creator>MarkBaird</dc:creator>
    <dc:date>2020-08-06T13:46:35Z</dc:date>
    <item>
      <title>GeoView's dispose method crashes after migrating to 100.8</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geoview-s-dispose-method-crashes-after-migrating/m-p/111081#M827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;We are seeing a below&amp;nbsp;crash after&amp;nbsp;upgrading to 100.8 ArcGIS:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;07-08 17:21:55.821 2741 2797 I TextureView: RenderingThread - Disposing started&lt;BR /&gt;07-08 17:21:55.824 2741 2797 E AndroidRuntime: FATAL EXCEPTION: Rendering thread&lt;BR /&gt;07-08 17:21:55.824 2741 2797 E AndroidRuntime: Process: com.example.map, PID: 2741&lt;BR /&gt;07-08 17:21:55.824 2741 2797 E AndroidRuntime: com.esri.arcgisruntime.ArcGISRuntimeException: Null pointer: object cannot be null.&lt;BR /&gt;07-08 17:21:55.824 2741 2797 E AndroidRuntime: at com.esri.arcgisruntime.internal.jni.CoreGeoView.nativePause(Native Method)&lt;BR /&gt;07-08 17:21:55.824 2741 2797 E AndroidRuntime: at com.esri.arcgisruntime.internal.jni.CoreGeoView.a(SourceFile:575)&lt;BR /&gt;07-08 17:21:55.824 2741 2797 E AndroidRuntime: at com.esri.arcgisruntime.internal.h.b.g.c(SourceFile:1058)&lt;BR /&gt;07-08 17:21:55.824 2741 2797 E AndroidRuntime: at com.esri.arcgisruntime.mapping.view.GeoView$RenderingThread.b(SourceFile:1175)&lt;BR /&gt;07-08 17:21:55.824 2741 2797 E AndroidRuntime: at com.esri.arcgisruntime.mapping.view.GeoView$RenderingThread.lambda$BRrsZ2XB9Y4rOvLRx6U82gkIAIs(Unknown Source:0)&lt;BR /&gt;07-08 17:21:55.824 2741 2797 E AndroidRuntime: at com.esri.arcgisruntime.mapping.view.-$$Lambda$GeoView$RenderingThread$BRrsZ2XB9Y4rOvLRx6U82gkIAIs.run(Unknown Source:2)&lt;BR /&gt;07-08 17:21:55.824 2741 2797 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:883)&lt;BR /&gt;07-08 17:21:55.824 2741 2797 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:100)&lt;BR /&gt;07-08 17:21:55.824 2741 2797 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)&lt;BR /&gt;07-08 17:21:55.824 2741 2797 E AndroidRuntime: at com.esri.arcgisruntime.mapping.view.GeoView$RenderingThread.run(SourceFile:1210)&lt;BR /&gt;07-08 17:21:55.827 1342 3651 W ActivityTaskManager: Force finishing activity &lt;SPAN&gt;com.example.map&lt;/SPAN&gt;/com.example.mapping.ICEHandlingMappingActivity&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;This crash appears from our Activity's onDestroy() when we have called&amp;nbsp; MapView.dispose() (in turn calling the GeoView class's&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; border: 0px; font-size: 9pt;"&gt;RenderingThread's dispose() method)&lt;/PRE&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;As this exception occurs in a different thread, we are unable to catch this exception.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Any ideas what causes this crash?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2020 05:29:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geoview-s-dispose-method-crashes-after-migrating/m-p/111081#M827</guid>
      <dc:creator>NandKishore</dc:creator>
      <dc:date>2020-07-10T05:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: GeoView's dispose method crashes after migrating to 100.8</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geoview-s-dispose-method-crashes-after-migrating/m-p/111082#M828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/412496"&gt;Nand Kishore&lt;/A&gt;‌ Have you find any solution for this ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Aug 2020 13:42:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geoview-s-dispose-method-crashes-after-migrating/m-p/111082#M828</guid>
      <dc:creator>RajashekarReddy1</dc:creator>
      <dc:date>2020-08-05T13:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: GeoView's dispose method crashes after migrating to 100.8</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geoview-s-dispose-method-crashes-after-migrating/m-p/111083#M829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you give me a little more background on this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;- what does your app do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;- what device are you using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;- can you share any code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you take a very basic app such as this&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-android/tree/master/kotlin/display-map"&gt;sample&lt;/A&gt;&amp;nbsp;can you reproduce it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2020 13:46:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geoview-s-dispose-method-crashes-after-migrating/m-p/111083#M829</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2020-08-06T13:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: GeoView's dispose method crashes after migrating to 100.8</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geoview-s-dispose-method-crashes-after-migrating/m-p/111084#M830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We went back to ArcGIS version 100.7 to resolve this issue as 100.7 doesn't use TextureView.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2020 02:23:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geoview-s-dispose-method-crashes-after-migrating/m-p/111084#M830</guid>
      <dc:creator>NandKishore</dc:creator>
      <dc:date>2020-08-13T02:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: GeoView's dispose method crashes after migrating to 100.8</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geoview-s-dispose-method-crashes-after-migrating/m-p/111085#M831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just had the same thing happen with 100.9.0 and in my case this was due to the fact that the &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;MapView&lt;/SPAN&gt;&amp;nbsp;was not visible&amp;nbsp;having in some situations been set to: &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;mapView.setVisibility(View.GONE)&lt;/SPAN&gt;. If &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;mapView.dispose()&lt;/SPAN&gt; is called in this state it will crash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The workaround is to check if it's visible&amp;nbsp;before disposing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;if (mapView != null &amp;amp;&amp;amp; mapView.getVisibility() == VISIBLE) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp; mapView.dispose();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Oct 2020 22:30:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/geoview-s-dispose-method-crashes-after-migrating/m-p/111085#M831</guid>
      <dc:creator>SimonWilks1</dc:creator>
      <dc:date>2020-10-25T22:30:52Z</dc:date>
    </item>
  </channel>
</rss>

