Bug: Stack Overflow Error

3 posts, 0 answers
  1. Thomas Salt
    Thomas Salt avatar
    136 posts
    Member since:
    Apr 2005

    Posted 16 Apr 2008 Link to this post

    Hi,  Just incase anyone else runs into this problem I'll post it.  This drove me crazy today.  I'm not really sure if this is a charting problem or a tooltip problem.

    I have an aspx page with a UserControl I created of a RadChart.  I display two instances of this rad chart.  One whenever the page is viewed and another in a tooltip. The first is located at the top of the page and does not contain labels or any unessecary data.  It's just a pie chart and a legend.  A condensed version I guess you could call it.  Then once the user mouses over the Chart a tooltip pops up displaying the graph with all of the data and variables.  Please note the the ToolTip animation mode was set to Fade.

    Now the problem.  It worked fine when the page loads.  However if I go into edit mode in the grid and then click the save button (to come out of edit mode) I kept receiving a Stack Overflow error.  On the save button event I had to recreate the charts incase some of the data was changed in the grid.  The charts are directly related to the grid.

    I narrowed the problem down to the fact that I was using the "Fade" tooltip animation mode.  The Stack Overflow would only occur if I immediately went from viewing the tooltip to clicking the edit button on the grid.  If I came to may page and did not view the tooltip and then clicked the edit button I would not recieve the error.  Once I stopped using the "Fade" animation mode my page started to work correctly.  I am assuming it has something to do with the tooltip still being in memory somewhere.

    Anyways, I just wanted to point that out and hope it helps someone else who may find themselves in the same position.
  2. Tervel
    Tervel avatar
    1337 posts

    Posted 17 Apr 2008 Link to this post

    Hello Thomas,

    Is it possible that you send us a small sample demonstrating the problem?
    We are not sure what could be causing it, but it looks like you might be using AJAX for the grid operations. When an AJAX call starts, if the tooltip is located in a part of the page, which needs to be update using a partial page update, it needs to be closed, and disposed. Having an animation that slows the close functionality might have something to do with the error you got.

    So far the only error that has been reported to us in this scenario is the "two components with the same ID....".
    In the Prometheus Futures build released on March 25th with a version number 2008.1.325.20 this particular problem was addressed and the tooltip works fine even when its parent element / target control are participating in AJAX update.

    One thing you could try is download the just released official Q1 2008 RadControls for ASP.AJAX and see if the tooltip error goes away. In case it does not, sending us a sample that reproduces the problem will allow us to examine what is causing it and fix it ASAP.

    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Thomas Salt
    Thomas Salt avatar
    136 posts
    Member since:
    Apr 2005

    Posted 17 Apr 2008 Link to this post

    What you're saying makes sense and the more I thought about I realized it wasn't really a BUG.  I've put javascript in all my pages that use tooltips to close any active tooltip on an ajax request because I have run into this problem before.  It seems the Fade animation was not entirely disposing of the tooltip before the ajax call.  Anyways, I was just posting the info incase anyone else ran into the problem.

    Take Care.
Back to Top