<?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 GraphicsOverlay Remove Item Randomly Leads To UI Freeze in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-remove-item-randomly-leads-to-ui/m-p/1059832#M10118</link>
    <description>&lt;P&gt;In my project I uses the Esri.ArcGIS.Runtime toolkit for .NET application development. (WPF)&lt;/P&gt;&lt;P&gt;I am using this toolkit for about 2 years now, and recently encountered some kind of unexplained bug.&lt;BR /&gt;while using the &lt;STRONG&gt;MapView.GraphicsOverlay[key].Graphics.Remove(itemToRemove)&lt;/STRONG&gt; the program &lt;STRONG&gt;freezes.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In my application the map interaction frequency is about 100Hz. (Add/Remove points to GraphicsOverlay)&lt;/P&gt;&lt;P&gt;This happens randomly , and when debugging I have found that the program gets stuck while executing these lines:&lt;/P&gt;&lt;P&gt;public void Remove(long position)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; IntPtr errorHandle;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; CoreVector.CoreRT_vector_remove(this, position, out errorHandle);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &lt;STRONG&gt;GC.KeepAlive(this); &amp;lt;--&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;InteropCheckError(errorHandle, true, default(GCHandle));&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;since map updates are executed from the main UI thread, it makes the whole program freeze.&lt;BR /&gt;and windows 10 labels the program as unresponsive.&lt;/P&gt;&lt;P&gt;can anyone point me to a solution? has anyone encountered this issue before?&lt;BR /&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 20 May 2021 10:03:06 GMT</pubDate>
    <dc:creator>ofir_bar_tal</dc:creator>
    <dc:date>2021-05-20T10:03:06Z</dc:date>
    <item>
      <title>GraphicsOverlay Remove Item Randomly Leads To UI Freeze</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-remove-item-randomly-leads-to-ui/m-p/1059832#M10118</link>
      <description>&lt;P&gt;In my project I uses the Esri.ArcGIS.Runtime toolkit for .NET application development. (WPF)&lt;/P&gt;&lt;P&gt;I am using this toolkit for about 2 years now, and recently encountered some kind of unexplained bug.&lt;BR /&gt;while using the &lt;STRONG&gt;MapView.GraphicsOverlay[key].Graphics.Remove(itemToRemove)&lt;/STRONG&gt; the program &lt;STRONG&gt;freezes.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In my application the map interaction frequency is about 100Hz. (Add/Remove points to GraphicsOverlay)&lt;/P&gt;&lt;P&gt;This happens randomly , and when debugging I have found that the program gets stuck while executing these lines:&lt;/P&gt;&lt;P&gt;public void Remove(long position)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; IntPtr errorHandle;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; CoreVector.CoreRT_vector_remove(this, position, out errorHandle);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &lt;STRONG&gt;GC.KeepAlive(this); &amp;lt;--&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;InteropCheckError(errorHandle, true, default(GCHandle));&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;since map updates are executed from the main UI thread, it makes the whole program freeze.&lt;BR /&gt;and windows 10 labels the program as unresponsive.&lt;/P&gt;&lt;P&gt;can anyone point me to a solution? has anyone encountered this issue before?&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 10:03:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-remove-item-randomly-leads-to-ui/m-p/1059832#M10118</guid>
      <dc:creator>ofir_bar_tal</dc:creator>
      <dc:date>2021-05-20T10:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsOverlay Remove Item Randomly Leads To UI Freeze</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-remove-item-randomly-leads-to-ui/m-p/1060305#M10119</link>
      <description>&lt;P&gt;I'm having the same issue, would appreciate any help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 07:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-remove-item-randomly-leads-to-ui/m-p/1060305#M10119</guid>
      <dc:creator>almogelmaliah</dc:creator>
      <dc:date>2021-05-21T07:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: GraphicsOverlay Remove Item Randomly Leads To UI Freeze</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-remove-item-randomly-leads-to-ui/m-p/1089330#M10360</link>
      <description>&lt;P&gt;Hello! I've been trying to debug this problem, but so far I have not been able to reproduce the freeze.&amp;nbsp; Could you help me narrow down this problem by answering a few questions?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Which version of ArcGIS Runtime are you using?&lt;/LI&gt;&lt;LI&gt;What GraphicsRenderingMode is used on the overlay -- static or dynamic?&lt;/LI&gt;&lt;LI&gt;What geometry type do the Graphics have (point, line, polygon, etc)?&lt;/LI&gt;&lt;LI&gt;Are there any other tasks happening in the background around the time of the freeze (e.g. identify operations, adding/removing layers, changing symbology, resizing the view, etc)?&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 16 Aug 2021 16:12:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/graphicsoverlay-remove-item-randomly-leads-to-ui/m-p/1089330#M10360</guid>
      <dc:creator>MatveiStefarov</dc:creator>
      <dc:date>2021-08-16T16:12:17Z</dc:date>
    </item>
  </channel>
</rss>

