Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Wkhtmltopdf failed (error code: -11) #4957

Open
yazan7978 opened this issue Feb 24, 2021 · 3 comments
Open

Wkhtmltopdf failed (error code: -11) #4957

yazan7978 opened this issue Feb 24, 2021 · 3 comments

Comments

@yazan7978
Copy link

when i make report for less than 80 page work correctly, if i make report more than 80 paper give me error :
Wkhtmltopdf failed (error code: -11). Memory limit too low or maximum file number of subprocess reached. Message : b''.

@tebanep
Copy link

tebanep commented Feb 24, 2021

We are experiencing the exact same problem when printing large documents with version v0.12.5 in Ubuntu 20.04. This wasn't happening in Ubuntu 18.04 with version 0.12.1.3 of wkhtmltopdf. ¿Could this be due to a server misconfiguration? I attest that It has plenty of RAM, though.

@urna
Copy link

urna commented Apr 9, 2021

+1 wkhtmltopdf 0.12.6 (with patched qt)

@urna
Copy link

urna commented Apr 9, 2021

here is the solution:

Dear, When you try to generate a big pdf (over 200 pages) with header and footer, you are an error -11. It is a limitation of max handle file per process. (default is 256 for mac). But the wkhtmltopdf open for each page the header and the footer. to change this value : http://stackoverflow.com/questions/16526783/python-subprocess-too-many-open-files

In terminal do : ulimit -n 10000
Check : ulimit -a

#2507

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants