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

3 posts, 0 answers
  1. N
    N avatar
    21 posts
    Member since:
    May 2012

    Posted 16 Jan 2014 Link to this post

    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. N
    N avatar
    21 posts
    Member since:
    May 2012

    Posted 17 Jan 2014 Link to this post


    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?

  3. UI for WPF is Visual Studio 2017 Ready
  4. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 20 Jan 2014 Link to this post

    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 >>
Back to Top