Upgraded Chrome to 111 and Selenium Started Failing to launch browser

5,767 views
Skip to first unread message

Kiran Nalam

unread,
Mar 9, 2023, 12:17:04 PM3/9/23
to ChromeDriver Users

Got Chrome upgraded through organizational push and the test suite started failing. Tried couple of options but no luck yet.

Pasting down the log I am seeing. Any advise is appreciated.



Starting ChromeDriver 111.0.5563.64 (c710e93d5b63b7095afe8c2c17df34408078439d-refs/branch-heads/5563@{#995}) on port 13894

Only local connections are allowed.

Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.

ChromeDriver was started successfully.

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: exited normally.

(unknown error: DevToolsActivePort file doesn't exist)

(The process started from chrome location C:\Program Files (x86)\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

Build info: version: '4.8.1', revision: '8ebccac989'System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '21-ea'

Driver info: org.openqa.selenium.chrome.ChromeDriver

Command: [null, newSession {capabilities=[Capabilities {acceptInsecureCerts: true, browserName: chrome, goog:chromeOptions: {args: [--disable-notifications, --disable-gpu, --disable-extensions, --no-sandbox, --disable-dev-shm-usage, --remote-allow-origins=*], extensions: [], prefs: {profile.default_content_setting_values.notifications: 2}}}], desiredCapabilities=Capabilities {acceptInsecureCerts: true, browserName: chrome, goog:chromeOptions: {args: [--disable-notifications, --disable-gpu, --disable-extensions, --no-sandbox, --disable-dev-shm-usage, --remote-allow-origins=*], extensions: [], prefs: {profile.default_content_setting_values.notifications: 2}}}}]

Rajkiran Kairamkonda

unread,
Mar 9, 2023, 12:29:44 PM3/9/23
to ChromeDriver Users

I am also seeing the same issue.


Starting ChromeDriver 111.0.5563.64 (c710e93d5b63b7095afe8c2c17df34408078439d-refs/branch-heads/5563@{#995}) on port 13894

Only local connections are allowed.

Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.

ChromeDriver was started successfully.

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: exited normally.

(unknown error: DevToolsActivePort file doesn't exist)

(The process started from chrome location C:\Program Files (x86)\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

Build info: version: '4.8.1', revision: '8ebccac989'System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '21-ea'

Driver info: org.openqa.selenium.chrome.ChromeDriver

Command: [null, newSession {capabilities=[Capabilities {acceptInsecureCerts: true, browserName: chrome, goog:chromeOptions: {args: [--disable-notifications, --disable-gpu, --disable-extensions, --no-sandbox, --disable-dev-shm-usage, --remote-allow-origins=*], extensions: [], prefs: {profile.default_content_setting_values.notifications: 2}}}], desiredCapabilities=Capabilities {acceptInsecureCerts: true, browserName: chrome, goog:chromeOptions: {args: [--disable-notifications, --disable-gpu, --disable-extensions, --no-sandbox, --disable-dev-shm-usage, --remote-allow-origins=*], extensions: [], prefs: {profile.default_content_setting_values.notifications: 2}}}}]


Ganesh Mallina

unread,
Mar 9, 2023, 12:50:56 PM3/9/23
to ChromeDriver Users
encountered Same issue as above

AKASH RANI

unread,
Mar 9, 2023, 2:05:48 PM3/9/23
to ChromeDriver Users
I am also facing exactly the same issue... could not find solution"

Thanks
Akash

sairam reddy

unread,
Mar 9, 2023, 2:09:35 PM3/9/23
to ChromeDriver Users


I am also facing exactly the same issue... could not find solution.

Thanks
Sai ram.

Antonio Labastida

unread,
Mar 9, 2023, 9:49:19 PM3/9/23
to ChromeDriver Users
Facing the same, havent found a solution!

nigel mulholland

unread,
Mar 10, 2023, 5:27:31 AM3/10/23
to ChromeDriver Users

Ian McGraw

unread,
Mar 10, 2023, 5:52:24 AM3/10/23
to ChromeDriver Users
Agree root issue as per Nigel's post. The workaround in https://groups.google.com/g/chromedriver-users/c/xL5-13_qGaA worked for us. 

ChromeOptions options = new ChromeOptions();
options.addArguments("--remote-allow-origins=*");


shantha laxmi kumar

unread,
Mar 10, 2023, 12:51:13 PM3/10/23
to ChromeDriver Users
I am also facing same as above even after trying the workaround mentioned above.. Sorry but no luck!

Error stacktrace:

org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: crashed.

  (unknown error: DevToolsActivePort file doesn't exist)
  (The process started from chrome location C:\Program Files\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Host info: host: 'CDC2-L-134492D', ip: '192.168.0.136'

Build info: version: '4.8.1', revision: '8ebccac989'
System info: os.name: 'Windows 11', os.arch: 'amd64', os.version: '10.0', java.version: '11.0.17'
Driver info: org.openqa.selenium.chrome.ChromeDriver

shantha laxmi kumar

unread,
Mar 10, 2023, 1:13:50 PM3/10/23
to ChromeDriver Users
Does this new "java 11+ http client" support open jdk latest version, since i am using the same??

shaveta peerislands

unread,
Mar 10, 2023, 1:42:42 PM3/10/23
to ChromeDriver Users
WebDriverManager.chromedriver().setup();
ChromeOptions options = new ChromeOptions();
options.addArguments("--remote-allow-origins=*");
DesiredCapabilities cp=new DesiredCapabilities();

cp.setCapability(ChromeOptions.CAPABILITY, options);

options.merge(cp);

driver = new ChromeDriver(options);
add this 

shantha laxmi kumar

unread,
Mar 11, 2023, 1:26:55 AM3/11/23
to ChromeDriver Users
i did the following :
1.Added to the POM
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-http-jdk-client</artifactId>
<version>4.5.0</version>
</dependency>

2.Ensure jdk version is 11+,  which is 17 in my case
3. Added this code below, 
ChromeOptions co = new ChromeOptions();
co.addArguments("--remote-allow-origins=*");
System.setProperty("webdriver.http.factory", "jdk-http-client");
WebDriverManager.chromedriver().driverVersion("110.0.5481").setup();
 driver = new ChromeDriver(co);
try
{
driver.get("https://test.salesforce.com");
}
...

Still unable to start a chrome session : 

Here are my version details :

Chrome : 111.0.5563.65 
Chrome driver : 111.0.5563.64
Java- JDK 17
Selenium : 4.5

Sara Gallegos

unread,
Mar 13, 2023, 2:41:41 PM3/13/23
to ChromeDriver Users
I am having the same issue, using C#, .NET Core 3.1.  A browser pops up, but it does not navigate to the URL.  Added the option "remote-allow-origins=*" to the code.  No luck.

Here are my errors:

Starting ChromeDriver 111.0.5563.64 (c710e93d5b63b7095afe8c2c17df34408078439d-refs/branch-heads/5563@{#995}) on port 58495

Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.

DevTools listening on ws://127.0.0.1:58501/devtools/browser/cd4ce029-a313-42c3-be10-80f2e4e0f0a9
Unhandled exception. OpenQA.Selenium.WebDriverException: The HTTP request to the remote WebDriver server for URL http://localhost:58495/session timed out after 50 seconds.
 ---> System.Threading.Tasks.TaskCanceledException: The operation was canceled.
 ---> System.IO.IOException: Unable to read data from the transport connection: The I/O operation has been aborted because of either a thread exit or an application request..
 ---> System.Net.Sockets.SocketException (995): The I/O operation has been aborted because of either a thread exit or an application request.
   --- End of inner exception stack trace ---
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
   at System.Net.Http.HttpConnection.FillAsync()
   at System.Net.Http.HttpConnection.ReadNextResponseHeaderLineAsync(Boolean foldedHeadersAllowed)
   at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at System.Net.Http.HttpConnection.SendAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithNtConnectionAuthAsync(HttpConnection connection, HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken)
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.FinishSendAsyncBuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts)
   at OpenQA.Selenium.Remote.HttpCommandExecutor.MakeHttpRequest(HttpRequestInfo requestInfo)
   at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
   --- End of inner exception stack trace ---
   at OpenQA.Selenium.Remote.HttpCommandExecutor.Execute(Command commandToExecute)
   at OpenQA.Selenium.Remote.DriverServiceCommandExecutor.Execute(Command commandToExecute)
   at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.WebDriver.StartSession(ICapabilities desiredCapabilities)
   at OpenQA.Selenium.WebDriver..ctor(ICommandExecutor executor, ICapabilities capabilities)
   at OpenQA.Selenium.Chromium.ChromiumDriver..ctor(ChromiumDriverService service, ChromiumOptions options, TimeSpan commandTimeout)
   at OpenQA.Selenium.Chrome.ChromeDriver..ctor(ChromeDriverService service, ChromeOptions options, TimeSpan commandTimeout)
   at OpenQA.Selenium.Chrome.ChromeDriver..ctor(String chromeDriverDirectory, ChromeOptions options, TimeSpan commandTimeout)

CHAVVA ABHILASH

unread,
Mar 21, 2023, 2:13:48 AM3/21/23
to ChromeDriver Users
Hi Team could someone please suggest on this issue...no workaround no progress of work

Gábor Dömös

unread,
Mar 23, 2023, 4:06:00 AM3/23/23
to ChromeDriver Users
Same issue here, except it does not work on one of my client's enviroment. 

Gábor Dömös

unread,
Mar 24, 2023, 11:45:47 AM3/24/23
to ChromeDriver Users
Here is a quick update:

Chrome Version: 111.0.5563.111 (64 bit) (cohort: Stable)
OS: Windows Server 2022 Version 21H2 (Build 20348.1547)
JavaScript: V8 11.1.277.17
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Path: "C:\Program Files\Google\Chrome\Application\chrome.exe" --flag-switches-begin --flag-switches-end --site-per-process
Profile path: H:\Google\Default

Console Application written in C#
Test case: open three Chrome instances navigate to the url https://www.selenium.dev/selenium/web/web-form.html and save the pagesource into a text file.
Target Framework: .NET FrameWork 4.5.2
Nuget package: Selenium WebDriver 4.8.1

I've played a lot with the headless mode and multiple (3) chromedriver instances. 

Results:
Test case 1:
--headless=new
:ERROR:broker_win.cc(56)] Error reading broker pipe, unknown error: Chrome failed to start: crashed.
  (unknown error: DevToolsActivePort file doesn't exist)

Test case 2:
--headless=new
--remote-debugging-port=9222 (random port betweein 9222-9300 for each instances)
Firs chromedriver starts normally, navigatiaon is ok, pagesource textfile generated.
Second instance: unknown error: Chrome failed to start: crashed.  (chrome not reachable)  (The process started from chrome location C:\Program Files\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

Test case 3:
--headless=new
--remote-debugging-port=9222 (random port betweein 9222-9300 for each instances)
Google Chrome browser is open
First instance: unknown error: Chrome failed to start: crashed.  (chrome not reachable)  (The process started from chrome location C:\Program Files\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)

Conclusion: if a Google Chrome browser is open, headless new with --remote-debugging-port crashes. Chromedriver tries to open the new page in the same browser, but nothing happens, only a blank page came up with ;data text.

Test case 4:
--headless=old
Still everything is working fine, except file download. I've tried pdf files without result. 

Test case 5:
-- without headless mode, so the browser window is visible
Browser window is visible, blank page, nothing happens.

Test case 6:
-- without headless mode, so the browser window is visible
--remote-debugging-port=9222 (random port betweein 9222-9300 for each instances)
Still everything is working fine also file download.

Test case 7:
Google Chrome
111.0.5563.111 (64 bit) (cohort: Stable Installs & Version Pins)
OS: Windows 10 Version 21H2 (Build 19044.2728)
JavaScript: V8 11.1.277.17
User agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Path: "C:\Program Files\Google\Chrome\Application\chrome.exe" --flag-switches-begin --enable-features=WebContentsForceDark --flag-switches-end
Profile path: C:\Users\UserName\AppData\Local\Google\Chrome\User Data\Default
Everything is working fine also file download, no matter which settings/flag I use.

I hope somebody can investigate further this strange behaviour and give us a suitable solution.

Devendra Raju

unread,
Mar 28, 2023, 10:28:18 AM3/28/23
to ChromeDriver Users
I was able to resolve by specifying chrome profile (both default and user profile worked.)
ChromeOptions options = new ChromeOptions();
options.addArguments("--user-data-dir=C:\\Users\\username\\AppData\\Local\\Google\\Chrome\\User Data\\Profile 1");
//options.addArguments("--user-data-dir=C:\\Users\\username\\AppData\\Local\\Google\\Chrome\\User Data\\Default");
WebDriver driver = new ChromeDriver(options); 

This worked for me with Selenium 4.8.2, Chromedriver version '111.0.5563.64' and Chrome browser '111.0.5563.147'

tomai moneyhon

unread,
Mar 30, 2023, 3:34:15 AM3/30/23
to ChromeDriver Users
This is very odd to me because I'm getting the same issues you have with headless mode when I am not using headless mode....

it seems that the issue is that the chromedriver isn't creating a new session of chrome, instead, it tries to use the existing one. 

Waiza Waqar

unread,
Apr 4, 2023, 7:22:51 AM4/4/23
to ChromeDriver Users
where do i write this piece of code

Gábor Dömös

unread,
Apr 5, 2023, 4:07:13 AM4/5/23
to ChromeDriver Users
I was able to resolve by specifying chrome profile (both default and user profile worked.)
ChromeOptions options = new ChromeOptions();
options.addArguments("--user-data-dir=C:\\Users\\username\\AppData\\Local\\Google\\Chrome\\User Data\\Profile 1");
//options.addArguments("--user-data-dir=C:\\Users\\username\\AppData\\Local\\Google\\Chrome\\User Data\\Default");
WebDriver driver = new ChromeDriver(options); 

It haven't solved my issue, although the new Chrome instance was opened as a separate browser, but nothing happened. I was not able to navigate to any page. I've tried to set up the remote debugging port as well, but did not help.
[1680681680.801][INFO]: [6d07411e6f3b6bee92bcebf33fdd8c7a] RESPONSE InitSession ERROR unknown error: Chrome failed to start: exited normally.

  (unknown error: DevToolsActivePort file doesn't exist)

Devesh Kumar

unread,
Apr 7, 2023, 1:56:46 AM4/7/23
to ChromeDriver Users
Hi All I am using the below code.

ChromeOptions option = new ChromeOptions();

         

            if (headlessFlag)

            {

                option.AddArgument("--headless");

            }

            //option.AddArgument("--remote-debugging-port=*");

            option.AddArgument("no-sandbox");

                           option.AddArgument("--remote-debugging-port=9222");

            option.AddArgument("-incognito");


the above code launch the browser successfully, but not be able to execute in parallel.

Also some time it facing issue with controls.


can someone help me to lunch the browser and that is compatible to execute in parallel


if I remove 

 option.AddArgument("--remote-debugging-port=9222");


then browser launch with data no url is open.




Devesh Kumar

unread,
Apr 7, 2023, 2:00:56 AM4/7/23
to ChromeDriver Users
I have update my Chrome driver and Chrome to 112 , but facing the same issue.

Salome Bozhadze

unread,
Apr 7, 2023, 3:24:20 AM4/7/23
to ChromeDriver Users
i have same problem from morning, there is some solution?

Sadakar Pochampalli

unread,
Apr 21, 2023, 8:18:59 AM4/21/23
to ChromeDriver Users
We are facing the same issue with jdk 11 and chrome 112 , Did any one get through this ? 

[RemoteTestNG] detected TestNG version 7.0.1
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
BeforeAll - This statement printed before all scenarios from Cucumber

.....
Starting ChromeDriver 111.0.2345.49 (bd2a7bcb881c11e8cfe3078709382934e3916914-refs/branch-heads/5615@{#936}) on port 60352

Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
      org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: unknown error: Chrome failed to start: exited normally.
  (unknown error: DevToolsActivePort file doesn't exist)
  (The process started from chrome location C:\Program Files (x86)\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
Build info: version: '4.1.0', revision: '87802e897b'
System info: host: 'DESKTOP-K2OCJ36', ip: '10.2222.193.111', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.6'
Driver info: org.openqa.selenium.chrome.ChromeDriver
Command: [null, newSession {capabilities=[Capabilities {acceptInsecureCerts: true, browserName: chrome, goog:chromeOptions: {args: [--remote-allow-origins=*, --ignore-certificate-errors], extensions: []}}], desiredCapabilities=Capabilities {acceptInsecureCerts: true, acceptSslCerts: true, browserName: chrome, goog:chromeOptions: {args: [--remote-allow-origins=*, --ignore-certificate-errors], extensions: []}}}]
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:84)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:62)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:156)
at org.openqa.selenium.remote.service.DriverCommandExecutor.invokeExecute(DriverCommandExecutor.java:164)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:139)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:559)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:246)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:168)
at org.openqa.selenium.chromium.ChromiumDriver.<init>(ChromiumDriver.java:108)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:104)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:91)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:80)
at com.test.common.Hooks.before(Hooks.java:74)

  ...
  .....
      java.lang.NullPointerException: Cannot invoke "org.openqa.selenium.TakesScreenshot.getScreenshotAs(org.openqa.selenium.OutputType)" because "com.test.common.Hooks.driver" is null
at com.test.common.Hooks.takeScreenShotOnFailedScenario(Hooks.java:106)

      java.lang.NullPointerException: Cannot invoke "org.openqa.selenium.WebDriver.quit()" because "com.test.common.Hooks.driver" is null
at com.test.common.Hooks.quitDriver(Hooks.java:98)

Email Code is skipped for testing purposes
AfterAll - This statement printed after all scenarios from Cucumber
┌──────────────────────────────────────────────────────────────────────────┐
│ View your Cucumber Report at:                                            │
https://reports.cucumber.io/reports/e2788bb9-3355-40b9-84db-1fdc73b4e731
│                                                                          │
│ This report will self-destruct in 24h.                                   │
│ Keep reports forever: https://reports.cucumber.io/profile                │
└──────────────────────────────────────────────────────────────────────────┘
Reply all
Reply to author
Forward
0 new messages