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._
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
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-usageflag._related issue:_ https://github.com/puppeteer/puppeteer/issues/1834