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

Playwright Firefox browser instances not closing after closing browser context[BUG] #2859

Closed
kaushik-i-b opened this issue Jul 7, 2020 · 2 comments

Comments

@kaushik-i-b
Copy link

Context:

  • Playwright Version: [1.0.2]
  • Operating System: [ Linux]
  • Node version: [e.g. 12.16.3]
  • Browser: [e.g. Firefox]

Describe the bug
I was running the playwright automation test in cron job. When ever the first job is completed it is leaving few firefox browser instance running in background and not closing. After running multiple instances. I'm facing memory leak issue.
this is before running a job
Capture

this is after job is completed
Capture2
.

@aslushnikov
Copy link
Contributor

@kaushik-i-b can you please share a reduced script that you run and that leaks browser processes for you?

@john-tmc
Copy link

john-tmc commented Aug 9, 2022

In case someone else had the same issue, I was issuing new context (multiple incognito, multiple login)
I had to do browserContext()?.close() before browser.close(), it's not quite explained in the docs, but it is in the source code.

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

3 participants