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
[Bug]: Hang when closing a lot of headed net::ERR_CONNECTION_REFUSED
windows
#8838
Comments
Probably related is that sometimes while closing a lot of windows Node.js exits the process because it found that some Promise could never be resolved. |
This strikes me as an issue of having too many processes resulting in some kind of resource problem. Do you know if this occurs always with, say, 100 processes? |
@jrandolf You mean |
Yes. |
I tried this, and the problem doesn't occur, only with an invalid URL (or e.g. https on 8080 when the server only does http). |
FYI: still happens with puppeteer 18.0.3 |
Chromium update to M107 did not fix this unfortunately |
I am not able to reproduce locally. Does it still happen using the latest version? |
Bug description
Puppeteer sometimes fails to close some
net::ERR_CONNECTION_REFUSED
windows when closing the main page of each incognito context on a headed browser.Steps to reproduce the problem:
Which will often fail to close one or more windows and hang indefinitely and output something like:
(You might need to run it a couple of times or increase
total
and increase the timeout in DeferredPromise.)This happens both with the bundled Chromium v105.0.5173.0 and with the same puppeteer version but Chrome v104.0.5112.102.
May be related to #8691, but that issue does not seem to occur with Chrome v104.0.5112.102.
Puppeteer version
16.2.019.3.0Node.js version
18.7.0
npm version
8.17.0
What operating system are you seeing the problem on?
Windows
Relevant log output
No response
The text was updated successfully, but these errors were encountered: