This is a migrated thread and some comments may be shown as answers.

Map ArgumentException

2 Answers 80 Views
Map
This is a migrated thread and some comments may be shown as answers.
Travis
Top achievements
Rank 1
Travis asked on 26 Jun 2017, 07:22 PM

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 Answers, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 29 Jun 2017, 12:15 PM
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 you to write beautiful native mobile apps using a single shared C# codebase.
0
Travis
Top achievements
Rank 1
answered on 06 Jul 2017, 02:37 PM

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

Tags
Map
Asked by
Travis
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Travis
Top achievements
Rank 1
Share this question
or