"Arithmetic Overflow" Exception when generating a PDF with PuppeteerSharp, for a very large webpage

54 Views Asked by At

We are getting the following exception when attempting to generate a PDF for a very large webpage with PuppeteerSharp. I have duplicated this with versions 2.0.3, 2.04 & 4.0 of PuppeteerSharp.

Arithmetic operation resulted in an overflow. at System.Linq.Buffer1..ctor(IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source) at PuppeteerSharp.Helpers.ProtocolStreamReader.d__1.MoveNext() in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\Helpers\ProtocolStreamReader.cs:line 83 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at PuppeteerSharp.Page.d__171.MoveNext() in C:\projects\puppeteer-sharp\lib\PuppeteerSharp\Page.cs:line 1003 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

0

There are 0 best solutions below