<?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: Exception thrown when map is dealloc'd in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exception-thrown-when-map-is-dealloc-d/m-p/295589#M2647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I can tell these exceptions are harmless. They are caught by the c++ code wrapping pplx.&amp;nbsp;All signs point to them being expected exceptions, most likely related to async data fetching tasks that were cancelled when the mapview was deallocated. You can turn off the C++ exception breakpoint and not see them (Just create an objective-c only exception breakpoint). That would only be important for you if you have C++ code in your app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Feb 2020 20:26:31 GMT</pubDate>
    <dc:creator>RyanOlson1</dc:creator>
    <dc:date>2020-02-20T20:26:31Z</dc:date>
    <item>
      <title>Exception thrown when map is dealloc'd</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exception-thrown-when-map-is-dealloc-d/m-p/295588#M2646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're getting a lot of these exceptions when moving from a view that has an Esri map, to a view that doesn't have one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Thread 1 Queue : com.apple.main-thread (serial)
#0 0x000000011a661854 in __cxa_throw ()
#1 0x000000010ed7dc60 in std::exception_ptr std::make_exception_ptr&amp;lt;pplx::task_canceled&amp;gt;(pplx::task_canceled) ()
#2 0x000000010ed7dfa7 in pplx::details::_CancellationTokenCallback&amp;lt;Esri_runtimecore::Geo_views::Map_view::set_viewpoint_async_(Esri_runtimecore::Geo_model::Viewpoint const&amp;amp;, float, double, Esri_runtimecore::Geo_views::Geo_view::Animate_set_viewpoint, Esri_runtimecore::Map_renderer::Animation::Curve)::$_25&amp;gt;::_Exec() ()
#3 0x000000010ec6a78f in pplx::details::_CancellationTokenState::_Cancel() ()
#4 0x000000010ec722b9 in Esri_runtimecore::Geo_views::Geo_view::~Geo_view() ()
#5 0x000000010e928745 in RT_GeoView_destroy ()
#6 0x000000010e533840 in -[RTCGeoView dealloc] ()
#7 0x000000010e6109a9 in -[RTCMapView dealloc] ()
#8 0x0000000117cbb0d6 in objc_object::sidetable_release(bool) ()
#9 0x000000010e4f08c5 in -[AGSGeoView .cxx_destruct] ()
#10 0x0000000117ca4f02 in object_cxxDestructFromClass(objc_object*, objc_class*) ()
#11 0x0000000117cb44b3 in objc_destructInstance ()
#12 0x0000000118ac95be in -[NSObject(NSObject) __dealloc_zombie] ()
#13 0x000000011e25a6c2 in -[UIResponder dealloc] ()
#14 0x000000011e6e231c in -[UIView dealloc] ()
#15 0x000000010e4ec81b in -[AGSGeoView dealloc] ()
#16 0x000000010e67b03d in -[AGSMapViewCommon dealloc] ()
#17 0x000000010e469285 in -[AGSMapView dealloc] ()
#18 0x0000000116da08a6 in @objc TCEsriSimpleMapView.__ivar_destroyer ()
#19 0x0000000117ca4f02 in object_cxxDestructFromClass(objc_object*, objc_class*) ()
#20 0x0000000117cb44b3 in objc_destructInstance ()
#21 0x0000000118ac95be in -[NSObject(NSObject) __dealloc_zombie] ()
#22 0x000000011e25a6c2 in -[UIResponder dealloc] ()
#23 0x000000011e6e231c in -[UIView dealloc] ()
#24 0x0000000116da067b in TCEsriSimpleMapView.__deallocating_deinit at /path/TCEsriSimpleMapView.swift:154
#25 0x0000000116da06bb in @objc TCEsriSimpleMapView.__deallocating_deinit ()
#26 0x0000000116dbc2f9 in ___lldb_unnamed_symbol262$$TCFramework ()
#27 0x0000000119909f10 in _swift_release_dealloc ()
#28 0x0000000116dbc38d in block_destroy_helper.152 ()
#29 0x000000011a3639c2 in _Block_release ()
#30 0x000000011a24e96c in _dispatch_source_handler_dispose ()
#31 0x000000011a24da82 in _dispatch_source_invoke ()
#32 0x000000011a245c1d in _dispatch_main_queue_callback_4CF ()
#33 0x0000000118a0b049 in __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ ()
#34 0x0000000118a05ca9 in __CFRunLoopRun ()
#35 0x0000000118a05066 in CFRunLoopRunSpecific ()
#36 0x0000000122436bb0 in GSEventRunModal ()
#37 0x000000011e22dd4d in UIApplicationMain ()
#38 0x000000010d8e4b1b in main at /path/AppDelegate.swift:14
#39 0x000000011a2bfc25 in start ()&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're getting these because we've set a breakpoint on "All Exceptions". AFAIK, this does not&amp;nbsp;actually crash the&amp;nbsp;app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still, I'd like to know if there is something we can do to not get them anymore (e.g. cancel any operations, clear any other delegates, etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:18:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exception-thrown-when-map-is-dealloc-d/m-p/295588#M2646</guid>
      <dc:creator>marius</dc:creator>
      <dc:date>2021-12-12T16:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Exception thrown when map is dealloc'd</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exception-thrown-when-map-is-dealloc-d/m-p/295589#M2647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I can tell these exceptions are harmless. They are caught by the c++ code wrapping pplx.&amp;nbsp;All signs point to them being expected exceptions, most likely related to async data fetching tasks that were cancelled when the mapview was deallocated. You can turn off the C++ exception breakpoint and not see them (Just create an objective-c only exception breakpoint). That would only be important for you if you have C++ code in your app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 20:26:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exception-thrown-when-map-is-dealloc-d/m-p/295589#M2647</guid>
      <dc:creator>RyanOlson1</dc:creator>
      <dc:date>2020-02-20T20:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: Exception thrown when map is dealloc'd</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exception-thrown-when-map-is-dealloc-d/m-p/295590#M2648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I thought that that might be the case.&amp;nbsp;Thanks for confirming it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 22:37:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/exception-thrown-when-map-is-dealloc-d/m-p/295590#M2648</guid>
      <dc:creator>marius</dc:creator>
      <dc:date>2020-02-20T22:37:05Z</dc:date>
    </item>
  </channel>
</rss>

