ASPX templates
Version 5.x > ASPX templates > "Out of Memory" Error Message View modes: 
User avatar
Member
Member
seanbun - 12/20/2010 11:39:34 PM
   
"Out of Memory" Error Message
I found below error message in the Error log. it happened on the getattachment/[GUID]/[NodeAlias]?width=100px&100px. I believe it would be redirected to the getfile page to do the resize. I believe the error thrown because of the file size may be too big.

1. I wonder what is the file size restriction?
2. Could I change the limit?
3. How should I handle big image?
4. Any article would explain this in details?

Cheers,
Matt

Message: Out of memory.
Stack Trace:
at System.Drawing.Graphics.FromImage(Image image)
at CMS.GlobalHelper.ImageHelper.ResizeImage(Int32 width, Int32 height)
at CMS.GlobalHelper.ImageHelper.GetResizedImage(Int32 width, Int32 height)
at CMS.GlobalHelper.ImageHelper.GetResizedImageData(Int32 width, Int32 height, Int32 quality)
at CMS.FileManager.AttachmentManager.GetImageThumbnail(AttachmentInfo atInfo, String siteName, Int32 width, Int32 height, Int32 maxSideSize, Boolean searchThumbnailFile)
at CMS.FileManager.AttachmentManager.EnsureThumbnailFile(AttachmentInfo atInfo, String siteName, Int32 width, Int32 height, Int32 maxSideSize)
at CMSPages_GetFile.EnsurePhysicalFile(CMSOutputFile file) in d:\www\coates\Coates.CMS\CMSPages\GetFile.aspx.cs:line 1217
at CMSPages_GetFile.ProcessFile(Guid attachmentGuid) in d:\www\coates\Coates.CMS\CMSPages\GetFile.aspx.cs:line 782
at CMSPages_GetFile.ProcessAttachment() in d:\www\coates\Coates.CMS\CMSPages\GetFile.aspx.cs:line 540
at CMSPages_GetFile.Page_Load(Object sender, EventArgs e) in d:\www\coates\Coates.CMS\CMSPages\GetFile.aspx.cs:line 257
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at CMS.UIControls.GetFilePage.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 12/21/2010 2:43:50 PM
   
RE:"Out of Memory" Error Message
Hello,

There has been a bug in Kentico, which could cause such an error. Since I am not sure, what version and hotfix you are using, could you please try to apply the latest hotfix for your version to see if it helps?

Best regards,
Boris Pocatko

User avatar
Member
Member
seanbun - 12/21/2010 4:11:25 PM
   
RE:"Out of Memory" Error Message
I am using version 5..0.19 with the latest hotfix. Is the fix on 5.5?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 12/21/2010 4:17:08 PM
   
RE:"Out of Memory" Error Message
Hello,

Regrettably the bug isn't fixed until the hotfix number 4 in the 5.5 version of Kentico.

Best regards,
Boris Pocatko