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
Page crashed!
, net::ERR_INSUFFICIENT_RESOURCES
errors
#11
Comments
@mifi I was debugging the same issue in chromedriver and capybara today and this was where I finally found the answer. Thank you so much for sharing. |
@mifi thanks a lot, I had an identical issue when I tried to open new window, which redirected to another system. Then I got error that JS is disabled, but every requests in new tab returned net::ERR_INSUFFICIENT_RESOURCES, so I find solution here. |
I am using go-rod, and you literally saved my life. thank you! |
When running with high concurrency (many browser instances), I'm experiencing these errors after a few seconds of running on Ubuntu:
Page crashed!
errornet::ERR_INSUFFICIENT_RESOURCES
from<FFmpegVideo>
<img>
error
event.After a lot of digging I found out that it's because the system is running out of disk space. The disk space is being claimed by files that are immediately deleted by chromium (so they don't show up in
du -hs
) inside the/tmp
folder, which has limited space. The files can be seen withlsof
:I've tried these options to puppeteer but none seem to affect these tmp files:
However what turns out to work is to remove the
--disable-dev-shm-usage
from puppeteer/chromium! If this flag is removed, the files will instead be stored in/dev/shm
which has a lot more space (usually many gigabytes on larger AWS EC2 machines). Turns out that the flag was added by default to puppeteer in puppeteer/puppeteer@18f2ecd - interesting discussion here: puppeteer/puppeteer#1834Use
ignoreDefaultArgs: ['--disable-dev-shm-usage']
See also:
The text was updated successfully, but these errors were encountered: