Welcome Guest Search | Active Topics | Sign In | Register

Multiple errors withEO.Pdf-v23.3.31 Options
Harvinder Syan
Posted: Wednesday, March 13, 2024 8:47:32 PM
Rank: Newbie
Groups: Member

Joined: 3/13/2024
Posts: 5
Hi,

We are using EO.pdf for .net in our application to generate Pdf files, and we started getting some errors, our application is running on client server, currently it causing issue for 2 clients, for one of them our application always fail to generate Pdf now.



Client 1- EO.Pdf stopped working for them, every time application try to generate pdf it fails, and get following errors
---------------------------Error 1------------------------------------
nvoice Import Finished with error System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown. at EO.Internal.wgxm.rbif[a](mlmn`1 bti) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc) at TimberScan.Integration.Sage300.HtmlToPdfConvertService.CreateProcoreInvoice(String filePath, String tempDirectory, String html, String language) in C:\Teamcity\BuildAgent\work\3bc6416f876df853\TimberScan.Go\TimberScan.Integration.Sage300\HtmlToPdfConvertService.cs:line 47 at TimberScan.Integration.Sage300.ProCore.TimberScanProCoreInvoiceImporter.Import(ProCoreInvoiceDto invoiceDto, Int64 companyId, Int64 projectId) in C:\Teamcity\BuildAgent\work\3bc6416f876df853\TimberScan.Go\TimberScan.Integration.Sage300\ProCore\TimberScanProCoreInvoiceImporter.cs:line 424 at TimberScan.ProCore.HangFireTasks.InvoiceImportTask.Execute(Int64 resourceId, Int64 companyId, Int64 projectId) in C:\Teamcity\BuildAgent\work\3bc6416f876df853\TimberScan.Go\TimberScan.ProCore\HangFireTasks\InvoiceImportTask.cs:line 160

----------------------------------------------Error 2--------------------------------------------------------------------
Invoice Import Finished with error Child process exited unexpectedly. at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at EO.Internal.mlrg.xtse..ctor(xtsd nnt, String nnu) at EO.Internal.mlrg.egsk(mlnf nne) at EO.Internal.mlrg.egry(Boolean& nmc, Type[] nmd, String nme, String nmf) at EO.Internal.mlrg.cfip(Type[] nlz, String nma, String nmb) at EO.Internal.mlrh.cfip(String nrs, String nrt) at EO.Internal.yhlg.svrl() at EO.Internal.yhlg.etao.ptcu() at EO.Internal.mlmv.wdvl(Action luk) at EO.Internal.yhlg.tvaj(WindowsIdentity ha) at EO.WebEngine.Engine.Start(WindowsIdentity user) at EO.WebEngine.Engine.Start() at EO.Internal.wgxk.jjll() at EO.Internal.wgxl.jjll(wgxk& bta) at EO.Internal.wgxm.jjll(yhlb bte, wgxk& btf) at EO.Internal.wgxp.acpl() at EO.Internal.wgxp..ctor(yhlb btj, HtmlToPdfOptions btk) at EO.Pdf.HtmlToPdfSession.nqqr(HtmlToPdfOptions aau) at EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions aar, HtmlToPdfSession aas, ResourceHandler aat) at EO.Pdf.HtmlToPdfSession.Create(HtmlToPdfOptions options, ResourceHandler resourceHandler) at EO.Pdf.HtmlToPdf.kmft.qmtt() at EO.Internal.wgxm.rbif[a](mlmn`1 bti) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc) at TimberScan.Integration.Sage300.HtmlToPdfConvertService.CreateProcoreInvoice(String filePath, String tempDirectory, String html, String language) in C:\Teamcity\BuildAgent\work\3bc6416f876df853\TimberScan.Go\TimberScan.Integration.Sage300\HtmlToPdfConvertService.cs:line 48 at TimberScan.Integration.Sage300.ProCore.TimberScanProCoreInvoiceImporter.Import(ProCoreInvoiceDto invoiceDto, Int64 companyId, Int64 projectId) in C:\Teamcity\BuildAgent\work\3bc6416f876df853\TimberScan.Go\TimberScan.Integration.Sage300\ProCore\TimberScanProCoreInvoiceImporter.cs:line 429 at TimberScan.ProCore.HangFireTasks.InvoiceImportTask.Execute(Int64 resourceId, Int64 companyId, Int64 projectId) in C:\Teamcity\BuildAgent\work\3bc6416f876df853\TimberScan.Go\TimberScan.ProCore\HangFireTasks\InvoiceImportTask.cs:line 161 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Hangfire.Server.CoreBackgroundJobPerformer.InvokeSynchronously(Object state) at Hangfire.Server.CoreBackgroundJobPerformer.InvokeMethod(PerformContext context, Object instance, Object[] arguments) at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context) at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass9_0.<PerformJobWithFilters>b__0() at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass9_1.<PerformJobWithFilters>b__2() at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass9_1.<PerformJobWithFilters>b__2() at Hangfire.Server.BackgroundJobPerformer.PerformJobWithFilters(PerformContext context, IEnumerable`1 filters) at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context) at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId) at Hangfire.Server.Worker.Execute(BackgroundProcessContext context) at Hangfire.Server.BackgroundProcessDispatcherBuilder.ExecuteProcess(Guid executionId, Object state) at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state) at Hangfire.Processing.BackgroundDispatcher.DispatchLoop() 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()


----------------------------------Error 3-------------------------------
System.Exception: MapViewOfFile failed, Win32 Error: 8
at EO.Internal.mlri.htdm(String& nrv, Int32& nrw)
at EO.Internal.mlrg.xtsk.kjjz(yxfg nre, mlri nrf)
at EO.Internal.mlrg.xtsk.kjjo(Type[] nqt, mlri[]& nqu)
at EO.Internal.mlrg.egry(Boolean& nmc, Type[] nmd, String nme, String nmf)
at EO.Internal.mlrg.cfip(Type[] nlz, String nma, String nmb)
at EO.Internal.mlrh.cfip(String nrs, String nrt)
at EO.Internal.yhlg.svrl()
at EO.Internal.yhlg.etao.ptcu()
at EO.Internal.mlmv.wdvl(Action luk)
at EO.Internal.yhlg.tvaj(WindowsIdentity ha)
at EO.WebEngine.Engine.Start(WindowsIdentity user)
at EO.WebEngine.Engine.Start()
at EO.Internal.wgxk.jjll()
at EO.Internal.wgxl.jjll(wgxk& bta)
at EO.Internal.wgxm.jjll(yhlb bte, wgxk& btf)
at EO.Internal.wgxp.acpl()
at EO.Internal.wgxp..ctor(yhlb btj, HtmlToPdfOptions btk)
at EO.Pdf.HtmlToPdfSession.nqqr(HtmlToPdfOptions aau)
at EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions aar, HtmlToPdfSession aas, ResourceHandler aat)
at EO.Pdf.HtmlToPdfSession.Create(HtmlToPdfOptions options, ResourceHandler resourceHandler)
at EO.Pdf.HtmlToPdf.kmft.qmtt()
at EO.Internal.wgxm.rbif[a](mlmn`1 bti)
at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options)
at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc)
at TimberScan.Integration.Sage300.HtmlToPdfConvertService.CreateProcoreInvoice(String filePath, String tempDirectory, String html, String language) in C:\Teamcity\BuildAgent\work\3bc6416f876df853\TimberScan.Go\TimberScan.Integration.Sage300\HtmlToPdfConvertService.cs:line 47
at TimberScan.Integration.Sage300.ProCore.TimberScanProCoreInvoiceImporter.Import(ProCoreInvoiceDto invoiceDto, Int64 companyId, Int64 projectId) in C:\Teamcity\BuildAgent\work\3bc6416f876df853\TimberScan.Go\TimberScan.Integration.Sage300\ProCore\TimberScanProCoreInvoiceImporter.cs:line 424
at TimberScan.ProCore.HangFireTasks.InvoiceImportTask.Execute(Int64 resourceId, Int64 companyId, Int64 projectId) in C:\Teamcity\BuildAgent\work\3bc6416f876df853\TimberScan.Go\TimberScan.ProCore\HangFireTasks\InvoiceImportTask.cs:line 224




