<?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: activity gets killed when the mapview is disposed in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/activity-gets-killed-when-the-mapview-is-disposed/m-p/266319#M1749</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just saw this. I'm passing it back over to the support folks now for re-evaluation. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you using the latest SDK version 10.1.1?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Jan 2013 17:52:26 GMT</pubDate>
    <dc:creator>AndyGup</dc:creator>
    <dc:date>2013-01-24T17:52:26Z</dc:date>
    <item>
      <title>activity gets killed when the mapview is disposed</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/activity-gets-killed-when-the-mapview-is-disposed/m-p/266311#M1741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my activity gets killed when the mapview is disposed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have an activity that uses the fragment api.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When there is a mapview on a fragment that is no longer necessary, the whole activity gets killed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The last thing I can see in LogCat is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;05-15 14:51:18.490: W/EglHelper(3685): finish() tid=10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;05-15 14:51:18.490: I/GLMapCore(3685): TexturesManager::releaseGraphicsHardwareResources&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;05-15 14:51:18.490: E/libEGL(3685): call to OpenGL ES API with no current context (logged once per thread)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;after that the activity disappears without a trace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I remove the mapview from the fragment, everything works.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Something I noticed in my apps is that the activity is always killed immediately, when the activity isn't active.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other activities without a mapview don't have this behaviour.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This also kills the activity when I rotate the device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any solution for this problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or am i doing something wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gwen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 12:32:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/activity-gets-killed-when-the-mapview-is-disposed/m-p/266311#M1741</guid>
      <dc:creator>GwenRoyakkers1</dc:creator>
      <dc:date>2012-05-15T12:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: activity gets killed when the mapview is disposed</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/activity-gets-killed-when-the-mapview-is-disposed/m-p/266312#M1742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My guess would be you are just simply running out of ressources. On a phone a MapView is taking quite a bit of your systems memory/cpu so if it is not in the currently visible activity the android system kills it to free up ressources for other activitys.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What device are you testing on? Task killer running? Any changed settings or so?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you remove the MapView from the fragment, the android system does no longer need to kill it, because it just takes little memory etc. now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 13:55:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/activity-gets-killed-when-the-mapview-is-disposed/m-p/266312#M1742</guid>
      <dc:creator>SimonKlein</dc:creator>
      <dc:date>2012-05-15T13:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: activity gets killed when the mapview is disposed</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/activity-gets-killed-when-the-mapview-is-disposed/m-p/266313#M1743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using a Samsung Galaxy tab10.1 with android 3.2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The memory status before the app gets killed is around 314MB/724.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have no task killer installed on the device.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(The device has default samsung settings, and it's used for development only.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that when the fragment with the mapview is replaced, the whole activity is killed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It's supposed to show an other fragment in the same activity.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the fragment is needed again it should recreate it's resources.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To make sure where the problem arises I tried the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I made a function with the following code...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LinearLayout parent = (LinearLayout)mapview.getParent();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;parent.removeView(mapview);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;System.gc();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When this function is called, the app gets killed without going to onPause(), onStop() or onDestroy().&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(the mapview is initialized and showing, it only contains an ArcgisLocalTiledLayer and a Graphicslayer)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the last thing logcat shows is: 05-16 08:38:46.330: E/libEGL(3132): call to OpenGL ES API with no current context (logged once per thread)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only explanation I have for this behaviour, is that the mapview destroys the proces on wich the main activity runs when it is disposed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Because of this, I can't use the activity or fragment lifecycle how it's supposed to be used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to stop this behaviour?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or is this something that needs to change in the api?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gwen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2012 05:52:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/activity-gets-killed-when-the-mapview-is-disposed/m-p/266313#M1743</guid>
      <dc:creator>GwenRoyakkers1</dc:creator>
      <dc:date>2012-05-16T05:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: activity gets killed when the mapview is disposed</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/activity-gets-killed-when-the-mapview-is-disposed/m-p/266314#M1744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Saw the application crashing on rotation of tablet(if MapView is inside the fragment) with older NDK libraries. With the new NDK library the application does not crash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]16819[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2012 21:09:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/activity-gets-killed-when-the-mapview-is-disposed/m-p/266314#M1744</guid>
      <dc:creator>RamaChintapalli</dc:creator>
      <dc:date>2012-08-09T21:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: activity gets killed when the mapview is disposed</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/activity-gets-killed-when-the-mapview-is-disposed/m-p/266315#M1745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Saw the application crashing on rotation of tablet(if MapView is inside the fragment) with older NDK libraries. With the new NDK library the application does not crash.&lt;BR /&gt;[ATTACH=CONFIG]16819[/ATTACH]&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately the mapview still doesn't survive a FragmentTransaction...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;11-08 10:54:12.140: I/MapCore(3253): TexturesManager::releaseGraphicsHardwareResources&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;11-08 10:51:59.980: E/MapCore(3148): TexturesManager::bindTexture FAILED, textureId = 8 out of range or not valid; m_texturesData.size =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11-08 10:54:19.050: I/DEBUG(105):&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #00&amp;nbsp; pc 00211a62&amp;nbsp; /data/data/nl.kragten.android.knopenlopen/lib/libGLMapCore.so (_ZN6ArcGIS7Runtime4Core21SeqRenderBiColorPoint14startRenderingEPvRNS1_18VertexSequenceModeERSt6vectorIjSaIjEEPKNS1_7TextureEPNS1_24GraphicDisplayPropertiesERNS1_17SVerticesSequenceENS1_10RenderModeE)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also there is a memory leak, every time you rotate, memory usage will increase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any workarounds or solutions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a planned release date for the next version of the sdk?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Nov 2012 08:12:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/activity-gets-killed-when-the-mapview-is-disposed/m-p/266315#M1745</guid>
      <dc:creator>GwenRoyakkers1</dc:creator>
      <dc:date>2012-11-08T08:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: activity gets killed when the mapview is disposed</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/activity-gets-killed-when-the-mapview-is-disposed/m-p/266316#M1746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Gwen_roy, you haven't by chance had any luck with this? I have a map in a fragment based activity as well, and I get this same error if I set the fragment to 'setRetainInstance(true);' and then rotate the screen. I am trying to handle processing of an async task during a screen rotation by using setRetainInstance 'setRetainInstance(true);' but I'm not sure that's going to work...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jan 2013 20:57:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/activity-gets-killed-when-the-mapview-is-disposed/m-p/266316#M1746</guid>
      <dc:creator>JohnBuckland</dc:creator>
      <dc:date>2013-01-01T20:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: activity gets killed when the mapview is disposed</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/activity-gets-killed-when-the-mapview-is-disposed/m-p/266317#M1747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am experiencing the same issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I perform a fragment transaction like add() or attach() I get the following error and the entire application stops.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;02-05 02:45:40.845: E/MapCore(19111): TexturesManager::bindTexture FAILED, textureId = 10 out of range or not valid; m_texturesData.size =&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;02-05 02:45:40.845: A/libc(19111): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 19382 (Thread-186)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2013 15:10:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/activity-gets-killed-when-the-mapview-is-disposed/m-p/266317#M1747</guid>
      <dc:creator>ChristopherDonohue</dc:creator>
      <dc:date>2013-01-02T15:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: activity gets killed when the mapview is disposed</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/activity-gets-killed-when-the-mapview-is-disposed/m-p/266318#M1748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there any workaround or solution for this? Is anyone from ESRI monitoring this thread?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2013 12:41:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/activity-gets-killed-when-the-mapview-is-disposed/m-p/266318#M1748</guid>
      <dc:creator>ChristopherDonohue</dc:creator>
      <dc:date>2013-01-10T12:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: activity gets killed when the mapview is disposed</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/activity-gets-killed-when-the-mapview-is-disposed/m-p/266319#M1749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just saw this. I'm passing it back over to the support folks now for re-evaluation. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you using the latest SDK version 10.1.1?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Andy&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2013 17:52:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/activity-gets-killed-when-the-mapview-is-disposed/m-p/266319#M1749</guid>
      <dc:creator>AndyGup</dc:creator>
      <dc:date>2013-01-24T17:52:26Z</dc:date>
    </item>
  </channel>
</rss>

