Diagram TreeLayout Stackoverflow Exception

5 posts, 1 answers
  1. Mahmut
    Mahmut avatar
    22 posts
    Member since:
    Nov 2014

    Posted 04 Dec 2014 Link to this post

    Hi,
    Is there any limit for tree layout? There are 1100 items and 1200 connections in the diagram. And when applying layout throw stackoverflowexception. Sugiyama Layout working correctly. And tree layout working small diagram( 10 Items, 9 Connections). But in large one, not working. I believe Tree DataStructure function generally recursive one. So It caused the StackoverflowException.
    Thanks in advance.
  2. Answer
    Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 09 Dec 2014 Link to this post

    Hi Mahmut,
    Thank you for the feedback. I was able to reproduce the issue and indeed it's caused by the recursive calls in our Tree layout. If you have a very large/deep hierarchy our default layout may throw a StackOverflow exception.
    Unfortunately there's no workaround at the moment as this is part of our layout implementation.
    I updated you Telerik account and logged the issue in our feedback portal where you can track its progress.

    Regards,
    Zarko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. B
    B avatar
    74 posts
    Member since:
    Jul 2011

    Posted 08 Apr 2015 Link to this post

    I'm having the same issue as Mahmut, but also with Sugiyama Layout and very small diagrams.

    The call stack tells me it keeps updating endpoint of a RadDiagramConnection.

    Same diagram sometimes throws StackOverflowException, sometimes not.

    Do you have an example for easy applying custom layout?

  5. B
    B avatar
    74 posts
    Member since:
    Jul 2011

    Posted 08 Apr 2015 in reply to B Link to this post

    Setting LayoutContainerChildren of SugiyamaSettings to true seems to cause the issue
  6. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 09 Apr 2015 Link to this post

    Hi Demir,

    Could you please check whether this issue is reproducible in Q1 2015 Release ? He actually resolved similar (or the same) issue for Q1. If yes, is it possible for you to send us an isolated sample that we can look at ? Thank you for your cooperation.

    Regards,
    Petar Mladenov
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top
UI for WPF is Visual Studio 2017 Ready