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

Exception at Telerik.Windows.Automation.Peers.ScatterLineSeriesAutomationPeer.GetChildrenCore()

2 Answers 178 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
N
Top achievements
Rank 1
N asked on 16 Jan 2014, 05:24 PM
This error is happening consistently on plotting series in "one of the user machine." Its working fine on other machines..

We are using Telerik.Windows.Controls.Charting, File version is 2013.1.220.40.
This also seems to be happening when HP Unified Function Testing tool is on.

Is this a known issue? Any help is appreciated.

Method: App.HandleException
Exception Method: Enumerable.SingleOrDefault
Message: Sequence contains more than one element


Stack Trace:    at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source)
   at Telerik.Windows.Automation.Peers.ScatterLineSeriesAutomationPeer.GetChildrenCore()
   at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateChildrenInternal(Int32 invalidateLimit)
   at System.Windows.Automation.Peers.AutomationPeer.UpdateChildren()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.Automation.Peers.AutomationPeer.UpdateSubtree()
   at System.Windows.ContextLayoutManager.fireAutomationEvents()
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
   at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
   at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)"



2 Answers, 1 is accepted

Sort by
0
N
Top achievements
Rank 1
answered on 17 Jan 2014, 05:00 PM

I am able to reproduce this now, when i have any UI Automation client running for example Accessories->Ease Of Access -> Narrator "running".

I am able to solve this, This happens on ScatterLineSeriesAutomationPeer class. You are probably expecting SingleOrDefault from call to  GetChildrenCore(). What i did was inherit Telerik ScatterlineSeries and dont participate in UI automation by returning null on OnCreateAutomationPeer.

Not sure of what side effects this solution will have. The preffered way would be Telerik solves this issue and provides a fix.
Is there a fix for this or any other better workaround?

0
Peshito
Telerik team
answered on 20 Jan 2014, 02:04 PM
Hi,

The workaround you have used is the one that I would have suggested as well.

As for the issue, I was not able to reproduce it in a sample application using ScatterLine series.

Would it be possible for you to give us some more information about the exception and how to get it. A sample runnable app with the steps to reproduce it will shed some light and we could manage to reproduce it which will help us in giving you a possible fix. You can either submit a support ticket thread and attach the project there or upload and share it using a third party website for sharing files.

But before that, please ensure this is reproducible with the latest version of our controls as 2013.3 1204 is not the latest one and we did some changes afterwards.

Regards,
Peshito
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
ChartView
Asked by
N
Top achievements
Rank 1
Answers by
N
Top achievements
Rank 1
Peshito
Telerik team
Share this question
or