Comments (8)
I've had the exact same problem since yesterday
Multiple running chrome processes and remaining "chromedriver.exe" after some test executions
My laptop was slower and slower and I noticed this
https://bugs.chromium.org/p/chromedriver/issues/detail?id=4744
from selenium.
Added a comment in the chrome driver bugs link https://bugs.chromium.org/p/chromedriver/issues/detail?id=4744
"The issue still exists with chromedriver version 124.0.6367.155 and chrome browser version 124.0.6367.119.
After testcase is run, and completed (chrome driver is quit), the Google Chrome process still exists with 2 threads running consuming on an average 10% of CPU utilization.
If i run 10 testcases, it means 100% CPU utilization and this is making the system very slow.
As the original author recommended below 2 options
IMPORTANT TIPS:
- This is related to "--no-sandbox" browser argument. As soon as I remove this argument, I don't see "zombie processes".
- If I really want to use "--no-sandbox" argument, and I add "--remote-debugging-pipe", then the issue is not reproducible anymore - no "zombie" processes.
Nothing works for us.
Attached is the screenshot which shows when a simple testcase to open chrome launch google.com and close it is run 10 times and the processes still exists even after testcases are completed and browsers are closed by chrome driver.
Note: during execution, if I manually close the browser, no more zombie processes left."
from selenium.
I was having the same problem.
As a possible work around you could comment out or remove chromeOpts.addArguments("--no-sandbox"); in your driver initialization. For me it reduced the CPU load.
from selenium.
@dmidura, thank you for creating this issue. We will troubleshoot it as soon as we can.
Info for maintainers
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template
label.
If the issue is a question, add the I-question
label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted
label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-*
label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer
label.
Thank you!
from selenium.
Yes, this has been reported. Unfortunately, we cannot fix this issue as it is in Chrome.
from selenium.
I have been facing this issue since last week .. This is not only about Chrome 124 it is also Happening with firefox and edge browser .
from selenium.
Same issue i'm facing too.. first iteration starts fine and after the browser closes and restart then issue is back
from selenium.
You need to call driver.close()
before driver.quit()
otherwise you get lingering chrome processes with high resource usage. This is an issue with recent chrome versions (124+).
from selenium.
Related Issues (20)
- [🐛 Bug]: It does not read the console log completely HOT 4
- Message: 'chromedriver' executable needs to be in PATH [🐛 Bug]: HOT 4
- [🐛 Bug]: [rb] Dependency on the `logger` gem which will be removed in Ruby 3.5 HOT 2
- [🚀 Feature]: Run tests with Safari
- [🐛 Bug]: Running ./scripts/format.sh on macOS cause an error with downloading coreutils HOT 2
- [🐛 Bug]: TypeError: WebDriver.__init__() got an unexpected keyword argument 'desired_capabilities' HOT 6
- [🐛 Bug]: NoSuchDriverException for Windows app execution aliases HOT 10
- [🐛 Bug]: Selenium Manager is not thread synchronized? HOT 2
- [🐛 Bug]: Selenium Grid node 4.21 trying to download driver even when driver are present on the system HOT 10
- [🐛 Bug]: Not able to disable chrome prompt through chromeOptions for chrome version 125.0.6422.142 HOT 5
- [🐛 Bug]: Selenium Using Css Selector with tilde signature is throwing org.openqa.selenium.InvalidSelectorException: invalid selector: HOT 5
- [🐛 Bug]: Cannot download file with Javascript. WebDriverError: Cannot find file [xxx] in directory xxxx HOT 3
- [🐛 Bug]: log writing failed. log writing failed. "\xC2" from ASCII-8BIT to UTF-8 HOT 2
- [🐛 Bug]: visual studio Bug: senenium in headless mode : "--headless=new" cant swich to a new window tab and recognize Xpath web element HOT 2
- [🐛 Bug]: Strong Name Key HOT 10
- [🚀 Feature]: Full page screenshots for Chrome HOT 4
- [🐛 Bug]: Selenium Firefox shadow element is not clicked by webelement.click() HOT 3
- [🐛 Bug]: UnsupportedOperationException: getShadowRoot on Actions.dragAndDrop() HOT 6
- [🐛 Bug]: Getting error code: "65: Wrong browser/driver version" while triggering the chromedriver in C# N-unit project HOT 2
- [🐛 Bug]: Curb Http Client
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selenium.