=============================================================================================================


Client2 - He periodically getting these errors -


Invoice Import Finished with error Child process exited unexpectedly. at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at EO.Internal.mlrg.xtse..ctor(xtsd nnt, String nnu) at EO.Internal.mlrg.egsk(mlnf nne) at EO.Internal.mlrg.egry(Boolean& nmc, Type[] nmd, String nme, String nmf) at EO.Internal.mlrg.cfip(Type[] nlz, String nma, String nmb) at EO.Internal.mlrh.cfip(String nrs, String nrt) at EO.Internal.yhlg.svrl() at EO.Internal.yhlg.etao.ptcu() at EO.Internal.mlmv.wdvl(Action luk) at EO.Internal.yhlg.tvaj(WindowsIdentity ha) at EO.WebEngine.Engine.Start(WindowsIdentity user) at EO.WebEngine.Engine.Start() at EO.Internal.wgxk.jjll() at EO.Internal.wgxl.jjll(wgxk& bta) at EO.Internal.wgxm.jjll(yhlb bte, wgxk& btf) at EO.Internal.wgxp.acpl() at EO.Internal.wgxp..ctor(yhlb btj, HtmlToPdfOptions btk) at EO.Pdf.HtmlToPdfSession.nqqr(HtmlToPdfOptions aau) at EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions aar, HtmlToPdfSession aas, ResourceHandler aat) at EO.Pdf.HtmlToPdfSession.Create(HtmlToPdfOptions options, ResourceHandler resourceHandler) at EO.Pdf.HtmlToPdf.kmft.qmtt() at EO.Internal.wgxm.rbif[a](mlmn`1 bti) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc) at TimberScan.Integration.Sage300.HtmlToPdfConvertService.CreateProcoreInvoice(String filePath, String tempDirectory, String html, String language) in C:\Teamcity\BuildAgent\work\3bc6416f876df853\TimberScan.Go\TimberScan.Integration.Sage300\HtmlToPdfConvertService.cs:line 48 at TimberScan.Integration.Sage300.ProCore.TimberScanProCoreInvoiceImporter.Import(ProCoreInvoiceDto invoiceDto, Int64 companyId, Int64 projectId) in C:\Teamcity\BuildAgent\work\3bc6416f876df853\TimberScan.Go\TimberScan.Integration.Sage300\ProCore\TimberScanProCoreInvoiceImporter.cs:line 429 at TimberScan.ProCore.HangFireTasks.InvoiceImportTask.Execute(Int64 resourceId, Int64 companyId, Int64 projectId) in C:\Teamcity\BuildAgent\work\3bc6416f876df853\TimberScan.Go\TimberScan.ProCore\HangFireTasks\InvoiceImportTask.cs:line 161 at TimberScan.Go.Controllers.Admin.ProCoreManagementController.RetryInvoiceImport(Int64 requisitionId, Int64 companyId, Int64 projectId) at lambda_method(Closure , Object , Object[] ) at Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object target, Object[] parameters) at Microsoft.AspNetCore.Mvc.Internal.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeActionMethodAsync>d__12.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeActionMethodAsync() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__10.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeNextActionFilterAsync>d__10.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeNextActionFilterAsync() at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.<InvokeInnerFilterAsync>d__13.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.InvokeInnerFilterAsync() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeNextResourceFilter>d__23.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeNextResourceFilter() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeFilterPipelineAsync>d__18.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeFilterPipelineAsync() at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.<InvokeAsync>d__16.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.InvokeAsync() at Microsoft.AspNetCore.Mvc.Internal.MvcAttributeRouteHandler.<>c__DisplayClass12_0.<RouteAsync>b__0(HttpContext c) at Microsoft.AspNetCore.Builder.RouterMiddleware.<Invoke>d__4.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Builder.RouterMiddleware.<Invoke>d__4.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.WebSockets.WebSocketMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.<Invoke>d__6.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.<Invoke>d__3.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.<Invoke>d__7.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.<Invoke>d__7.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.<Invoke>d__7.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware.Invoke(HttpContext context) at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.<Invoke>d__5.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.<Invoke>d__4.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider) at lambda_method(Closure , Object , HttpContext , IServiceProvider ) at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass4_1.<UseMiddleware>b__2(HttpContext context) at Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.HttpsPolicy.HstsMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>d__6.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.<Invoke>d__3.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware.<Invoke>d__13.MoveNext() at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.Start[TStateMachine](TStateMachine& stateMachine) at Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.HttpOverrides.ForwardedHeadersMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.HostFiltering.HostFilteringMiddleware.Invoke(HttpContext context) at Microsoft.AspNetCore.Hosting.Internal.RequestServicesContainerMiddleware.Invoke(HttpContext httpContext) at Microsoft.AspNetCore.Hosting.Internal.HostingApplication.ProcessRequestAsync(Context context) at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.<ProcessRequests>d__188`1.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.InvokeMoveNext(Object stateMachine) 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.Runtime.CompilerServices.AsyncMethodBuilderCore.MoveNextRunner.Run() at System.Runtime.CompilerServices.ValueTaskAwaiter.<>c.<.cctor>b__9_0(Object state) at System.IO.Pipelines.ThreadPoolScheduler.<>c.<Schedule>b__0_0(Object s) at System.Threading.QueueUserWorkItemCallback.WaitCallback_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.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()


Thanks,
Harvinder Syan
eo_support
Posted: Thursday, March 14, 2024 10:27:27 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,133
Hi,

Error 1 and Error 3 are out of memory errors. Error 2 and Error 4 are browser engine crashes that most likely result in from out of memory errors.

Please check the input HTML string you passed to ConvertHtml call. If the HTML string is indeed very large, then you will need reduce the HTML size because it is simply too large for the browser engine to process. If the HTML string is reasonable size, then you can save it into a file and send it to us. We will then see if we can reproduce the problem here. See here for more information on how to send test files to us:

https://www.essentialobjects.com/forum/test_project.aspx

Thanks!
Harvinder Syan
Posted: Thursday, March 14, 2024 11:40:59 AM
Rank: Newbie
Groups: Member

Joined: 3/13/2024
Posts: 5
I'll investigate and let you know.
Harvinder Syan
Posted: Tuesday, March 19, 2024 2:42:36 PM
Rank: Newbie
Groups: Member

Joined: 3/13/2024
Posts: 5
Hi, for one of these client we found issue may be causing by Anti virus, I am trying to follow https://www.essentialobjects.com/doc/common/eowp.html article, but this doesn't work "Distribute eowp.exe (found in the installation folder) along with your application. You should place this file in the same directory as EO.Base.dll," I copied pasted the eowp.exe in our application installation folder and removed from c:\windows\temp but I found EO.pdf always create eowp.exe in c:\windows\temp folder, seems like it doesn't pickup from installation folder. Do I have to do anything special ?
eo_support
Posted: Tuesday, March 19, 2024 3:13:47 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,133
Hi,

The most common reason why eowp.exe doesn't get picked up is because the file is not the same version as the DLLs. You can always use this method to force create eowp.exe in any folder you wish:

https://www.essentialobjects.com/doc/eo.base.runtime.initworkerprocessexecutable.html

When you use this method, if the existing eowp.exe file is not the same version, it will be automatically overwritten.

Thanks!

Harvinder Syan
Posted: Tuesday, April 30, 2024 7:19:40 PM
Rank: Newbie
Groups: Member

Joined: 3/13/2024
Posts: 5
Hi, I met with same client again today, they had this issue again, This is our findings -

1. Once issue starts happening, EO.pdf stop generating Pdfs, no matter if html is small or large.
2. I recycled the ApplicationPool then EO.Pdf started working.
3. I confirmed with them anti virus already had exclusion added and they verified, there was no log in antivirus which says that it found any issue.


All Documents were out with following error.


Invoice Import Finished with error Child process exited unexpectedly. at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at EO.Internal.mlrg.xtse..ctor(xtsd nnt, String nnu) at EO.Internal.mlrg.egsk(mlnf nne) at EO.Internal.mlrg.egry(Boolean& nmc, Type[] nmd, String nme, String nmf) at EO.Internal.mlrg.cfip(Type[] nlz, String nma, String nmb) at EO.Internal.mlrh.cfip(String nrs, String nrt) at EO.Internal.yhlg.svrl() at EO.Internal.yhlg.etao.ptcu() at EO.Internal.mlmv.wdvl(Action luk) at EO.Internal.yhlg.tvaj(WindowsIdentity ha) at EO.WebEngine.Engine.Start(WindowsIdentity user) at EO.WebEngine.Engine.Start() at EO.Internal.wgxk.jjll() at EO.Internal.wgxl.jjll(wgxk& bta) at EO.Internal.wgxm.jjll(yhlb bte, wgxk& btf) at EO.Internal.wgxp.acpl() at EO.Internal.wgxp..ctor(yhlb btj, HtmlToPdfOptions btk) at EO.Pdf.HtmlToPdfSession.nqqr(HtmlToPdfOptions aau) at EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions aar, HtmlToPdfSession aas, ResourceHandler aat) at EO.Pdf.HtmlToPdfSession.Create(HtmlToPdfOptions options, ResourceHandler resourceHandler) at EO.Pdf.HtmlToPdf.kmft.qmtt() at EO.Internal.wgxm.rbif[a](mlmn`1 bti) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc) at TimberScan.Integration.Sage300.HtmlToPdfConvertService.CreateProcoreInvoice(String filePath, String tempDirectory, String html, String language) in C:\Teamcity\BuildAgent\work\3bc6416f876df853\TimberScan.Go\TimberScan.Integration.Sage300\HtmlToPdfConvertService.cs:line 48 at TimberScan.Integration.Sage300.ProCore.TimberScanProCoreInvoiceImporter.Import(ProCoreInvoiceDto invoiceDto, Int64 companyId, Int64 projectId) in C:\Teamcity\BuildAgent\work\3bc6416f876df853\TimberScan.Go\TimberScan.Integration.Sage300\ProCore\TimberScanProCoreInvoiceImporter.cs:line 429 at TimberScan.ProCore.HangFireTasks.InvoiceImportTask.Execute(Int64 resourceId, Int64 companyId, Int64 projectId) in C:\Teamcity\BuildAgent\work\3bc6416f876df853\TimberScan.Go\TimberScan.ProCore\HangFireTasks\InvoiceImportTask.cs:line 161 at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Hangfire.Server.CoreBackgroundJobPerformer.InvokeSynchronously(Object state) at Hangfire.Server.CoreBackgroundJobPerformer.InvokeMethod(PerformContext context, Object instance, Object[] arguments) at Hangfire.Server.CoreBackgroundJobPerformer.Perform(PerformContext context) at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass9_0.<PerformJobWithFilters>b__0() at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass9_1.<PerformJobWithFilters>b__2() at Hangfire.Server.BackgroundJobPerformer.InvokePerformFilter(IServerFilter filter, PerformingContext preContext, Func`1 continuation) at Hangfire.Server.BackgroundJobPerformer.<>c__DisplayClass9_1.<PerformJobWithFilters>b__2() at Hangfire.Server.BackgroundJobPerformer.PerformJobWithFilters(PerformContext context, IEnumerable`1 filters) at Hangfire.Server.BackgroundJobPerformer.Perform(PerformContext context) at Hangfire.Server.Worker.PerformJob(BackgroundProcessContext context, IStorageConnection connection, String jobId) at Hangfire.Server.Worker.Execute(BackgroundProcessContext context) at Hangfire.Server.BackgroundProcessDispatcherBuilder.ExecuteProcess(Guid executionId, Object state) at Hangfire.Processing.BackgroundExecution.Run(Action`2 callback, Object state) at Hangfire.Processing.BackgroundDispatcher.DispatchLoop() 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()

eo_support
Posted: Wednesday, May 1, 2024 12:50:15 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,133
Hi,

Please update to the current version and then use the following code to collect runtime logs:

Code: C#
try
{
     //Wrap the ConvertHtml in a try catch block
     EO.Pdf.HtmlToPdf.ConvertHtml(....);
}
catch
{
    string log = EO.Base.Runtime.GetLogs();

    .....save log into a file.....

    //Rethrow the exception so that you will notice that the conversion has failed
    throw;
}


When it happens again please send us the log file. Make sure:

1. Update to the latest build first. It contains additional log entries that may help us to identify the root of the problem;
2. You can either use contact us page or email us directly with the log file. If you email, please zip the log file to avoid the email program incorrectly scramble the text in the log file;

Once we have the log files we will see what we can find.

Thanks!
Harvinder Syan
Posted: Wednesday, May 1, 2024 12:57:19 PM
Rank: Newbie
Groups: Member

Joined: 3/13/2024
Posts: 5
Sure, Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.