Welcome Guest Search | Active Topics | Sign In | Register

EO.PDF Infinite Loop Error ?? Options
Johnathan
Posted: Monday, August 14, 2017 10:54:49 AM
Rank: Member
Groups: Member

Joined: 1/10/2012
Posts: 15
Hi

I just upgraded to your latest version. This was a minor release update form the previous version.


I found all our PDF code stopped functioning without reporting anything useful.

Message: Conversion failed. Object reference not set to an instance of an object.
Stack trace: at EO.Pdf.HtmlToPdfException.b(Exception A_0) at EO.Internal.a24.a(af1 A_0) at EO.Pdf.HtmlToPdfSession.RenderAsPDF(PdfDocument doc) at EO.Pdf.HtmlToPdf.ConvertUrl(String url, PdfDocument doc,


After a whole day of investigation I found an issue with this code.

EO.Pdf.HtmlToPdf.Options.FooterHtmlFormat = "<div style='text-align:center;margin:auto;' >Prepared by <a href='http://www.anyco.com'>www.anyco.com</a></div>"
HtmlToPdf.ConvertUrl(Coverurl, docCover)


if the FooterHtmlFormat contains "<a>" then the next line ie HtmlToPdf.ConvertUrl(Coverurl, docCover) will error.
This did not happen on previous versions.
Whilst tracking this in the debugger, after the exception occurs the line
HtmlToPdf.ConvertUrl(Coverurl, docCover) is then run infinitely over and over and only stopping the debugger can allow you to escape.

Could a config / options error cause and infinite loop running ConvertUrl?

We have been experiencing regular occurrences of the error "All engines are busy", yet our system builds only 20 or 30 PDF per day.

Is it possible that some other error could also create an infinite loop and tie up the "engines" for some time period?

Regards

Johnathan
eo_support
Posted: Monday, August 14, 2017 11:14:24 AM
Rank: Administration
Groups: Administration

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

Which version did you upgrade to? A element in header/footer causing NullObjectReference exception was an issue that has been fixed in our most recent update, which was posted this past Friday. The version number for this update is 17.2.43. So if you have not update to that version, please update to it and see if it resolves the issue for you.

If the problem still occurs with this build, please try to isolate the problem into a test project and send the test project to us. See here for more details on how to send the test project:

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

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.