*** buffer overflow detected ***: wkhtmltopdf terminated #1819
Comments
@fenilp: you have provided me absolutely zero information. At least provide:
and then reopen this issue. |
@ashkulz : Hi Ashish, under an NDA with client I cant provide you the complete details but whatever I can is as below Version - wkhtmltopdf 0.12.1-9615f00 (with patched qt) Hope this is sufficient. Let me know if you need anymore details. Thanks, |
@ashkulz : I generated the PDF without headers and footers, it got generated. The size of the generated PDF is 135 MB and number of pages are 1270. I have set the ulimit to 5000. |
@fenilp: can you try to generate some sample HTML which can reproduce the issue? I'm not interested in actual data, all I care is that the issue is reproducible. |
Same issue here. It works without header or footer, but it doesn't with both.
|
Having the exact same issue here. I'm generating PDFs that are between 500 - 1000 pages in length, although very simple data tables. Including the header and footer causes this buffer overflow issues. The original problem was "Too many open files." which was fixed by adjusting the Any updates or suggestions with this, guys? Many Thanks! |
@joshuapinter: please post a reproducible test case in a gist or upload it somewhere. |
Thanks for the response, @ashkulz. I was able to work around the issue by doing two things:
You're gonna have to play with the limits to see what works with the size of the PDFs you're generating but it's surprising how high these limits have to be to prevent issues. Ideally, we could refactor wkhtmltopdf to not use so many resources but this is a decent workaround. |
Unfortunately increasing stack size and open file limit didn't bring me anything. But then I found out that the problem was in setting up pathes of footer and header with http urls. So I've changed them to local pathes and it solved the problem. |
@daniar23 Can you give an example of what your header and footer paths looked like before and then after you changed them? |
Hi,
While trying to generate large PDFs with more than 150 pages with header and footer I get an error - *** buffer overflow detected ***: wkhtmltopdf terminated. Could anyone let me know what could be the possible reason for this?
The text was updated successfully, but these errors were encountered: