<?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: App crashes after resume (apparently concurrent access of credentials in AuthenticationManager) in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/app-crashes-after-resume-apparently-concurrent/m-p/1513848#M12923</link>
    <description>&lt;P&gt;FYI 200.5 is out as of today. So you should be good to move. .NET MAUI on .NET 7 is also no longer officially supported by Microsoft, and there's so many great bug fixes in .NET8, you really want to upgrade.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2024 19:43:48 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2024-08-01T19:43:48Z</dc:date>
    <item>
      <title>App crashes after resume (apparently concurrent access of credentials in AuthenticationManager)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/app-crashes-after-resume-apparently-concurrent/m-p/1512859#M12910</link>
      <description>&lt;P&gt;We have the following problem with a .NET Maui app using the Maps SDK:&lt;/P&gt;&lt;P&gt;When the device resumes from sleeping, we get a hard crash, apparently caused by the AuthenticationManager concurrently accessing the same list from different threads:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;System.InvalidOperationException: InvalidOperation_EnumFailedVersion&lt;BR /&gt;at System.Collections.Generic.List`1.Enumerator[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNextRare()&lt;BR /&gt;at System.Collections.Generic.List`1.Enumerator[[System.String, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].MoveNext()&lt;BR /&gt;at Esri.ArcGISRuntime.Security.AuthenticationManager.AddCredential(Credential credential, CredentialAddedContext context, Boolean syncPersistence)&lt;BR /&gt;at Esri.ArcGISRuntime.Security.AuthenticationManager.EndSignIn(SignInTask signInTask, Credential crd, Exception error)&lt;BR /&gt;at Esri.ArcGISRuntime.Security.AuthenticationManager.DoSignIn(SignInTask signInTask)&lt;BR /&gt;at System.Threading.Tasks.Task.&amp;lt;&amp;gt;c.&amp;lt;ThrowAsync&amp;gt;b__128_1(Object )&lt;BR /&gt;at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()&lt;BR /&gt;at System.Threading.ThreadPoolWorkQueue.DispatchItemWithAutoreleasePool(Object , Thread )&lt;BR /&gt;at System.Threading.ThreadPoolWorkQueue.Dispatch()&lt;BR /&gt;at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()&lt;BR /&gt;at System.Threading.Thread.StartCallback()&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;We're observing this problem only on iOS devices and the problem seems to occur more reliably the more layers are added to the map. Our guess is that the layers try to reinitialize after resume and are all concurrently using the AuthenticationManager to do so.&lt;/P&gt;&lt;P&gt;Is this a known problem or are there any suggestions how to work around this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 10:04:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/app-crashes-after-resume-apparently-concurrent/m-p/1512859#M12910</guid>
      <dc:creator>arleh</dc:creator>
      <dc:date>2024-07-31T10:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: App crashes after resume (apparently concurrent access of credentials in AuthenticationManager)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/app-crashes-after-resume-apparently-concurrent/m-p/1513013#M12911</link>
      <description>&lt;P&gt;This sounds like a problem that has been fixed last year.&amp;nbsp; We made AuthenticationManager more resilient to multi-threaded use in ArcGIS Maps SDK version 200.2+.&amp;nbsp; If you are still using an older version, I recommend upgrading to check if this resolves the problem.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2024 15:58:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/app-crashes-after-resume-apparently-concurrent/m-p/1513013#M12911</guid>
      <dc:creator>MatveiStefarov</dc:creator>
      <dc:date>2024-07-31T15:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: App crashes after resume (apparently concurrent access of credentials in AuthenticationManager)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/app-crashes-after-resume-apparently-concurrent/m-p/1513437#M12914</link>
      <description>&lt;P&gt;We are indeed still on 200.2 as we are waiting for the 200.5 release. We'll test with 200.3 as that should be doable within our current schedule (migrating to .net 8 will take some time).&lt;/P&gt;&lt;P&gt;Thanks for your reply!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 07:14:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/app-crashes-after-resume-apparently-concurrent/m-p/1513437#M12914</guid>
      <dc:creator>arleh</dc:creator>
      <dc:date>2024-08-01T07:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: App crashes after resume (apparently concurrent access of credentials in AuthenticationManager)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/app-crashes-after-resume-apparently-concurrent/m-p/1513449#M12915</link>
      <description>&lt;P&gt;Ah, I just noticed that 200.3 is already on .net 8 - that means it will take us a bit longer to deploy the fix. But at least we now have one more reason to speed up the transition.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 07:29:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/app-crashes-after-resume-apparently-concurrent/m-p/1513449#M12915</guid>
      <dc:creator>arleh</dc:creator>
      <dc:date>2024-08-01T07:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: App crashes after resume (apparently concurrent access of credentials in AuthenticationManager)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/app-crashes-after-resume-apparently-concurrent/m-p/1513848#M12923</link>
      <description>&lt;P&gt;FYI 200.5 is out as of today. So you should be good to move. .NET MAUI on .NET 7 is also no longer officially supported by Microsoft, and there's so many great bug fixes in .NET8, you really want to upgrade.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2024 19:43:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/app-crashes-after-resume-apparently-concurrent/m-p/1513848#M12923</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2024-08-01T19:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: App crashes after resume (apparently concurrent access of credentials in AuthenticationManager)</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/app-crashes-after-resume-apparently-concurrent/m-p/1637236#M13615</link>
      <description>&lt;P&gt;I am facing similar issues on 200.7 and .NET 9 MAUI. Last of them is with ArcGIS Runtime:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri.ArcGISRuntime.ArcGISRuntimeException&lt;/SPAN&gt;&lt;SPAN&gt;: Invalid argument: Scale is less than or equal to zero.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;void ArcGISException.HandleCoreError(CoreError error, bool throwException)&lt;BR /&gt;Assembly: Esri.ArcGISRuntime Version: 200.7.0.0 PublicKeyToken: xxxxxxxxxxxxxxxx&lt;BR /&gt;void Interop.CheckError(IntPtr errorHandle, bool throwOnFailure, GCHandle wrapperHandle)&lt;BR /&gt;void CoreMapView.InteractionZoomToScale(double scale, CoreCoordinate2D screenPoint)&lt;BR /&gt;bool MapView.OnGeoViewManipulationDelta(PointF origin, PointF screenLocation, double translateX, double translateY, double scale, double rotation, bool isFlick, DeviceIndependentPointingDevice device)&lt;BR /&gt;bool UserInteractionHandler.OnManipulationDelta(PointF origin, PointF screenLocation, double translateX, double translateY, double scale, double rotation, bool isFlick, DeviceIndependentPointingDevice device)&lt;BR /&gt;bool AndroidDeviceInteractionHandler.OnTouchEvent(MotionEvent ev)&lt;BR /&gt;GeoView(CoreGeoView geoView, Context context, IAttributeSet attr)+(object s, TouchEventArgs e) =&amp;gt; { }&lt;BR /&gt;Called from: bool IOnTouchListenerImplementor.OnTouch(View v, MotionEvent e)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Application life cycle:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Exception - This event error 09:33:30.000 AM&lt;BR /&gt;Esri.ArcGISRuntime.ArcGISRuntimeException: Invalid argument: Scale is less than or equal to zero.&lt;BR /&gt;Ui Lifecycle info 09:28:57.738 AM&lt;BR /&gt;Window.Activated&lt;BR /&gt;Ui Lifecycle info 09:28:57.715 AM&lt;BR /&gt;Window.Resumed&lt;BR /&gt;Ui Lifecycle info 09:28:34.904 AM&lt;BR /&gt;Window.Stopped&lt;BR /&gt;Ui Lifecycle info 09:28:33.904 AM&lt;BR /&gt;Window.Deactivated&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;All crashes after resume are random and it is not ArcGIS Maps SDK fault.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have found &lt;A href="https://community.esri.com/t5/net-maps-sdk-questions/android-map-is-frozen-when-resuming-app/m-p/1398672" target="_self"&gt;workaround&lt;/A&gt; for map freezing where suggests handle&amp;nbsp;OnResume() event. Would it be helpful to make some delay inside OnResume()?&amp;nbsp;&lt;/SPAN&gt;Do you have some experience of handling application resume issues?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 10:09:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/app-crashes-after-resume-apparently-concurrent/m-p/1637236#M13615</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2025-07-29T10:09:21Z</dc:date>
    </item>
  </channel>
</rss>

