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
2.1.0 Windows regression: process stays open due to open sockets #5356
Comments
Still trying to get a smaller reproduction ready. |
puppeteer seems to leave open handles when in ws mode. saw this in another project and reported upstream: puppeteer/puppeteer#5356
I believe I may be affected by a similar issue. I have a process in place that works perfectly fine with 2.0.0 but when upgrading to 2.1.0 or 2.1.1 I see intermittent failures with various things I'm doing. I confirmed with my project that the only change was the version of puppeteer. Do you think it would be possible to confirm that downgrading puppeteer to 2.0.0 resolves your issue? P.S. I'm not a contributor to this project, just another user 😄 |
Downgrading to v2.0.0 consistently works. It is a v2.1.0 regression (which also occurs in v2.1.1). Meanwhile, all projects using puppeteer in our stack have switched to |
I'll see if I can rig up some testing with |
I'm using a library that uses puppeter and experience the same issue. |
Fixed by I did have to add |
Project: https://github.com/wixplosives/mocha-pup
When upgrading to 2.1.0, tests started failing (timeouts) on Windows CI. Containers got stalled.
My tests execute a CLI which:
Debugging revealed the CLI process never shuts down, as there are two sockets left open:
https://github.com/wixplosives/mocha-pup/runs/413725670
Further investigation suggested it has to do with the browser connection.
Switching to
pipe: true
made it work. :oBest guess: the WebSocket connection stays open and never gets destroyed.
Suspected PR: #5137 (it refactored
Launcher.js
, which has the connection setup)Steps to reproduce
Tell us about your environment:
What steps will reproduce the problem?
I wish it was that easy. :(
I couldn't reproduce the issue locally. I use Fedora 31, and only had Windows 10 at my office (where issue didn't reproduce). Issue happened consistently in every Windows CI run.
Please include code that reproduces the issue.
Apologies again. I'll try to create a smaller reproducible test-case.
(maybe a script that opens and closes puppeteer 10 times)
What is the expected result?
After calling browser.close(), no socket should stay open.
What happens instead?
Sockets get left behind, process never exits.
The text was updated successfully, but these errors were encountered: