OutOfMemoryException while importing a large ppt file with MemoryStream

Dears,

I'm uploading a large ppt file (150MB) using the following code to work with this:

array = TryCast(e.UploadedFile.FileBytes, Byte())

Using pptStream As New System.IO.MemoryStream(array)

Dim pres As Aspose.Slides.Presentation = New Aspose.Slides.Presentation(pptStream)

..

...

My upload process is working pefectally, but when I create the Aspose.Slides.Presentation(pptStream) I receive the message :

Message: Exception of type 'System.OutOfMemoryException' was thrown.
Trace: at qh.a(Int32 A_0, em A_1, so A_2) at s.b(Stream A_0) at Aspose.Slides.Presentation.b(Stream A_0) at Aspose.Slides.Presentation..ctor(Stream stream) at ...TabEdita.aspx.vb:line 329

Is there any limit for the PPTs on Aspose?

Any idea how I can fix this? I have files bigger as 280MB to be processed.

Regards,

Ésio Nunes

Hi Esio,

Thanks for your interest in Aspose.Slides.

There should be enough swap file and it should not be limited by size so that large images and whole presentation structure can be accommodated. It would be great, if you provide the problematic large size PPT for investigation purpose.

Thanks and Best Regards

Muhammad,

Server with 3GB RAM and swap file with more 3GB. For a PPT with 260MB, how much page file do I need?

Regards,

Ésio

Hi Ésio,

Sorry for getting back to you late.

I have tested the scenario and I am able to reproduce OutOfMemoryException. The have logged this problem as 14163 in our Issue tracking system. Once the issue is resolve, we will let you know.

We are sorry for this inconvenience,

Dear Mudassir.

Any news about this issue? At least a prevision when are you planning to fix?

For my website I really need to use big files, so I'm waiting a schedule for this to solve if we can use Aspose.

Best regards,

Ésio

Hi Ésio,

We regret to inform you that our development team has looked in to the possibility of the solution to your issue, but unfortunately it’s possible because a whole big presentation with images loaded into memory. In memory the images have larger size than on disk, especially when different effects are also applied along with.

We are extremely sorry for this technical limitation.

Mudassir,

Is it a limit from ASP.NET or for Aspose component?
Do you know how much is the limit for the ppt size?
So, noway to send ppts larger than this limit, even in future versions of Aspose or IIS?

Regards,

Ésio

Hi Ésio,

The memory limit is related to Aspose.Slides. As a matter of fact, there is no defined formula for calculating the maximum presentation size, as it depends on many factors.

We are extremely sorry for your inconvenience and we will try for any possible workaround. We will definitely share the findings with you, if issue is resolved.

Thanks and Regards,

Hi Mudassir.

Well, it's a pity. We were really impressed with Slides.

Just one more question. Even using Slides with your Flash component the problem will persists, am I right? Because first I need to use Slides to slice the presentations, and just befere it I can use Flash to create the thumbnails.

Best regards,

Ésio Nunes

Hi Ésio,

We are extremely sorry for the inconvenience you may have been going through.

Our development team has tried to overcome the strict memory limitation issue by compiling Aspose.Slides for .NET for x64 bit. Please check the attached Aspose.Slides version and try to uses real 64 bit environment. You may try OutOfMemory exception problem on your end. Moereover, using Aspose.Flash in Asopse.Slides will not be an issue as loading of presentation doesn’t depend on Aspose.Flash.

Thanks and Regards,

Thank you very much! Working perfectly on a 64 bit server.

Best regards,

Ésio

Hi Mudassir,

We are getting System.OutOfMemoryExceptions from Aspose Slides, below are three examples. Do you think these are caused by the same issue discussed in this thread?


