|
Rank: Member Groups: Member
Joined: 8/19/2020 Posts: 13
|
Hello EO PDF support team,
I'm currently having issue when we generating pdf. We have tried multiple ways but could't resolve this issue. Can you please help in this scenario what will resolve this issue. EO.Pdf.HtmlToPdfException: Conversion failed. Child process not ready. nWaitResult = 258 ---> System.Exception: Child process not ready. nWaitResult = 258 at EO.Internal.jm.a(String A_0, Boolean A_1) at EO.Internal.jm.a(IntPtr A_0) at EO.Internal.jm.g.a(IntPtr A_0) at EO.Internal.jm.g.b() at EO.Internal.jm.g.d() at EO.Internal.jm.j() at EO.Internal.jm.a(String[] A_0, String A_1, String A_2, String A_3, String A_4) at EO.Internal.g2.a(String A_0, String A_1) at EO.Internal.aix.e() at EO.Internal.aix..ctor() at EO.Internal.aix.a(aix A_0, List`1 A_1) at EO.Internal.aix.a(abb A_0, Boolean A_1, a4m A_2) at EO.Internal.aix.a(abb A_0, a4m A_1) --- End of inner exception stack trace --- at EO.Internal.aix.a(abb A_0, a4m A_1) at EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions A_0) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, Stream stream, HtmlToPdfOptions options) On another machine we are having different issue related to web view
EO.Pdf.HtmlToPdfException: Conversion failed. This WebView either has already been destroyed or is being destroyed. EO.lnternal.aazi: This WebView either has already been destroyed or is being destroyed. System.Exception: This WebView either has already been destroyed or is being destroyed. End of inner exception stack trace at EO.Web8rowser.WebView.dvcv(Exception ld, Boolean le) at EO.WebBrowser.WebView.duzd() at EO.Web8rowser.WebView.dvdd(WaitableTask In, Boolean 10) at EO.Web8rowser.WaitableTask.hxoi(WebView aaj, Boolean aak) at EO.Web8rowser.WebView.dvak(swcc go, Action-I gp, Boolean gq, Boolean gr, String gs) at EO.Web8rowser.WebView.EvalScript(String code, String frameName, Boolean throwOnError) at EO.Web8rowser.WebView.EvalScript(String code, Boolean throwOnError) at EO.lnternal.srem.scxu(sqzc btk, String btl, String btm, String btn, Int32 bto, Int32 btp, String btq, Boolean btr) at EO.lnternal.srem.eedt(sqzc btc, String btd, String bte, String btf, Int32 btg, Int32 bth, String bti, Boolean btj) at EO.Pdf.HtmlToPdfSession.eedt(sqzc yr, String ys, String yt, Int32 yu, Int32 yv, String yw, Boolean yx) at EO.Pdf.HtmlToPdfSession.eedt(sqzc yy, String yz, String za, Boolean zb) at EO.Pdf.HtmlToPdfSession.LoadHtml(String html) at EO.Pdf. HtmlToPdf.pvwp.xduv() at bsj) End of inner exception stack trace at bsj) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc) at Medgate.NMedgate. Web. Controllers.BaseRichTextEditorController'3.RenderPDFContent(Letter record, ResourceRecordService resRecService, Language language, PdfDocument pdfDocument) at Medgate.NMedgate. Web.Controllers.BaseRichTextEditorControlleff3.CreatePDFLetterOutput(Letter record, Boolean isEmployee, Boolean forBulkReports) at Medgate.NM
Can you please help us in resolving this issues that would be much appreciated.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
What version are you using?
Thanks!
|
|
Rank: Member Groups: Member
Joined: 8/19/2020 Posts: 13
|
We are using EO.Total 2015 runtime version v2.0.50727 version 15.2.88.0
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
That is a rather old version that we no longer support. So please try the latest version and see if it resolves the issue for you. We have resolved numerous issues during the years. So your issues might have already been addressed in the current build.
If you continue to have problems with the current build, please post an updated stack trace and we will look further.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 8/19/2020 Posts: 13
|
For the second error, its the new version. We are trying. Thanks for quick reply.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
And still what's the version number?
|
|
Rank: Member Groups: Member
Joined: 8/19/2020 Posts: 13
|
Description : EO.Total 2020 Runtime Version - v2.0.50727
Version - 20.1.45.0
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
Please make sure you are on the latest build 20.2.34.0. Make sure you double check the DLL version number. The stack trace you posted does not seem to match version 20.1.45.0 either.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 8/19/2020 Posts: 13
|
I downloaded EO.Total.2020.2.19.0.msi file when I started upgrading. And then use EO.Web, EO.Pdf, EO.Wpf and EO.WebBrowser from that. Do I need to upgrade again?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Yes. It's always a good idea to use the latest build while actively troubleshooting an issue because if we need to make any changes in code to fix the issue, the fix would be based on the latest build.
|
|
Rank: Member Groups: Member
Joined: 8/19/2020 Posts: 13
|
Hello, I just want inform that We are getting error in AWS server , on local machine it is working fine. Have your team used AWS to test it. Before using latest build again I just want inform you regarding this. On AWS we are getting below error.
EO.Pdf.HtmlToPdfException: Conversion failed. This WebView either has already been destroyed or is being destroyed. EO.lnternal.aazi: This WebView either has already been destroyed or is being destroyed. System.Exception: This WebView either has already been destroyed or is being destroyed. End of inner exception stack trace at EO.Web8rowser.WebView.dvcv(Exception ld, Boolean le) at EO.WebBrowser.WebView.duzd() at EO.Web8rowser.WebView.dvdd(WaitableTask In, Boolean 10) at EO.Web8rowser.WaitableTask.hxoi(WebView aaj, Boolean aak) at EO.Web8rowser.WebView.dvak(swcc go, Action-I gp, Boolean gq, Boolean gr, String gs) at EO.Web8rowser.WebView.EvalScript(String code, String frameName, Boolean throwOnError) at EO.Web8rowser.WebView.EvalScript(String code, Boolean throwOnError) at EO.lnternal.srem.scxu(sqzc btk, String btl, String btm, String btn, Int32 bto, Int32 btp, String btq, Boolean btr) at EO.lnternal.srem.eedt(sqzc btc, String btd, String bte, String btf, Int32 btg, Int32 bth, String bti, Boolean btj) at EO.Pdf.HtmlToPdfSession.eedt(sqzc yr, String ys, String yt, Int32 yu, Int32 yv, String yw, Boolean yx) at EO.Pdf.HtmlToPdfSession.eedt(sqzc yy, String yz, String za, Boolean zb) at EO.Pdf.HtmlToPdfSession.LoadHtml(String html) at EO.Pdf. HtmlToPdf.pvwp.xduv() at bsj) End of inner exception stack trace at bsj) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc) at Medgate.NMedgate. Web. Controllers.BaseRichTextEditorController'3.RenderPDFContent(Letter record, ResourceRecordService resRecService, Language language, PdfDocument pdfDocument) at Medgate.NMedgate. Web.Controllers.BaseRichTextEditorControlleff3.CreatePDFLetterOutput(Letter record, Boolean isEmployee, Boolean forBulkReports) at Medgate.NM
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Yes. Our own servers runs on AWS.
In the future when you post stack trace, please:
1. Make sure you are on the latest build; 2. Do not repost the same stack trace;
You can't just ignore what we tell you and keep posting the same message and expect to get a different answer.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 8/19/2020 Posts: 13
|
Hello Support,
I have updated dlls with latest and now having issue as below. Also I've added
Message: Child process exited unexpectedly. Stack trace: at EO.Internal.dnzq.rejv(Exception mdk, Boolean mdl) at EO.Internal.dnzq.reju(dnvs mdh) at EO.Internal.dnzq.rejf(Boolean& mce, dnzt[] mcf, String mcg, String mch) at EO.Internal.dnzq.xeua(dnzt[] mcb, String mcc, String mcd) at EO.Internal.dnzr.xeua(String mgz, String mha) at EO.Internal.vhsa.cxgt() at EO.Internal.vhsa.bdst.dyde() at EO.Internal.dnvk.iise(Action klo) at EO.Internal.vhsa.dcgk(WindowsIdentity fz) at EO.WebEngine.Engine.Start(WindowsIdentity user) at EO.WebEngine.Engine.Start() at EO.Internal.ioar.ienc() at EO.Internal.ioas.ienc(ioar& bsa) at EO.Internal.ioat.ienc(vhrv bse, ioar& bsf) at EO.Internal.ioaw.isuv() at EO.Internal.ioaw..ctor(vhrv bsj, HtmlToPdfOptions bsk) at EO.Pdf.HtmlToPdfSession.tcqd(HtmlToPdfOptions yn) at EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions yl, HtmlToPdfSession ym) at EO.Pdf.HtmlToPdfSession.Create(HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.mbpg.gydk() at EO.Internal.ioat.fqfx[a](dnum`1 bsi) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc)
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
Please see your private message for further test instructions.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 8/19/2020 Posts: 13
|
Hello Support,
After last discussion on debug tool command line. As we only allow to run application using command line. We couldn't run tool to test it. So I tried adding same code and exe file with EOWP.exe and make it true. Now I'm having issue related to some script.
EO.Pdf.HtmlToPdfException: Conversion failed. EvalScript failed because script engine is not ready or is shutdown before the script can finish. Please use QueueScriptCall instead of EvalScript to execute JavaScript code in this case. ---> EO.Internal.vqos: EvalScript failed because script engine is not ready or is shutdown before the script can finish. Please use QueueScriptCall instead of EvalScript to execute JavaScript code in this case. ---> EO.WebBrowser.JSInvokeException: EvalScript failed because script engine is not ready or is shutdown before the script can finish. Please use QueueScriptCall instead of EvalScript to execute JavaScript code in this case. --- End of inner exception stack trace --- at EO.WebBrowser.WebView.aolz(Exception lf, Boolean lg) at EO.WebBrowser.WebView.aojo(barf gq, Action`1 gr, Boolean gs, Boolean gt, String gu) at EO.WebBrowser.WebView.EvalScript(String code, String frameName, Boolean throwOnError) at EO.WebBrowser.WebView.EvalScript(String code, Boolean throwOnError) at EO.Internal.lvem.yftn(luzc btj, String btk, String btl, String btm, Int32 btn, Int32 bto, String btp, Boolean btq) at EO.Internal.lvem.rsxd(luzc btb, String btc, String btd, String bte, Int32 btf, Int32 btg, String bth, Boolean bti) at EO.Pdf.HtmlToPdfSession.rsxd(luzc yp, String yq, String yr, Int32 ys, Int32 yt, String yu, Boolean yv) at EO.Pdf.HtmlToPdfSession.rsxd(luzc yw, String yx, String yy, Boolean yz) at EO.Pdf.HtmlToPdfSession.LoadHtml(String html) at EO.Pdf.HtmlToPdf.qftu.cgyb() at EO.Internal.lvej.wuoq[a](sryj`1 bsi) --- End of inner exception stack trace --- at EO.Internal.lvej.wuoq[a](sryj`1 bsi) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, Stream stream, HtmlToPdfOptions options) at EO.Pdf.HtmlToPdf.ConvertHtml(String html, Stream stream)
Code is quite simple for this test. Install Nuget package version 20.2.63
public void TestPrintLetter() { var pdfOutputStream = new MemoryStream(); var content = GetContent(); EO.Base.Runtime.EnableEOWP = true; HtmlToPdf.ConvertHtml(content, pdfOutputStream);// at this point having issue in server }
private string GetContent() { return @"<b> Hello </b>";
}
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
This points to the same issue. Unfortunately we do not have any command line for the tool. So we are looking to integrate this into our DLL so that you can call it in your code directly. We will reply here again when we have an update.
Thanks!
|
|
Rank: Member Groups: Member
Joined: 8/19/2020 Posts: 13
|
Thank you. But Have you encounter issue related to posted above. It's just "Hello" string to convert and Error occur regrading scripting.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
It should not have anything to do what you are trying to convert. The root of the problem is the browser engine did not start properly on your computer. Since anything would require the browser engine to be initialized first, even the simplest HTML would fail.
|
|
Rank: Member Groups: Member
Joined: 8/19/2020 Posts: 13
|
Hello Support Team,
When you expect to have command line option in debug tool?
Thank you
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
It's not exactly command line tool --- but a number of class/methods that you will be able to call in your code directly. The current time line for these features in in mid October. However if you can provide remote access to a test system that can reproduce the problem to us, we can run test code on it directly without having to wait for the release build.
Thanks!
|
|