<?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: Why does Arcgis Runtime for Android download of Preplanned Workflow fail because of unreasonable memory allocations? in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-does-arcgis-runtime-for-android-download-of/m-p/352848#M2279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still not working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen this behavior consistently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been in contact with ESRI support, but they are still in denial about this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 May 2018 02:14:40 GMT</pubDate>
    <dc:creator>NathanMellor</dc:creator>
    <dc:date>2018-05-30T02:14:40Z</dc:date>
    <item>
      <title>Why does Arcgis Runtime for Android download of Preplanned Workflow fail because of unreasonable memory allocations?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-does-arcgis-runtime-for-android-download-of/m-p/352846#M2277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some ready preplanned map areas that I decided to try with the runtime 100.2.1 before I do this on a larger scale.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I below captured the layer errors below upon failure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Caused by: java.lang.OutOfMemoryError: Failed to allocate a 710258114 byte allocation with 16777216 free bytes and 40MB until OOM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why in the world would you be trying to allocate 710 Megabytes?&lt;/P&gt;&lt;P&gt;On a MOBILE DEVICE, no less?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can only guess that you are trying to allocate enough memory for the entire file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why would that ever be a good idea?&lt;/P&gt;&lt;P&gt;The destination for the file is a folder on disk.&amp;nbsp;&lt;/P&gt;&lt;P&gt;BUFFERING is a fairly standard practice for downloading a file from disk. There is no way you need 710 megabytes of memory to download a 710 megabyte file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are advertising this preplanned workflow, and I was attracted to all of the benefits.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/android/latest/guide/create-an-offline-map.htm#ESRI_SECTION2_831BD55058F9482BA5A01EEF5697BC71" title="https://developers.arcgis.com/android/latest/guide/create-an-offline-map.htm#ESRI_SECTION2_831BD55058F9482BA5A01EEF5697BC71"&gt;Create an offline map—ArcGIS Runtime SDK for Android | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it obviously isn't well coded or well tested.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please fix it or provide some workaround, so I don't regret the&amp;nbsp;trust I have placed in ESRI for the 10th time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;04-09 21:28:45.907 26473-26473/com.crittermap.arcgissample I/BCNActivity: downloadPreplanned Start: Mon Apr 09 21:28:45 PDT 2018&lt;BR /&gt;04-09 21:32:52.395 26473-26473/com.crittermap.arcgissample I/BCNActivity: downloadPreplanned Failed: Mon Apr 09 21:32:52 PDT 2018&lt;BR /&gt;04-09 21:33:08.028 26473-26473/? E/BCNActivity: layererrors USA Contour II: &lt;BR /&gt;com.esri.arcgisruntime.ArcGISRuntimeException: Check getCause() for further error information.&lt;BR /&gt;at com.esri.arcgisruntime.internal.m.h.a(SourceFile:188)&lt;BR /&gt;at com.esri.arcgisruntime.internal.m.i.b(SourceFile:6220)&lt;BR /&gt;at com.esri.arcgisruntime.tasks.offlinemap.DownloadPreplannedOfflineMapResult.getLayerErrors(SourceFile:91)&lt;BR /&gt;at com.crittermap.arcgissample.BCNActivity.lambda$downloadPreplannedArea$2$BCNActivity(BCNActivity.java:369)&lt;BR /&gt;at com.crittermap.arcgissample.BCNActivity$$Lambda$1.run(Unknown Source)&lt;BR /&gt;at android.os.Handler.handleCallback(Handler.java:751)&lt;BR /&gt;at android.os.Handler.dispatchMessage(Handler.java:95)&lt;BR /&gt;at android.os.Looper.loop(Looper.java:154)&lt;BR /&gt;at android.app.ActivityThread.main(ActivityThread.java:6776)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Native Method)&lt;BR /&gt;at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1496)&lt;BR /&gt;at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1386)&lt;BR /&gt;Caused by: java.lang.OutOfMemoryError: Failed to allocate a 710258114 byte allocation with 16777216 free bytes and 40MB until OOM&lt;BR /&gt;at com.esri.arcgisruntime.internal.c.p.c.&amp;lt;init&amp;gt;(SourceFile:56)&lt;BR /&gt;at com.esri.arcgisruntime.internal.c.p.g.c(SourceFile:133)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.i.b(SourceFile:194)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.i.a(SourceFile:61)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.c.a(SourceFile:463)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.c.i(SourceFile:425)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.n.a(SourceFile:80)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.n.d(SourceFile:32)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.c$1.call(SourceFile:131)&lt;BR /&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:237)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:762)&lt;BR /&gt;04-09 21:33:08.032 26473-26473/? E/BCNActivity: layererrors MultidirectionalHillshadeToSix: &lt;BR /&gt;com.esri.arcgisruntime.ArcGISRuntimeException: Not found&lt;BR /&gt;at com.esri.arcgisruntime.internal.m.h.a(SourceFile:188)&lt;BR /&gt;at com.esri.arcgisruntime.internal.m.i.b(SourceFile:6220)&lt;BR /&gt;at com.esri.arcgisruntime.tasks.offlinemap.DownloadPreplannedOfflineMapResult.getLayerErrors(SourceFile:91)&lt;BR /&gt;at com.crittermap.arcgissample.BCNActivity.lambda$downloadPreplannedArea$2$BCNActivity(BCNActivity.java:369)&lt;BR /&gt;at com.crittermap.arcgissample.BCNActivity$$Lambda$1.run(Unknown Source)&lt;BR /&gt;at android.os.Handler.handleCallback(Handler.java:751)&lt;BR /&gt;at android.os.Handler.dispatchMessage(Handler.java:95)&lt;BR /&gt;at android.os.Looper.loop(Looper.java:154)&lt;BR /&gt;at android.app.ActivityThread.main(ActivityThread.java:6776)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Native Method)&lt;BR /&gt;at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1496)&lt;BR /&gt;at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1386)&lt;BR /&gt;04-09 21:33:08.035 26473-26473/? E/BCNActivity: layererrors NorthAmericaOSMPackage0325Z: &lt;BR /&gt;com.esri.arcgisruntime.ArcGISRuntimeException: Check getCause() for further error information.&lt;BR /&gt;at com.esri.arcgisruntime.internal.m.h.a(SourceFile:188)&lt;BR /&gt;at com.esri.arcgisruntime.internal.m.i.b(SourceFile:6220)&lt;BR /&gt;at com.esri.arcgisruntime.tasks.offlinemap.DownloadPreplannedOfflineMapResult.getLayerErrors(SourceFile:91)&lt;BR /&gt;at com.crittermap.arcgissample.BCNActivity.lambda$downloadPreplannedArea$2$BCNActivity(BCNActivity.java:369)&lt;BR /&gt;at com.crittermap.arcgissample.BCNActivity$$Lambda$1.run(Unknown Source)&lt;BR /&gt;at android.os.Handler.handleCallback(Handler.java:751)&lt;BR /&gt;at android.os.Handler.dispatchMessage(Handler.java:95)&lt;BR /&gt;at android.os.Looper.loop(Looper.java:154)&lt;BR /&gt;at android.app.ActivityThread.main(ActivityThread.java:6776)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Native Method)&lt;BR /&gt;at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1496)&lt;BR /&gt;at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1386)&lt;BR /&gt;Caused by: java.lang.OutOfMemoryError: Failed to allocate a 136852558 byte allocation with 16777216 free bytes and 54MB until OOM&lt;BR /&gt;at com.esri.arcgisruntime.internal.c.p.c.b(SourceFile:182)&lt;BR /&gt;at com.esri.arcgisruntime.internal.c.p.g.c(SourceFile:139)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.i.b(SourceFile:194)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.i.a(SourceFile:61)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.c.a(SourceFile:463)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.c.i(SourceFile:425)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.n.a(SourceFile:80)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.n.d(SourceFile:32)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.c$1.call(SourceFile:131)&lt;BR /&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:237)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:762)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 17:27:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-does-arcgis-runtime-for-android-download-of/m-p/352846#M2277</guid>
      <dc:creator>NathanMellor</dc:creator>
      <dc:date>2018-04-10T17:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Arcgis Runtime for Android download of Preplanned Workflow fail because of unreasonable memory allocations?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-does-arcgis-runtime-for-android-download-of/m-p/352847#M2278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To add to that, the OnDemand Workflow doesn't work either, for other reasons I don't understand.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error is:&amp;nbsp;Token required.&lt;/P&gt;&lt;P&gt;Hmm, the documentation doesn't say a word about tokens. It appears that&amp;nbsp;they are used internally, so It certainly isn't my fault if it doesn't have a token.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;04-10 19:22:35.213 27903-27903/? I/bcnactivity: ondemand: Error occurred when taking NorthAmericaOSMPackage0325Z offline&lt;BR /&gt;Error : Check getCause() for further error information.&lt;BR /&gt;04-10 19:22:35.213 27903-27903/? E/BCNActivity: layererrors NorthAmericaOSMPackage0325Z: &lt;BR /&gt;com.esri.arcgisruntime.ArcGISRuntimeException: Check getCause() for further error information.&lt;BR /&gt;at com.esri.arcgisruntime.internal.m.h.a(SourceFile:188)&lt;BR /&gt;at com.esri.arcgisruntime.internal.m.i.b(SourceFile:6220)&lt;BR /&gt;at com.esri.arcgisruntime.tasks.offlinemap.GenerateOfflineMapResult.getLayerErrors(SourceFile:82)&lt;BR /&gt;at com.crittermap.arcgissample.BCNActivity$8.run(BCNActivity.java:555)&lt;BR /&gt;at android.os.Handler.handleCallback(Handler.java:751)&lt;BR /&gt;at android.os.Handler.dispatchMessage(Handler.java:95)&lt;BR /&gt;at android.os.Looper.loop(Looper.java:154)&lt;BR /&gt;at android.app.ActivityThread.main(ActivityThread.java:6776)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Native Method)&lt;BR /&gt;at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1496)&lt;BR /&gt;at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1386)&lt;BR /&gt;Caused by: com.esri.arcgisruntime.io.JsonEmbeddedException: Token Required.&lt;BR /&gt;at com.esri.arcgisruntime.io.JsonEmbeddedException$a.a(SourceFile:179)&lt;BR /&gt;at com.esri.arcgisruntime.io.JsonEmbeddedException$a.deserialize(SourceFile:125)&lt;BR /&gt;at com.google.gson.internal.bind.TreeTypeAdapter.read(TreeTypeAdapter.java:69)&lt;BR /&gt;at com.google.gson.Gson.fromJson(Gson.java:887)&lt;BR /&gt;at com.google.gson.Gson.fromJson(Gson.java:852)&lt;BR /&gt;at com.google.gson.Gson.fromJson(Gson.java:801)&lt;BR /&gt;at com.google.gson.Gson.fromJson(Gson.java:773)&lt;BR /&gt;at com.esri.arcgisruntime.io.JsonEmbeddedException.fromJson(SourceFile:117)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.h.f(SourceFile:699)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.i.a(SourceFile:161)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.i.a(SourceFile:60)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.c.a(SourceFile:463)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.c.i(SourceFile:425)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.n.a(SourceFile:80)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.n.d(SourceFile:32)&lt;BR /&gt;at com.esri.arcgisruntime.internal.d.a.a.c$1.call(SourceFile:131)&lt;BR /&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:237)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:762)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2018 18:43:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-does-arcgis-runtime-for-android-download-of/m-p/352847#M2278</guid>
      <dc:creator>NathanMellor</dc:creator>
      <dc:date>2018-04-16T18:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why does Arcgis Runtime for Android download of Preplanned Workflow fail because of unreasonable memory allocations?</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-does-arcgis-runtime-for-android-download-of/m-p/352848#M2279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Still not working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen this behavior consistently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been in contact with ESRI support, but they are still in denial about this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 May 2018 02:14:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/why-does-arcgis-runtime-for-android-download-of/m-p/352848#M2279</guid>
      <dc:creator>NathanMellor</dc:creator>
      <dc:date>2018-05-30T02:14:40Z</dc:date>
    </item>
  </channel>
</rss>

