<?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: SetViewpointAsync causing random AccessViolationException in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointasync-causing-random/m-p/79074#M855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this is a known issue in the v100.0 release. Apologies if the release notes were not quite as specific on this as they should have been (use of `setViewpointCamera` vs SetViewPointAsync).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"When calling setViewpointCamera on a timer with high animation speeds a crash may be encountered."&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/guide/release-notes.htm" title="https://developers.arcgis.com/net/latest/wpf/guide/release-notes.htm"&gt;Release notes for 100.0—ArcGIS Runtime SDK for .NET | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is under consideration/investigation for addressing in the next release and we're also looking at ways we can expose a mechanism&amp;nbsp;to cancel these async SetViewpoint... operations - that might help is this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2017 19:18:48 GMT</pubDate>
    <dc:creator>MichaelBranscomb</dc:creator>
    <dc:date>2017-01-30T19:18:48Z</dc:date>
    <item>
      <title>SetViewpointAsync causing random AccessViolationException</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointasync-causing-random/m-p/79073#M854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I'm running into the following randomly: System.AccessViolationException was unhandled Message: An unhandled exception of type 'System.AccessViolationException' occurred in WindowsBase.dll Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A little background:&lt;/P&gt;&lt;P&gt;- I'm running Runtime v100.0&lt;/P&gt;&lt;P&gt;- The app is written using MVVM and Prism IoC&lt;/P&gt;&lt;P&gt;-&amp;nbsp;There's a&amp;nbsp;View (TwoDView)&amp;nbsp;which has a MapView&lt;/P&gt;&lt;P&gt;-&amp;nbsp;TwoDView has a ViewModel (TwoDViewModel)&amp;nbsp;which navigates&amp;nbsp;-- uses RequestNavigate(...) --&amp;nbsp;to a view&amp;nbsp;(ThreeDView)&amp;nbsp;which has&amp;nbsp;SceneView&lt;/P&gt;&lt;P&gt;- ThreeDViewModel responds to the navigation and applies the camera (calling a controller, created to manage the SceneView using a WeakReference&amp;lt;&amp;gt;)&amp;nbsp;passed via navigation parameters&lt;/P&gt;&lt;P&gt;- The controller calls SetViewpointCameraAsync &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is also a back button in ThreeDView to allow going back to TwoDView for selecting another 3D area for inspection.&amp;nbsp; It seems multiple calls to SetViewpointCameraAsync is causing my issue...if I use SetViewpointCamera...no issue (it seems).&amp;nbsp; Any ideas??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jan 2017 12:57:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointasync-causing-random/m-p/79073#M854</guid>
      <dc:creator>CharlieMatherne1</dc:creator>
      <dc:date>2017-01-24T12:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: SetViewpointAsync causing random AccessViolationException</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointasync-causing-random/m-p/79074#M855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this is a known issue in the v100.0 release. Apologies if the release notes were not quite as specific on this as they should have been (use of `setViewpointCamera` vs SetViewPointAsync).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"When calling setViewpointCamera on a timer with high animation speeds a crash may be encountered."&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/guide/release-notes.htm" title="https://developers.arcgis.com/net/latest/wpf/guide/release-notes.htm"&gt;Release notes for 100.0—ArcGIS Runtime SDK for .NET | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is under consideration/investigation for addressing in the next release and we're also looking at ways we can expose a mechanism&amp;nbsp;to cancel these async SetViewpoint... operations - that might help is this scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 19:18:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointasync-causing-random/m-p/79074#M855</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2017-01-30T19:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: SetViewpointAsync causing random AccessViolationException</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointasync-causing-random/m-p/79075#M856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael. &amp;nbsp;I failed to check the release notes. &amp;nbsp;In my case, the situation is stable. &amp;nbsp;But will be nice when the camera option is corrected --&amp;nbsp;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/188696-setting-a-cameras-distance-via-constructor-causes-issues-when-camera-is-applied-to-sceneview"&gt;&lt;SPAN style="text-decoration: none;"&gt;Setting a Camera's distance (via constructor) causes issues when camera is applied to SceneView.&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 02:49:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointasync-causing-random/m-p/79075#M856</guid>
      <dc:creator>CharlieMatherne1</dc:creator>
      <dc:date>2017-02-03T02:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: SetViewpointAsync causing random AccessViolationException</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointasync-causing-random/m-p/79076#M857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/people/MBranscomb-esristaff"&gt;MBranscomb-esristaff&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a timeline for when SetViewpointAsync&amp;nbsp;will be available for the WPF SDK? I see that this issue is listed as addressed in the 100.1 release notes, but specifically for android and I'm still hitting this exception with the WPF SDK. Just curious when this will be rolled out to other languages as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 15:38:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointasync-causing-random/m-p/79076#M857</guid>
      <dc:creator>ChadLeppanen</dc:creator>
      <dc:date>2017-10-10T15:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: SetViewpointAsync causing random AccessViolationException</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointasync-causing-random/m-p/79077#M858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should have been addressed for all our .NET APIs in the 100.1 release (it was a bug in the underlying C++ codebase which is shared by both WPF and Android).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you share&amp;nbsp;your&amp;nbsp;code that shows this issue in WPF?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 15:45:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointasync-causing-random/m-p/79077#M858</guid>
      <dc:creator>MichaelBranscomb</dc:creator>
      <dc:date>2017-10-10T15:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: SetViewpointAsync causing random AccessViolationException</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointasync-causing-random/m-p/79078#M859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We're working on a sample application right now to isolate the use of the method. We'll verify that we continue to get access violation before passing it your way. Could take a while since the occurrence of the violation itself is random, and it generally takes several hours of running the application through functional simulation for us to hit it.&lt;BR /&gt;&lt;BR /&gt;We are also gathering event viewer logs, and can provide dump files that might help, although they didn't really help us all too much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 17:29:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/setviewpointasync-causing-random/m-p/79078#M859</guid>
      <dc:creator>ChadLeppanen</dc:creator>
      <dc:date>2017-10-10T17:29:12Z</dc:date>
    </item>
  </channel>
</rss>

