System out of memory converting pdf to html using aspose.pdf 17.8 for .net


#1

Hi Support,
im getting the following exception

_System.OutOfMemoryException was unhandled_

_ HResult=-2147024882_
_ Message=Exception of type ‘System.OutOfMemoryException’ was thrown._
_ Source=Aspose.Pdf_
_ StackTrace:_
_ at ​. ()_
_ at ​. ()_
_ at ​. ( ​ , Boolean , Boolean )_
_ at ​. ( ​ , Boolean )_
_ at ​…ctor(ApsCompositeNode , ​ , List1 , List1 , Boolean )_
_ at . ( , Single , Single , ​ , Boolean , )_
_ at . ( , Single , Single , )_
_ at . ( , SizeF )_
_ at . (List1 , , ​ )_ _ at . (String , , IList1 , , ​ )_
_ at . ( , String , Stream , Boolean , HtmlSaveOptions )_
_ at . (Document , String , Stream , HtmlSaveOptions )_
_ at Aspose.Pdf.Document.Save(String outputFileName, SaveOptions options)_
_ at PDFtoHTML.Form1.Save(String fullPathToDocument, String FilenamewithoutExtension, String filenamewithextension) in d:\Rajesh Projects\PDFtoHTML 9.7.0\PDFtoHTML\Form1.cs:line 47_
_ at PDFtoHTML.Form1.btnconvert_Click_1(Object sender, EventArgs e) in d:\Rajesh Projects\PDFtoHTML 9.7.0\PDFtoHTML\Form1.cs:line 83_
_ at System.Windows.Forms.Control.OnClick(EventArgs e)_
_ at System.Windows.Forms.Button.OnClick(EventArgs e)_
_ at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)_
_ at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)_
_ at System.Windows.Forms.Control.WndProc(Message& m)_
_ at System.Windows.Forms.ButtonBase.WndProc(Message& m)_
_ at System.Windows.Forms.Button.WndProc(Message& m)_
_ at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)_
_ at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)_
_ at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)_
_ at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)_
_ at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)_
_ at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)_
_ at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)_
_ at System.Windows.Forms.Application.Run(Form mainForm)_
_ at PDFtoHTML.Program.Main() in d:\Rajesh Projects\PDFtoHTML 9.7.0\PDFtoHTML\Program.cs:line 19_
_ at System.AppDomain.nExecuteAssembly(RuntimeAssembly assembly, String[] args)
_ at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)_
_ at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()_
_ at System.Threading.ThreadHelper.ThreadStart_Context(Object state)_
_ at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)_
_ at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)_
_ at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)_
_ at System.Threading.ThreadHelper.ThreadStart()_
_ InnerException:_

RAM is 8GB , processor is i7
build has been given for
platform target : AnyCPU
prefer 32- bit is also unchecked

i have uploaded the
Uploaded the sample pdf and code


#2

@rajesh.sanam

Thanks for contacting support.

I have tested the scenario in our environment and observed that code never stopped executing and system got unresponsive after spending half an hour of execution. Hence I have logged a performance issue as PDFNET-43220 in our issue tracking system. We will further investigate it and keep you updated with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.


#4

Any Update on this since I am getting “out of memory” exception when I convert pdf to html


#5

@ajimr11

The ticket PDFNET-43220 is currently unresolved. However, for your problem, we have replied you in the other thread created by you. We will keep you posted once any update will be available.


#6

If I ask you any extra feature or fine tuning you may say about paid support but in this case your tool is not even doing basic conversion and it throw out of memory exception then I would prefer you have to jump into such issues rather than talk about free vs paid support.


#7

@ajimr11

We definitely value your concerns and have accepted the problem to be occurring with latest version of the API. However, there are many tickets logged already and we consider each of those to be equally important thus scheduling with first come first serve approach. Whereas, in case some ticket is a blocker then we recommend Paid Support because exclusive attention and efforts are dedicated for such scenarios. We hope this helps elaborating our position towards issue resolution. We are really thankful to you for your patience.