Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[chrome_print] do not ignore Inspector.targetCrashed method #190

Closed
RLesur opened this issue Sep 21, 2020 · 1 comment
Closed

[chrome_print] do not ignore Inspector.targetCrashed method #190

RLesur opened this issue Sep 21, 2020 · 1 comment

Comments

@RLesur
Copy link
Collaborator

RLesur commented Sep 21, 2020

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.

@RLesur
Copy link
Collaborator Author

RLesur commented Oct 3, 2020

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: puppeteer/puppeteer#1834

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

No branches or pull requests

1 participant