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

Memory Errors with Gannt Chart

3 Answers 38 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Jeffrey Gilliam
Top achievements
Rank 1
Jeffrey Gilliam asked on 20 Aug 2010, 08:26 PM

In our web-based ajaxed application is a page that we know is going to be a resource hog and very slow to render; it contains a large dynamically-generated HTML table, a Telerik Gantt chart and a Telerik bar chart. (Too much for one page, but it’s what our customer wants.) In the past week we have been getting one of two errors (see below) on this page when the size of a Gantt chart gets large, beyond several hundred lines. This has been rendering successfully, slowly but successfully, until this week.

We recently upgraded from Telerik version 2010.1.309.35 to 2010.2.715.35. So, our first attempted solution was to revert the application to the previous Telerik DLL, but seems to have had no effect. Our next attempted solution was to increase the memory on the IIS server. This too had no effect.  We are exploring other IIS settings for memory management, but want to run these errors by you folks to see if you can offer any insights.

 

Out of memory.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.OutOfMemoryException: Out of memory.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

 

[OutOfMemoryException: Out of memory.]

   System.Drawing.Graphics.CheckErrorStatus(Int32 status) +1048473

   System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Int32 width, Int32 height) +98

   System.Drawing.Bitmap..ctor(Image original, Int32 width, Int32 height) +155

   System.Drawing.Bitmap..ctor(Image original) +35

   Telerik.Web.UI.RadChart.RenderClassic(HtmlTextWriter writer) +346

   Telerik.Web.UI.RadChart.RenderContents(HtmlTextWriter writer) +208

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   Telerik.Web.UI.RadDataBoundControl.Render(HtmlTextWriter writer) +63

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10

   Telerik.Web.UI.RadWebControl.RenderContents(HtmlTextWriter writer) +4

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   Telerik.Web.UI.RadWebControl.Render(HtmlTextWriter writer) +63

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   Telerik.Web.UI.ControlRenderer.Render(HtmlTextWriter writer) +84

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.Control.Render(HtmlTextWriter writer) +10

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer) +234

   System.Web.UI.Control.Render(HtmlTextWriter writer) +10

   System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer) +34

   Telerik.Web.UI.OurUpdatePanel.Render(HtmlTextWriter writer) +99

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   Telerik.Web.UI.PreControlToAjaxify.Render(HtmlTextWriter writer) +112

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.Control.Render(HtmlTextWriter writer) +10

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +163

   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.Control.Render(HtmlTextWriter writer) +10

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.Page.Render(HtmlTextWriter writer) +29

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +594

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.Page.Render(HtmlTextWriter writer) +29

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266

 


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053



Parameter is not valid.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Parameter is not valid.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

 

[ArgumentException: Parameter is not valid.]

   System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format) +1047221

   System.Drawing.Bitmap..ctor(Image original, Int32 width, Int32 height) +54

   System.Drawing.Bitmap..ctor(Image original) +35

   Telerik.Web.UI.RadChart.RenderClassic(HtmlTextWriter writer) +346

   Telerik.Web.UI.RadChart.RenderContents(HtmlTextWriter writer) +208

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   Telerik.Web.UI.RadDataBoundControl.Render(HtmlTextWriter writer) +63

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.WebControls.WebControl.RenderContents(HtmlTextWriter writer) +10

   Telerik.Web.UI.RadWebControl.RenderContents(HtmlTextWriter writer) +4

   System.Web.UI.WebControls.WebControl.Render(HtmlTextWriter writer) +32

   Telerik.Web.UI.RadWebControl.Render(HtmlTextWriter writer) +63

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   Telerik.Web.UI.ControlRenderer.Render(HtmlTextWriter writer) +84

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.Control.Render(HtmlTextWriter writer) +10

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer) +234

   System.Web.UI.Control.Render(HtmlTextWriter writer) +10

   System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer) +34

   Telerik.Web.UI.OurUpdatePanel.Render(HtmlTextWriter writer) +99

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   Telerik.Web.UI.PreControlToAjaxify.Render(HtmlTextWriter writer) +112

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.Control.Render(HtmlTextWriter writer) +10

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +163

   System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32

   System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.Control.Render(HtmlTextWriter writer) +10

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.Page.Render(HtmlTextWriter writer) +29

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page) +594

   System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +256

   System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19

   System.Web.UI.Page.Render(HtmlTextWriter writer) +29

   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +99

   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266

 


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

3 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 25 Aug 2010, 12:45 PM
Hi Jeffrey Gilliam,

What is the render size of the chart image in pixels? Does changing it have any relation to the error or just the number of series items being drawn? Also, how many series are being rendered with the chart and how many items does each have?

Kind regards,
Vladimir Milev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Jeffrey Gilliam
Top achievements
Rank 1
answered on 25 Aug 2010, 04:04 PM
Vladimir,

Your are going to cringe, but the width of this chart is 2650 pixels! This is being driven by a customer requirement for a very detailed data display above this Gant chart. The height of the chart is dynamic, but gets large also with this particular data source: approx. 900 items with 7 series per item. I suspect we are hitting limits in all three categories. If I reduce any of these numbers the chart does render without errors, unfortunately the number of items and the series are being driven by data and the reqs to display that data. I am hoping to reduce the width but if I can't, I'm looking for other approaches.

Thanks,

Jeff
0
Vladimir Milev
Telerik team
answered on 26 Aug 2010, 09:24 AM
Hello Jeffrey Gilliam,

By default RadChart uses the Session to store the image which means this is the probable offender in the case. I suggest you give UseSession=false a try. Also, you may consider storing the session in a database (sql). I believe these are two good starting points to work from. I hope this helps.

Best wishes,
Vladimir Milev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Chart (Obsolete)
Asked by
Jeffrey Gilliam
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Jeffrey Gilliam
Top achievements
Rank 1
Share this question
or