Welcome Guest Search | Active Topics | Sign In | Register

Conversion failed. Child process not ready. nWaitResult = 1 Options
Ad
Posted: Monday, January 22, 2018 8:09:57 AM
Rank: Newbie
Groups: Member

Joined: 1/22/2018
Posts: 2
Hello,

Last week we had an issue with one of our web servers when generating PDF's. First we had one exception of 'Conversion failed. Child process not ready. nWaitResult = 1'. See stack trace below:

Quote:
Message: Conversion failed. Child process not ready. nWaitResult = 1
EO.Internal.ais.a(aa9 A_0, a42 A_1):299
EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions A_0):242
EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options):0
(our code here)


InnerException:
Quote:
Message: Child process not ready. nWaitResult = 1
EO.Internal.jj.a(String A_0, Boolean A_1):101
EO.Internal.jj.a(IntPtr A_0):149
EO.Internal.jj+i.a(IntPtr A_0):66
EO.Internal.jj+i.b():321
EO.Internal.jj+i.d():20
EO.Internal.jj.k():370
EO.Internal.jj.a(String[] A_0, String A_1, String A_2, String A_3, String A_4):299
EO.Internal.gv.a(String A_0, String A_1):89
EO.Internal.ais.f():111
EO.Internal.ais..ctor():109
EO.Internal.ais.a(ais A_0, List`1 A_1):601
EO.Internal.ais.a(aa9 A_0, Boolean A_1, a42 A_2):397
EO.Internal.ais.a(aa9 A_0, a42 A_1):157


After that, a lot of exceptions followed for each subsequent time the web server tried to generate a PDF:

Quote:
Conversion failed. No process is associated with this object.
EO.Internal.ais.a(aa9 A_0, a42 A_1):299
EO.Pdf.HtmlToPdfSession..ctor(HtmlToPdfOptions A_0):242
EO.Pdf.HtmlToPdf.ConvertHtml(String html, PdfDocument doc, HtmlToPdfOptions options):0
(our code here)


InnerException:
Quote:
Message: No process is associated with this object.
System.Diagnostics.Process.EnsureState(State state):89
System.Diagnostics.Process.get_Handle():0
EO.Internal.jj.a(IntPtr A_0):239
EO.Internal.jj+i.a(IntPtr A_0):66
EO.Internal.jj+i.b():321
EO.Internal.jj+i.d():20
EO.Internal.jj.k():370
EO.Internal.jj.a(String[] A_0, String A_1, String A_2, String A_3, String A_4):299
EO.Internal.gv.a(String A_0, String A_1):89
EO.Internal.ais.f():111
EO.Internal.ais..ctor():109
EO.Internal.ais.a(ais A_0, List`1 A_1):601
EO.Internal.ais.a(aa9 A_0, Boolean A_1, a42 A_2):397
EO.Internal.ais.a(aa9 A_0, a42 A_1):157


We had to recycle the application pool to fix this. We looked through our server logs but couldn't find anything abnormal. Could you please look into this? This is the first time we encountered this but we want to prevent it from happening again.
eo_support
Posted: Monday, January 22, 2018 2:06:59 PM
Rank: Administration
Groups: Administration

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

This occurs when we try to start a child process but it has immediately crashed. Usually such issue are caused by temporary resource strains such as low memory conditions and it should resolve itself if you try again. However if you must recycle the application pool then it probably indicate a problem elsewhere. We did added many error handling/recovering code over the years, so you can try the latest build and see if it can recover from it by itself if this happens again. If the problem still occurs, then we will look into adding logs/debug dump capturing code to see if that can reveal anything.

Thanks!
Ad
Posted: Tuesday, January 23, 2018 3:05:22 AM
Rank: Newbie
Groups: Member

Joined: 1/22/2018
Posts: 2
Thanks for your reply, we will look into implementing more logging.
eo_support
Posted: Tuesday, January 23, 2018 12:54:47 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,083
You are very welcome. Please keep us updated.
Frank
Posted: Thursday, February 15, 2018 6:32:49 AM
Rank: Newbie
Groups: Member

Joined: 5/26/2017
Posts: 6
Hi,

In addition to the above comment for implementing more logging, this problem exists on EO.PDF version 15.4.18 and we would like to implement more logging besides the exceptions is that possible?
If yes, could you give us examples what more logging we could apply besides the exceptions?

Thanks!
eo_support
Posted: Thursday, February 15, 2018 12:22:28 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,083
Frank wrote:
Hi,

In addition to the above comment for implementing more logging, this problem exists on EO.PDF version 15.4.18 and we would like to implement more logging besides the exceptions is that possible?
If yes, could you give us examples what more logging we could apply besides the exceptions?

Thanks!


Hi,

No. This is not something you can do on your side because there is no way for you to insert logging code to any arbitrary location in our code, nor its possible for you to log the value of our internal variables.

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.