'System.OutOfMemoryException' when opening image?

American Association of Variable Star Observers (AAVSO)
Sun, 10/11/2020 - 21:08

I'm getting this trying to open any image after they successfully upload.


Server Error in '/app' Application.

Exception of type 'System.OutOfMemoryException' was thrown.

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: Exception of type 'System.OutOfMemoryException' was thrown.

Source Error:

Line 495:
Line 496: Catch ex As Exception
Line 497: Throw ex
Line 498: End Try
Line 499:

Source File: C:\projects\VphotGit\Logic\BL\FITSWrapper.vb    Line: 497

Stack Trace:

[OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.]
BL.FITSWrapper.Open(String Filepath, Int32 imageID) in C:\projects\VphotGit\Logic\BL\FITSWrapper.vb:497
Restricted_Files5.AnalyseImage(String path, Int32 indexInList, Boolean startTS, String telname, Int32 imageID) +162
Restricted_Files5.gvFiles_RowCommand(Object sender, GridViewCommandEventArgs e) +340
System.Web.UI.WebControls.GridView.OnRowCommand(GridViewCommandEventArgs e) +111
System.Web.UI.WebControls.GridView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) +73
System.Web.UI.WebControls.GridView.RaisePostBackEvent(String eventArgument) +201
System.Web.UI.WebControls.GridView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +15
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +15
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +9760098
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1639


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.7.2623.0

American Association of Variable Star Observers (AAVSO)
I just had the same error

I just uploaded 3 images and I cannot open the image.  Same error message as above.  Any suggestions. 



American Association of Variable Star Observers (AAVSO)
Yup I'm getting the same

Yup I'm getting the same again today too... I uploaded an image I had processed in the past again to double check.  I'm pretty confident it's not me....

Frustrating! VPHOT is a very simple / fast workflow for me - but it needs to work consitently...

American Association of Variable Star Observers (AAVSO)
Out of Memory Issues

Hi James and Mike et al:

Have you read the recent lengthy forum thread labeled "Regular VPhot Users - Need Your Help!"? It discusses the "out of memory" issue, causes and possible fixes.

Have you deleted any of your VPhot images that have already been processed?

The administrators (2) do work to reduce the number of such memory problems but it is a frequent battle as use, number of images and size of images increases.

There are some clear, but not necessarily agreed upon, ways to resolve the problem. We are pursuing them but it is always helpful for users to assist by deleting their processed images from their own list.

Thanks for your help.


American Association of Variable Star Observers (AAVSO)
VPhot memory problems

Out of Memory problems relates to images too large to handle.

One way to help is to make sure they are not in floating point.

I'll investigate if we can increase the memory allocation on the server since I know with CMOS and DSLR images on their way we will be pushing the memory limit pretty hard.