Map ArgumentException

3 posts, 0 answers
  1. Travis
    Travis avatar
    3 posts
    Member since:
    Mar 2011

    Posted 26 Jun Link to this post

    We're dealing with a very old version (2012.2.912.40) of the map control and using the Bing Maps provider. We've just had a couple users run into an ArgumentExpcetion getting thrown when it tries to utilize the IComparer.Compare method inside Telerik.Windows.Controls.Map.FileCacheBase.GetMetadata.

    We've gone 5 years without ever encountering it, and then having a couple occurrences worries us. One user repaved their machine and the issue didn't resurface. Search hasn't revealed anything similar, so we were wondering if you've experienced this before and if maybe a newer version fixes the issue so we just need to upgrade.

    Appreciate any help,

    Travis

     

    Here is the stack trace of the exception:

    Exception stack traces: (ArgumentException) Unable to sort because the IComparer.Compare() method returns inconsistent results. Either a value does not compare equal to itself, or one value repeatedly compared to another value yields different results. IComparer: 'System.Array+FunctorComparer`1[Telerik.Windows.Controls.Map.MemoryCache+ICacheRecordMetadata]'.
       at System.Collections.Generic.IntrospectiveSortUtilities.ThrowOrIgnoreBadComparer(Object comparer)
       at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
       at System.Array.Sort[T](T[] array, Int32 index, Int32 length, IComparer`1 comparer)
       at System.Collections.Generic.List`1.Sort(Comparison`1 comparison)
       at Telerik.Windows.Controls.Map.FileCacheBase.GetMetadata()
       at Telerik.Windows.Controls.Map.FileCacheBase.SaveFilesThread()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()

  2. Dinko
    Admin
    Dinko avatar
    462 posts

    Posted 29 Jun Link to this post

    Hello Travis,

    Thank you for contacting us.

    We are not aware of the observed by exception and we were not able to reproduce it on our side. Could you please provide us some more detailed information about the scenario where the exception occurs and some steps to reproduce it? It will be great if you can send us isolated project from your application which reproduces this exception. You can also try downloading the latest version of our controls and check again if this exception still occurs.

    Regards,
    Dinko
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. Travis
    Travis avatar
    3 posts
    Member since:
    Mar 2011

    Posted 06 Jul in reply to Dinko Link to this post

    Thanks for your response Dinko,

     

    At this point we're not able to reproduce the issue, we just have a couple issues suffering from this. We believe we've narrowed it down to something being wrong in the %AppData%\..\Local\TelerikMapCache folder, and having the user delete that folder and then go to the screens with the map control seems to fix the issue.

    I'm trying to get the TelerikMapCache folder from the user that's currently suffering the issue to see if I can use that to reproduce the issue at all.

    Once/if I can reproduce the issue I'll be sure to send it your way, after I've tried the latest version of the controls against it.

    Thanks,

    Travis

Back to Top