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

RadMap throwing exception but unable to view details

1 Answer 125 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jerrod
Top achievements
Rank 1
Jerrod asked on 02 Mar 2020, 04:53 PM

     Hello,

 

I have a RadMap that is throwing an exception which is putting my wpf application into 'break mode'. I am unable to locate where exactly the exception is occurring as it seems to be within the RadMap library. Any suggestions?

 

System.NullReferenceException

  HResult=0x80004003
  Message=Object reference not set to an instance of an object.
  Source=Telerik.Windows.Controls.DataVisualization
  StackTrace:
   at Telerik.Windows.Controls.Map.MapShapeData.SetLogicalWidth(Int32 zoomLevel)
   at Telerik.Windows.Controls.Map.MapShapeData.CalculateScreenGeometry(Int32 zoomLevel, Boolean raisePropertyChanged)
   at Telerik.Windows.Controls.Map.ShapeCoordinatesProcessor.StartProcessing(Object paramObject)
   at System.Threading.QueueUserWorkItemCallback.WaitCallback_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.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

1 Answer, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 05 Mar 2020, 10:47 AM

Hello Jerrod,

Thank you for the provided call stack. 

I am afraid that it is difficult to tell what might be the reason for the described exception without being able to replicate it on my end. May I ask you to share a sample project demonstrating the scenario along with some sample steps, which I can follow on my end? This will hopefully allow me to reproduce the same behavior and investigate it. 

On a side note, you can open a new support ticket and attach a project in it, since project files cannot be attached to forum posts. 

Thank you in advance for any help you can provide.

Regards,
Vladimir Stoyanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Alec
Top achievements
Rank 1
commented on 01 Mar 2023, 06:31 AM

Hi Vladimir.

We occasionally experience absolutely identical error. Our Telerik version is 2022.1.222.45.

If it is a known bug, has it been fixed in later releases?

Thank you.

Alec
Top achievements
Rank 1
commented on 01 Mar 2023, 10:48 AM

Same issure reported in 2017: 

https://www.telerik.com/forums/application-crashes-after-radmap-is-disposed.

Our problem is we do not call Dispose method directly, so the workaround will not work.

Martin Ivanov
Telerik team
commented on 01 Mar 2023, 11:52 AM

We recently fixed a similar bug in the SetLogicalWidth method. The fix should cover most of the scenarios where this error occurs. It was released with R2 2022 SP1 (2022.2.621) version of Telerik UI for WPF. Can you please download the latest Telerik product version and see if the error still occurs?
Alec
Top achievements
Rank 1
commented on 01 Mar 2023, 11:16 PM

Hi Martin.

Thank you for your prompt reply, I really appreciate it. I think the bug you fixed is exactly what happens to us as we deal with those VisualizationLayers a lot. We will update Telerik to the latest version and see how it goes.

Tags
General Discussions
Asked by
Jerrod
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Share this question
or