Comments (8)
Do you have some quick samples (or urls) that can be shared? The processes become zombies which may mean a parent process dies before the child processes are cleaned up.
from chrome-headless-browser-docker.
Well, you can see code snippet below, i just wanna parallel every single testcase by multiple threads, but each testcase will start a new chrome process then quit after it's done. Have you ever met this issue before if you're trying to run a huge numbers of testcases ? Anyway , i'm going to upgrade your Docker Image first to make sure if it is still .....
BTW: i've used RemoteWebDriver connecting to this Docker Image.
public class ParallelSolvingTest {
private static Log log = LogFactory.getLog(ParallelSolvingTest.class);
private ThreadLocal<WebDriver> wd = new InheritableThreadLocal<>();
@BeforeMethod
public void beforeMethod() {
WebDriver webDriver = DriverUtility.openDriver();
wd.set(webDriver);
}
@AfterMethod
public void afterMethod(){
WebDriver webDriver = wd.get();
if(webDriver != null) {
webDriver.manage().deleteAllCookies();
webDriver.quit();
}
}
}
from chrome-headless-browser-docker.
Did you use standalone mode or hub mode? I used protractor and I did not see any zombie processes after sending 100 individual protractor tests in standalone mode.
from chrome-headless-browser-docker.
I'm calling the address like this http://x.x.x.x:4444/wd/hub, maybe this is hub mode.. what you mean the standalone mode is just like connecting straight forward to ChromeWebDriver port right?
from chrome-headless-browser-docker.
Yes, If you hit it with wd/hub, it is using the hub mode. I tried hub mode as well, and all 100 tests finished without leaving any zombie process. I think you may want to look at the logs and see if there are any crashes, which would have caused the zombie processes to hang around.
from chrome-headless-browser-docker.
In the log, there are lots of WARN - Exception: no such element: Unable to locate element
occurring, i'm not very sure if it's effecting on ..
from chrome-headless-browser-docker.
Honestly, I have no clue unless I can reproduce it on my machine. I understand your test cases may be more comprehensive thus my tests are not identical as yours. What I usually do with these kind of errors is to set up an environment without docker and verify if this is caused by the docker setup or not.
from chrome-headless-browser-docker.
I've upgraded to 3.6.0, the issue is gone. maybe version causes this.
from chrome-headless-browser-docker.
Related Issues (20)
- No License HOT 1
- Pages not rendering with newest version of Chrome HOT 2
- error while loading shared libraries: libgconf-2.so.4 HOT 2
- Upgrade OS image and driver to latest version
- Provide a stable chrome version, too HOT 2
- How to access vagrant web server from the container? HOT 1
- Host header is specified and is not an IP address or localhost. HOT 12
- chrome crashed after the first round testing HOT 3
- Error During Build HOT 7
- cant pass parameters into the chrome drive for image: Chrome Headless Browser with Chrome Driver in Selenium HOT 1
- docker.for.mac.localhost not connecting from inspector HOT 3
- Debian stable is now bullseye HOT 4
- Image doesn't work on M1 Macs HOT 18
- WebGL disabled in chrome-headless-browser-stable image HOT 5
- E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied) HOT 1
- Container failing to boot HOT 4
- In CasaOS, there is a certain chance that it cannot be opened normally.
- Can't use with M2 Mac HOT 5
- Downloading files not working as expected HOT 7
- dbus errors when running chrome-headless-browser-stable (M2 Mac) HOT 1
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 chrome-headless-browser-docker.