-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Description
🐛 Bug Report
When the test suite is run after 40-50 tests using selenium4.0.0-alpha04 jar, the test to open new webdriver instance starts failing with below exception.
This suite works fine with selenium-server-standalone-3.141.59.jar
The code to spawn the new browser is:
new RemoteWebDriver(new URL(remoteServerUrl), getEdgeChromiumOptions());
java.lang.IllegalStateException: failed to create a child event loop at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:88) at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:58) at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:47) at io.netty.channel.MultithreadEventLoopGroup.<init>(MultithreadEventLoopGroup.java:59) at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:86) at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:81) at io.netty.channel.nio.NioEventLoopGroup.<init>(NioEventLoopGroup.java:68) at org.asynchttpclient.netty.channel.NioTransportFactory.newEventLoopGroup(NioTransportFactory.java:32) at org.asynchttpclient.netty.channel.NioTransportFactory.newEventLoopGroup(NioTransportFactory.java:21) at org.asynchttpclient.netty.channel.ChannelManager.<init>(ChannelManager.java:130) at org.asynchttpclient.DefaultAsyncHttpClient.<init>(DefaultAsyncHttpClient.java:89) at org.asynchttpclient.DefaultAsyncHttpClient.<init>(DefaultAsyncHttpClient.java:71) at org.asynchttpclient.Dsl.asyncHttpClient(Dsl.java:28) at org.openqa.selenium.remote.http.netty.CreateNettyClient.apply(CreateNettyClient.java:34) at org.openqa.selenium.remote.http.netty.NettyHttpHandler.<init>(NettyHttpHandler.java:39) at org.openqa.selenium.remote.http.netty.NettyClient$Factory.createClient(NettyClient.java:68) at org.openqa.selenium.remote.http.HttpClient$Factory.createClient(HttpClient.java:71) at org.openqa.selenium.remote.HttpCommandExecutor.<init>(HttpCommandExecutor.java:90) at org.openqa.selenium.remote.HttpCommandExecutor.<init>(HttpCommandExecutor.java:73) at org.openqa.selenium.remote.HttpCommandExecutor.<init>(HttpCommandExecutor.java:60) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:149) at gaugecore.utils.CustomWebDriver.browserFor(CustomWebDriver.java:189) at gaugecore.utils.CustomWebDriver.getBrowser(CustomWebDriver.java:79) at gaugecore.utils.MultiBrowser.openNewBrowser(MultiBrowser.java:383) at gaugecore.utils.ScenarioContext.setUp(ScenarioContext.java:174) at jdk.internal.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at com.thoughtworks.gauge.execution.MethodExecutor.execute(MethodExecutor.java:38) at com.thoughtworks.gauge.execution.HooksExecutor$TaggedHookExecutor.executeHook(HooksExecutor.java:100) at com.thoughtworks.gauge.execution.HooksExecutor$TaggedHookExecutor.execute(HooksExecutor.java:88) at com.thoughtworks.gauge.execution.HooksExecutor.execute(HooksExecutor.java:45) at com.thoughtworks.gauge.processor.MethodExecutionMessageProcessor.executeHooks(MethodExecutionMessageProcessor.java:65) at com.thoughtworks.gauge.processor.ScenarioExecutionStartingProcessor.process(ScenarioExecutionStartingProcessor.java:34) at com.thoughtworks.gauge.connection.MessageDispatcher.dispatchMessages(MessageDispatcher.java:92) at com.thoughtworks.gauge.GaugeRuntime.dispatchMessages(GaugeRuntime.java:98) at com.thoughtworks.gauge.GaugeRuntime.lambda$connectInParallel$0(GaugeRuntime.java:74) at java.base/java.lang.Thread.run(Thread.java:834) Caused by: io.netty.channel.ChannelException: failed to open a new selector at io.netty.channel.nio.NioEventLoop.openSelector(NioEventLoop.java:175) at io.netty.channel.nio.NioEventLoop.<init>(NioEventLoop.java:142) at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:146) at io.netty.channel.nio.NioEventLoopGroup.newChild(NioEventLoopGroup.java:37) at io.netty.util.concurrent.MultithreadEventExecutorGroup.<init>(MultithreadEventExecutorGroup.java:84)
To Reproduce
Detailed steps to reproduce the behavior:
Expected behavior
A new browser should be spawned.
Test script or set of commands reproducing this issue
Environment
OS:
Browser:
Browser version:
Browser Driver version:
Language Bindings version:
Selenium Grid version (if applicable):
OSX configuration
Processor: 4x Intel(R) Xeon(R) CPU E5-2640 v4 @ 2.40GHz
Kernel: 3.10.0-1062.4.1.el7.x86_64
Memory: 7.63 GB
Puppet: 3.8.7
Facter: 2.4.6
ulimit unlimited