<?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: &amp;quot;could not load&amp;quot; exception using AGSLocalTiledLayer and TPK in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/amp-quot-could-not-load-amp-quot-exception-using/m-p/316643#M2786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, Kirk -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does your app crash when the exception is encountered? Or does it just log those messages in the console and continue to work (although without the tiles) ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you share your TPK with us so that we can debug it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried recreating the TPK to see if the missing files are included subsequently? What version of ArcGIS did you use to create the TPK? 10.1 Pre-release or Final?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2012 17:32:43 GMT</pubDate>
    <dc:creator>DiveshGoyal</dc:creator>
    <dc:date>2012-07-11T17:32:43Z</dc:date>
    <item>
      <title>&amp;quot;could not load&amp;quot; exception using AGSLocalTiledLayer and TPK</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/amp-quot-could-not-load-amp-quot-exception-using/m-p/316642#M2785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Our app uses an AGSLocalTiledLayer to provide offline access to map data using a tile package (TPK). We're using v2.3 of the iOS SDK. Recently we've been encountering an exception using when the map is positioned to a certain area at certain zoom levels. This is getting logged to debug output:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
2012-07-10 11:15:53.610 app[11990:19a03] could not locate: v101/Layers/_alllayers/L19/R36280C4e400.bundle
2012-07-10 11:15:53.648 app[11990:19a03] could not locate: v101/Layers/_alllayers/L19/R36280C4e400.bundlx&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Looking at the contents of the TPK (by changing the extension to .zip and uncompressing it), the .bundle and .bundlx files from the debug output are indeed not there. This seems to only occur with tiles in the 2 lowest scales (L18 and L19), almost as though the tiles at those scales in the TPK were not completely generated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So ... two questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;OL&gt;&lt;BR /&gt;&lt;LI&gt;Has anyone encountered an issues with a TPK like this before, and if so, did you find a way to ensure all the expected tiles get included in the TPK? Any errors/warnings we ought to be looking for in ArcGIS Desktop?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Is there a recommended/supported way to handle this situation when using the iOS SDK?&lt;/LI&gt;&lt;BR /&gt;&lt;/OL&gt;&lt;SPAN&gt;Here is a stack trace from a crash report when this exception is encountered:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
Thread 14 Crashed:
0&amp;nbsp;&amp;nbsp; libsystem_kernel.dylib&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x30d8632c __pthread_kill + 8
1&amp;nbsp;&amp;nbsp; libsystem_c.dylib&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x33317208 pthread_kill + 48
2&amp;nbsp;&amp;nbsp; libsystem_c.dylib&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x33310316 __abort + 86
3&amp;nbsp;&amp;nbsp; libsystem_c.dylib&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x332f1b42 __chk_fail + 38
4&amp;nbsp;&amp;nbsp; libsystem_c.dylib&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x332f1b0e __memcpy_chk + 6
5&amp;nbsp;&amp;nbsp; app&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00118dcc -[AGSIndexRec readFileStream:recordSize:] (AGSIndexRec.m:39)
6&amp;nbsp;&amp;nbsp; app&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00116c12 -[AGSVFileIndex readIndex:] (AGSVFileIndex.mm:262)
7&amp;nbsp;&amp;nbsp; app&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00116640 -[AGSVFileIndex filePosition:] (AGSVFileIndex.mm:142)
8&amp;nbsp;&amp;nbsp; app&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0011a098 -[AGSVFileReader readRecord:buffer:length:] (AGSVFileReader.mm:225)
9&amp;nbsp;&amp;nbsp; app&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0011827e -[AGSVFileTileReader getTileForLOD:row:col:tileData:] (AGSVFileTileReader.m:76)
10&amp;nbsp; app&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0011d792 -[AGSLocalTileRequestOperation main] (AGSLocalTileRequestOperation.m:91)
11&amp;nbsp; Foundation&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x372d138c -[__NSOperationInternal start] + 856
12&amp;nbsp; Foundation&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x3733a78c __block_global_6 + 96
13&amp;nbsp; libdispatch.dylib&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x34a4dc52 _dispatch_call_block_and_release + 6
14&amp;nbsp; libdispatch.dylib&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x34a50810 _dispatch_worker_thread2 + 252
15&amp;nbsp; libsystem_c.dylib&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x332d2df4 _pthread_wqthread + 288
16&amp;nbsp; libsystem_c.dylib&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x332d2cc8 start_wqthread + 0&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jul 2012 16:29:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/amp-quot-could-not-load-amp-quot-exception-using/m-p/316642#M2785</guid>
      <dc:creator>EvanKirkwood</dc:creator>
      <dc:date>2012-07-10T16:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: "could not load" exception using AGSLocalTiledLayer and TPK</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/amp-quot-could-not-load-amp-quot-exception-using/m-p/316643#M2786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, Kirk -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does your app crash when the exception is encountered? Or does it just log those messages in the console and continue to work (although without the tiles) ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you share your TPK with us so that we can debug it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you tried recreating the TPK to see if the missing files are included subsequently? What version of ArcGIS did you use to create the TPK? 10.1 Pre-release or Final?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 17:32:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/amp-quot-could-not-load-amp-quot-exception-using/m-p/316643#M2786</guid>
      <dc:creator>DiveshGoyal</dc:creator>
      <dc:date>2012-07-11T17:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: "could not load" exception using AGSLocalTiledLayer and TPK</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/amp-quot-could-not-load-amp-quot-exception-using/m-p/316644#M2787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi, Kirk -&lt;BR /&gt;&lt;BR /&gt;Does your app crash when the exception is encountered? Or does it just log those messages in the console and continue to work (although without the tiles) ?&lt;BR /&gt;&lt;BR /&gt;Can you share your TPK with us so that we can debug it.&lt;BR /&gt;&lt;BR /&gt;Have you tried recreating the TPK to see if the missing files are included subsequently? What version of ArcGIS did you use to create the TPK? 10.1 Pre-release or Final?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, the app crashes when the exception is encountered (see crash report in the OP).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately the TPK we're encountering the issue with contains proprietary customer information, so we can't share it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have tried recreating the TPK, and now suspect we may have an issue with the custom tiling schema we're using. We are currently using the pre-release version of ArcGIS 10.1 - is it possible that could be related to the TPK issues we're observing? We ran into another error - "Invalid function argument" - trying to create a TPK in NAD83 Alberta 3TM 114W projection (this is perhaps more appropriate to post in the ArcGIS Desktop forum, but any advice here would be appreciated).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Evan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2012 23:26:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/amp-quot-could-not-load-amp-quot-exception-using/m-p/316644#M2787</guid>
      <dc:creator>EvanKirkwood</dc:creator>
      <dc:date>2012-07-11T23:26:03Z</dc:date>
    </item>
  </channel>
</rss>

