Pagedown: [chrome_print] do not ignore Inspector.targetCrashed method

Created on 21 Sep 2020  路  1Comment  路  Source: rstudio/pagedown

I've experienced some troubles while printing a pdf: I got some timeouts.
In the logs, I found that the timeouts could be explained by targets crashes: when a target crashes, Chrome sends the Inspector.targetCrashed method.
For now, this method is ignored by chrome_print(). I think we should handle this method and raise an R error.

_I haven't found why the targets crashed but I suspect this was due to large images._

Most helpful comment

FTR, I ran chrome_print() in a docker container when I got this issue.
The crash can be explained by insufficient memory.
The solution is to run Chrome with the --disable-dev-shm-usage flag.

_related issue:_ https://github.com/puppeteer/puppeteer/issues/1834

>All comments

FTR, I ran chrome_print() in a docker container when I got this issue.
The crash can be explained by insufficient memory.
The solution is to run Chrome with the --disable-dev-shm-usage flag.

_related issue:_ https://github.com/puppeteer/puppeteer/issues/1834

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cderv picture cderv  路  4Comments

filippogambarota picture filippogambarota  路  3Comments

mr-illington picture mr-illington  路  3Comments

xf15 picture xf15  路  3Comments

xf15 picture xf15  路  4Comments