<?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 Random crashes due to a null pointer exception in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/random-crashes-due-to-a-null-pointer-exception/m-p/1075597#M7009</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;After upgrading to ArcGIS Runtime 100.10 we're experiencing randomly occurring crashes caused by an unhandled/undetected null point exception in ArcGIS.&lt;/P&gt;&lt;P&gt;The exception occurs in the RTCViewpoint.m on line 98 according to the Xcode trace:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;ArcGIS`-[RTCViewpoint initWithTargetExtent:]:
    0x101f4110c &amp;lt;+0&amp;gt;:  stp    x20, x19, [sp, #-0x20]!
    0x101f41110 &amp;lt;+4&amp;gt;:  stp    x29, x30, [sp, #0x10]
    0x101f41114 &amp;lt;+8&amp;gt;:  add    x29, sp, #0x10            ; =0x10 
    0x101f41118 &amp;lt;+12&amp;gt;: mov    x19, x0
    0x101f4111c &amp;lt;+16&amp;gt;: adrp   x8, 16933
    0x101f41120 &amp;lt;+20&amp;gt;: ldr    x1, [x8, #0xe48]
    0x101f41124 &amp;lt;+24&amp;gt;: mov    x0, x2
    0x101f41128 &amp;lt;+28&amp;gt;: bl     0x104d75fd4               ; symbol stub for: objc_msgSend
    0x101f4112c &amp;lt;+32&amp;gt;: mov    x1, #0x0
    0x101f41130 &amp;lt;+36&amp;gt;: bl     0x102217aa0               ; RT_Viewpoint_createWithExtent
-&amp;gt;  0x101f41134 &amp;lt;+40&amp;gt;: cbz    x0, 0x101f41150           ; &amp;lt;+68&amp;gt; at RTCViewpoint.m:98:12
    0x101f41138 &amp;lt;+44&amp;gt;: mov    x2, x0
    0x101f4113c &amp;lt;+48&amp;gt;: adrp   x8, 16933
    0x101f41140 &amp;lt;+52&amp;gt;: ldr    x1, [x8, #0xe40]
    0x101f41144 &amp;lt;+56&amp;gt;: mov    x0, x19
    0x101f41148 &amp;lt;+60&amp;gt;: bl     0x104d75fd4               ; symbol stub for: objc_msgSend
    0x101f4114c &amp;lt;+64&amp;gt;: mov    x19, x0
    0x101f41150 &amp;lt;+68&amp;gt;: bl     0x104d75ff8               ; symbol stub for: objc_retain
    0x101f41154 &amp;lt;+72&amp;gt;: mov    x20, x0
    0x101f41158 &amp;lt;+76&amp;gt;: mov    x0, x19
    0x101f4115c &amp;lt;+80&amp;gt;: bl     0x104d75fec               ; symbol stub for: objc_release
    0x101f41160 &amp;lt;+84&amp;gt;: mov    x0, x20
    0x101f41164 &amp;lt;+88&amp;gt;: ldp    x29, x30, [sp, #0x10]
    0x101f41168 &amp;lt;+92&amp;gt;: ldp    x20, x19, [sp], #0x20
    0x101f4116c &amp;lt;+96&amp;gt;: ret    &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;with the following error message in the console log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;ArcGIS Runtime Error Occurred. Set a breakpoint on C++ exceptions to see the original callstack and context for this error:  Error Domain=com.esri.arcgis.runtime.error Code=1 "Null pointer." UserInfo={NSLocalizedFailureReason=object cannot be null., NSLocalizedDescription=Null pointer., Additional Message=object cannot be null.}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me with this issue or has seen similar behaviour?&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jul 2021 09:49:12 GMT</pubDate>
    <dc:creator>raphaelgosteli</dc:creator>
    <dc:date>2021-07-05T09:49:12Z</dc:date>
    <item>
      <title>Random crashes due to a null pointer exception</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/random-crashes-due-to-a-null-pointer-exception/m-p/1075597#M7009</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;After upgrading to ArcGIS Runtime 100.10 we're experiencing randomly occurring crashes caused by an unhandled/undetected null point exception in ArcGIS.&lt;/P&gt;&lt;P&gt;The exception occurs in the RTCViewpoint.m on line 98 according to the Xcode trace:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;ArcGIS`-[RTCViewpoint initWithTargetExtent:]:
    0x101f4110c &amp;lt;+0&amp;gt;:  stp    x20, x19, [sp, #-0x20]!
    0x101f41110 &amp;lt;+4&amp;gt;:  stp    x29, x30, [sp, #0x10]
    0x101f41114 &amp;lt;+8&amp;gt;:  add    x29, sp, #0x10            ; =0x10 
    0x101f41118 &amp;lt;+12&amp;gt;: mov    x19, x0
    0x101f4111c &amp;lt;+16&amp;gt;: adrp   x8, 16933
    0x101f41120 &amp;lt;+20&amp;gt;: ldr    x1, [x8, #0xe48]
    0x101f41124 &amp;lt;+24&amp;gt;: mov    x0, x2
    0x101f41128 &amp;lt;+28&amp;gt;: bl     0x104d75fd4               ; symbol stub for: objc_msgSend
    0x101f4112c &amp;lt;+32&amp;gt;: mov    x1, #0x0
    0x101f41130 &amp;lt;+36&amp;gt;: bl     0x102217aa0               ; RT_Viewpoint_createWithExtent
-&amp;gt;  0x101f41134 &amp;lt;+40&amp;gt;: cbz    x0, 0x101f41150           ; &amp;lt;+68&amp;gt; at RTCViewpoint.m:98:12
    0x101f41138 &amp;lt;+44&amp;gt;: mov    x2, x0
    0x101f4113c &amp;lt;+48&amp;gt;: adrp   x8, 16933
    0x101f41140 &amp;lt;+52&amp;gt;: ldr    x1, [x8, #0xe40]
    0x101f41144 &amp;lt;+56&amp;gt;: mov    x0, x19
    0x101f41148 &amp;lt;+60&amp;gt;: bl     0x104d75fd4               ; symbol stub for: objc_msgSend
    0x101f4114c &amp;lt;+64&amp;gt;: mov    x19, x0
    0x101f41150 &amp;lt;+68&amp;gt;: bl     0x104d75ff8               ; symbol stub for: objc_retain
    0x101f41154 &amp;lt;+72&amp;gt;: mov    x20, x0
    0x101f41158 &amp;lt;+76&amp;gt;: mov    x0, x19
    0x101f4115c &amp;lt;+80&amp;gt;: bl     0x104d75fec               ; symbol stub for: objc_release
    0x101f41160 &amp;lt;+84&amp;gt;: mov    x0, x20
    0x101f41164 &amp;lt;+88&amp;gt;: ldp    x29, x30, [sp, #0x10]
    0x101f41168 &amp;lt;+92&amp;gt;: ldp    x20, x19, [sp], #0x20
    0x101f4116c &amp;lt;+96&amp;gt;: ret    &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;with the following error message in the console log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;ArcGIS Runtime Error Occurred. Set a breakpoint on C++ exceptions to see the original callstack and context for this error:  Error Domain=com.esri.arcgis.runtime.error Code=1 "Null pointer." UserInfo={NSLocalizedFailureReason=object cannot be null., NSLocalizedDescription=Null pointer., Additional Message=object cannot be null.}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me with this issue or has seen similar behaviour?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 09:49:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/random-crashes-due-to-a-null-pointer-exception/m-p/1075597#M7009</guid>
      <dc:creator>raphaelgosteli</dc:creator>
      <dc:date>2021-07-05T09:49:12Z</dc:date>
    </item>
    <item>
      <title>Re: Random crashes due to a null pointer exception</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/random-crashes-due-to-a-null-pointer-exception/m-p/1075610#M7010</link>
      <description>&lt;P&gt;Hi Raphael, did you try the latest (100.11.2) sdk? Also,&amp;nbsp;&lt;SPAN&gt;RTCViewpoint.m - is that really ESRI's code? I´m not an ESRI dev, but usually they prefix everything with AGS &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jul 2021 13:10:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/random-crashes-due-to-a-null-pointer-exception/m-p/1075610#M7010</guid>
      <dc:creator>kris</dc:creator>
      <dc:date>2021-07-05T13:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Random crashes due to a null pointer exception</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/random-crashes-due-to-a-null-pointer-exception/m-p/1075830#M7012</link>
      <description>&lt;P&gt;Hello, sorry to hear you are having a problem. &amp;nbsp;What is your app doing when the crash occurs? &amp;nbsp;If you have sample code or a sequence of steps which reproduces the problem, that would help in determining why the "null pointer" exception happens.&lt;/P&gt;&lt;P&gt;I would also recommend what&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/431666"&gt;@kris&lt;/a&gt;&amp;nbsp;suggests: &amp;nbsp;upgrading to the latest SDK (&lt;SPAN&gt;100.11.2). &amp;nbsp;(RTCViewpoint.m is our code.)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Lastly, what version of Xcode/iOS are you using when the crash occurs?&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 13:30:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/random-crashes-due-to-a-null-pointer-exception/m-p/1075830#M7012</guid>
      <dc:creator>MarkDostal</dc:creator>
      <dc:date>2021-07-06T13:30:49Z</dc:date>
    </item>
  </channel>
</rss>