at Aspose.Slides.Pptx.ColorTransformEx..ctor()
at Aspose.Slides.Pptx.ColorFormatEx..ctor(s1 A_0)
at Aspose.Slides.Pptx.PatternFormatEx..ctor(s1 A_0)
at Aspose.Slides.Pptx.LineFillFormatEx..ctor(s1 A_0)
at Aspose.Slides.Pptx.LineFormatEx..ctor(s1 A_0)
at Aspose.Slides.Pptx.TextCharacterPropertiesEx..ctor()
at Aspose.Slides.Pptx.ParagraphPropertiesEx..ctor()
at Aspose.Slides.Pptx.TextStyleEx..ctor(s1 A_0)
at Aspose.Slides.Pptx.TextFrameEx..ctor(s1 A_0)
at Aspose.Slides.Pptx.TextFrameEx.a(s1 A_0, h6 A_1, String A_2, String A_3)
at Aspose.Slides.Pptx.AutoShapeEx..ctor(BaseSlideEx A_0, jn A_1)
at Aspose.Slides.Pptx.ShapesEx.a(BaseSlideEx A_0, h6 A_1)
at Aspose.Slides.Pptx.GroupShapeEx..ctor(BaseSlideEx A_0, ss A_1)
at Aspose.Slides.Pptx.BaseSlideEx..ctor(PresentationEx A_0, di A_1)
at Aspose.Slides.Pptx.PresentationEx.a(nb A_0)
at Aspose.Slides.Pptx.PresentationEx..ctor(String file)



at Aspose.Slides.Pptx.FillFormatEx..ctor(qn A_0)
at Aspose.Slides.Pptx.TextCharacterPropertiesEx..ctor()
at Aspose.Slides.Pptx.ParagraphPropertiesEx..ctor()
at Aspose.Slides.Pptx.TextStyleEx..ctor(qn A_0)
at Aspose.Slides.Pptx.TextFrameEx..ctor(qn A_0)
at Aspose.Slides.Pptx.TextFrameEx.a(qn A_0, ag A_1, String A_2, String A_3)
at Aspose.Slides.Pptx.AutoShapeEx..ctor(BaseSlideEx A_0, jx A_1)
at Aspose.Slides.Pptx.ShapesEx.a(BaseSlideEx A_0, ag A_1)
at Aspose.Slides.Pptx.GroupShapeEx..ctor(BaseSlideEx A_0, sk A_1)
at Aspose.Slides.Pptx.BaseSlideEx..ctor(PresentationEx A_0, ak A_1)
at Aspose.Slides.Pptx.PresentationEx.a(q6 A_0)
at Aspose.Slides.Pptx.PresentationEx..ctor(String file)



at Aspose.Slides.Pptx.ColorFormatEx..ctor(qn A_0)
at Aspose.Slides.Pptx.LineFillFormatEx..ctor(qn A_0)
at Aspose.Slides.Pptx.LineFormatEx..ctor(qn A_0)
at Aspose.Slides.Pptx.TextCharacterPropertiesEx..ctor()
at Aspose.Slides.Pptx.ParagraphPropertiesEx..ctor()
at Aspose.Slides.Pptx.TextStyleEx..ctor(qn A_0)
at Aspose.Slides.Pptx.TextFrameEx..ctor(qn A_0)
at Aspose.Slides.Pptx.TextFrameEx.a(qn A_0, ag A_1, String A_2, String A_3)
at Aspose.Slides.Pptx.AutoShapeEx..ctor(BaseSlideEx A_0, jx A_1)
at Aspose.Slides.Pptx.ShapesEx.a(BaseSlideEx A_0, ag A_1)
at Aspose.Slides.Pptx.GroupShapeEx..ctor(BaseSlideEx A_0, sk A_1)
at Aspose.Slides.Pptx.ShapesEx.a(BaseSlideEx A_0, ag A_1)
at Aspose.Slides.Pptx.GroupShapeEx..ctor(BaseSlideEx A_0, sk A_1)
at Aspose.Slides.Pptx.BaseSlideEx..ctor(PresentationEx A_0, ak A_1)
at Aspose.Slides.Pptx.PresentationEx.a(q6 A_0)
at Aspose.Slides.Pptx.PresentationEx..ctor(String file)

Hi Shane,

Please share your source presentation files for which you have mentioned exceptions, so that we can investigate the issue on our end.

We are sorry for your nuisance,