Rank: Newbie Groups: Member
Joined: 7/4/2023 Posts: 1
|
Hi, Around 20K records added in ACM table with 10-12 columns as ACM content. we are getting out of memory exception while rendering that ACM contents.
PFB error log: Exception of type 'System.OutOfMemoryException' was thrown at EO.Internal.aj1.a(Char A_0, Boolean A_1) at EO.Pdf.Acm.AcmText.a(gt A_0, aj1 A_1, Single A_2, Char[] A_3, Int32 A_4, Int32 A_5, Single A_6) at EO.Pdf.Acm.AcmText.a(gt A_0) at EO.Pdf.Acm.AcmContent.r() at EO.Pdf.Acm.AcmContent.a(gt A_0) at EO.Pdf.Acm.AcmContent.r() at EO.Pdf.Acm.AcmTable.a(Int32 A_0, ba2 A_1, a56 A_2, a0h[] A_3, gt A_4) at EO.Pdf.Acm.AcmTable.a(gt A_0) at EO.Pdf.Acm.AcmContent.r() at EO.Pdf.Acm.AcmContent.a(gt A_0) at EO.Pdf.Acm.AcmContent.r() at EO.Pdf.Acm.AcmContent.a(gt A_0) at EO.Pdf.Acm.AcmContent.r() at EO.Pdf.Acm.AcmRender.a(AcmBlock A_0) at EO.Pdf.Acm.AcmRender.Render(AcmContent[] contents) at ....<...>d__33.MoveNext() in C:\TeamCity\buildAgent\work\....: --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at ......<....>d__32.MoveNext()....
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi, Can you try to isolate the problem into a small test project and send it to us? We will look into it and see where the bottleneck is. See here for more details: https://www.essentialobjects.com/forum/test_project.aspxIt is also possible that it would indeed use that much memory and it simply reached the limitation of the system. In that case you may wish to consider split the rendering into multiple chunks and then merge the result into a single PdfDocument. Thanks!
|