Wkhtmltopdf: QEventDispatcherUNIXPrivate(): Unable to create thread pipe: Too many open files

Created on 12 Jun 2016  路  2Comments  路  Source: wkhtmltopdf/wkhtmltopdf

I have 551 urls in a file called urls, see http://paste.ubuntu.com/17255465/.

I want to convert them into a pdf file by

$ wkhtmltopdf --javascript-delay 10000 $(cat urls) all.pdf
Loading pages (1/6)
QEventDispatcherUNIXPrivate(): Unable to create thread pipe: Too many open files
QEventDispatcherUNIXPrivate(): Can not continue without a thread pipe
Aborted (core dumped)

But why does it fail, and is there a solution?
Thanks.

Invalid

Most helpful comment

Update

The cause of the problem seems to be that there are too many urls in the input file for wkhtmltopdf to handle.

It works when I reduce the number of urls in the input file to some small number, but what is the maximum limit on the number of urls?

Also splitting the url input file into several files seems an somewhat awkward solution, because when combining the generated pdf files into one, it isn't trivial to combine their outlines/bookmarks. Is there a better solution?

Thanks.

All 2 comments

Update

The cause of the problem seems to be that there are too many urls in the input file for wkhtmltopdf to handle.

It works when I reduce the number of urls in the input file to some small number, but what is the maximum limit on the number of urls?

Also splitting the url input file into several files seems an somewhat awkward solution, because when combining the generated pdf files into one, it isn't trivial to combine their outlines/bookmarks. Is there a better solution?

Thanks.

You can see this question https://stackoverflow.com/a/31862185/3422586. The problem is on OS side.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shameemz picture shameemz  路  3Comments

Dingo64 picture Dingo64  路  3Comments

ArthurianX picture ArthurianX  路  4Comments

pyTex picture pyTex  路  3Comments

marcrib picture marcrib  路  3Comments