Open ronakjain90 opened 3 weeks ago
Just chiming in here. I found that 'browser.disconnect' leaves the browser instance open. While 'browser.close' actually closes the application entirely. Might help.
Actually that's intended. I don't want to open/close browser application for every screenshot.
Step To Reproduce / Observed behavior
Hi @YusukeIwaki - Thanks for this open source project, we are currently using this in production and I have noticed the following issue.
When running in parallel threads,
puppeteer-ruby
(using chrome/firefox) times out very frequentlypuppeteer-node doesn't face the same issue. I have created a small script with exact same functionality using both puppeteer ruby and node.
puppeteer-node
with the exact same steps as ruby.Comparing the node.js and ruby code you'd notice that it's using the exact same workflow for better comparison, but the puppeteer-ruby hangs if
THREAD_COUNT
is set to 50/100 or doesn't complete the entire script if theTHREAD_COUNT
is set to 25. Somehow I'm noticing degraded performance beyond 100 runs.Expected behavior
puppeteer-ruby should not freeze
Environment
Ubuntu 22 / MacOS
Paste the output of
ruby --version
ruby-3.3.4