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

[wasm-browser] unknown error: Chrome failed to start: exited abnormally. (chrome not reachable) #43955

Closed
eerhardt opened this issue Oct 28, 2020 · 8 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-Infrastructure-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' test-bug Problem in test source code (most likely)

Comments

@eerhardt
Copy link
Member

https://dev.azure.com/dnceng/public/_build/results?buildId=868621&view=logs&j=108d2c4a-8a62-5a58-8dad-8e1042acc93c&t=09a92b4c-3493-52a9-1172-0680b62c9e30

https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-43803-merge-48e510544eab4b8981/Microsoft.Extensions.DependencyModel.Tests/console.b31c959b.log?sv=2019-07-07&se=2020-11-17T12%3A40%3A20Z&sr=c&sp=rl&sig=hsagbbZGP1WmiA61t%2FZKutJ9xJt7ffIS82QRvSzuJbU%3D

Starting ChromeDriver 84.0.4147.0 (ff714bcb10c3356b1b1b2819148507a34fa4b1f8-refs/heads/master@{#768968}) on port 45939
Only local connections are allowed.
Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
ChromeDriver was started successfully.
[12:41:07] crit: OpenQA.Selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally.
                   (chrome not reachable)
                   (The process started from chrome location /home/helixbot/work/9FCD08EB/p/chrome-linux/chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
                    at OpenQA.Selenium.Remote.RemoteWebDriver.UnpackAndThrowOnError(Response errorResponse)
                    at OpenQA.Selenium.Remote.RemoteWebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
                    at OpenQA.Selenium.Remote.RemoteWebDriver.StartSession(ICapabilities desiredCapabilities)
                    at OpenQA.Selenium.Remote.RemoteWebDriver..ctor(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities)
                    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 Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmTestBrowserCommand.GetChromeDriver() in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmTestBrowserCommand.cs:line 90
                    at Microsoft.DotNet.XHarness.CLI.Commands.Wasm.WasmTestBrowserCommand.InvokeInternal(ILogger logger) in /_/src/Microsoft.DotNet.XHarness.CLI/Commands/WASM/Browser/WasmTestBrowserCommand.cs:line 53
                    at Microsoft.DotNet.XHarness.Common.CLI.Commands.XHarnessCommand.Invoke(IEnumerable`1 arguments) in /_/src/Microsoft.DotNet.XHarness.Common/CLI/Commands/XHarnessCommand.cs:line 120
XHarness exit code: 1001
XHarness artifacts: ./xharness-output
@eerhardt eerhardt added arch-wasm WebAssembly architecture test-bug Problem in test source code (most likely) blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' area-Infrastructure-mono labels Oct 28, 2020
@ghost
Copy link

ghost commented Oct 28, 2020

Tagging subscribers to this area: @directhex
See info in area-owners.md if you want to be subscribed.

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Oct 28, 2020
@directhex
Copy link
Contributor

Tagging @radical

@lewing
Copy link
Member

lewing commented Oct 28, 2020

This happens from time to time when selenium is trying to start a chrome instance, it isn't clear when or why.
http://chromedriver.chromium.org/help/chrome-doesn-t-start suggests trying --no-sandbox as an option, that is probably worth trying.

lewing added a commit to lewing/xharness that referenced this issue Oct 28, 2020
@lewing lewing removed the untriaged New issue has not been triaged by the area owner label Oct 28, 2020
@lewing
Copy link
Member

lewing commented Oct 28, 2020

To be clear I don't think this is a permissions problem at all, it looks like some sort of race at startup I'm grasping at the nearest straw while we look into it more.

radical added a commit to radical/xharness that referenced this issue Oct 29, 2020
When starting chrome via selenium+chromedriver, it seems to crash
inexplicably (dotnet/runtime#43955).
As a workaround, let's retry that a few times.
@steveisok
Copy link
Member

According to the Kusto magician, this has happened 21 times in the last month. 17 out of 21 times on PR's and 4 on master.

@akoeplinger
Copy link
Member

This doesn't sound a lot fortunately, the total number of runs must be in the hundreds right?

@steveisok
Copy link
Member

I messed up on the first count. 980 total runs.

akoeplinger pushed a commit to dotnet/xharness that referenced this issue Oct 30, 2020
)

* [wasm][test-browser] Retry launching chrome if it fails on startup

When starting chrome via selenium+chromedriver, it seems to crash
inexplicably (dotnet/runtime#43955).
As a workaround, let's retry that a few times.

* [wasm][test-browser] Enable verbose driver logging

.. and remove `--no-sandbox`, as that seems to be discouraged in the
docs.
@akoeplinger
Copy link
Member

We made a fix in xharness (dotnet/xharness#343) and haven't seen this issue since. Closing.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Infrastructure-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' test-bug Problem in test source code (most likely)
Projects
None yet
Development

No branches or pull requests

7 participants