-
Notifications
You must be signed in to change notification settings - Fork 73
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
[🚫 Bug] "WebDriverError: unknown error: Chrome failed to start: exited abnormally" issue #485
Comments
@djelinek This is happening on every CI run for me when I update to 5.7.0, maybe that is related? |
@infiniteregrets is it hapenning for you also on macOS as describes this issue? |
oh oops, its on an ubuntu runner in the ci as described by this comment #214 (comment), do you want me to open another issue? |
no necessarily, thanks. I think it will be somehow connected anyway. |
hi @djelinek, is this issue planned for resolution any time soon? if not, let me know ill start looking for a fix as its making our ci very flaky, happens only 5.7.0 for me, so probably need to do git bisect there |
@infiniteregrets Hello, I can plan for NEXT release but anyway summer is coming and I cannot ensure when I will be able to investigate more and provide some solution. This problem is a bit tricky, But I am a bit curious why it is happening so often to you because I did not any other feedback someone else is having problems, neither our own CI with tests. Could you provide me a bit more info about extension and your CI environment in general? (into DM if you will feel more comfortable to share that information). Also what nodeJS are you using? Node 16? (which is the only supported currently) Note: Could you please also test with latest vscode-extension-tester 5.8.0 ? |
Hi @djelinek if you can plan it for the NEXT then it would be great! The extension is available here https://github.com/metalbear-co/mirrord-vscode a failed run with 5.8 https://github.com/metalbear-co/mirrord-vscode/actions/runs/5641704113/job/15280194281#step:8:137 |
Also I am trying to use my fork, but cant understand how to make it work, keep getting Cannot find module 'vscode-extension-tester' or its corresponding type declarations when I add |
I had the same problem on remote linux machine (I connected to it via vscode remote ssh ext). Don't be me and don't forget to connect to the remote machine via, for example, vncserver (it fixed the problem). Otherwise, how will the display be created if it has not been configured in advance... |
@djelinek any updates on this? |
Hello, actually not much..
but I did not have find out yet the invalid socket file is coming from... |
i have pretty much tried all of these, no progress.. were you able to run git bisect? since this happens somewhere in a commit bw 5.6.0 to 5.7.0 |
tbh I missed somehow this information that we know this issue started to occurs between some versions.. let me check properly what could change! thank you @infiniteregrets ! |
no progress there. I have looked into changes between 5.6.0 and 5.7.0 releases and did not find related changes which would allow me to reproduce something. I have opened bug on Selenium project, so you can track and comment also there - issue #12947 |
okey... I have finally found something promising because for me it started to fail also for vscode unit tests with similar issue - see microsoft/vscode#86382 I have tested locally for our internal could you please verify @infiniteregrets if you will change the storage of your tests to e.g. |
@djelinek this is how I ran my tests:
changed the storage to |
@infiniteregrets just one thing before I will continue... could you please try to rerun you pipeline with NodeJS version 18.15.0 at max? because I saw your pipeline is running with 18.18.1 (latest LTS) which is currently not supported by vscode-extension-tester (neither selenium-webdriver) |
on it! |
@djelinek I switched to latest on the project and it seems to be working now. Thank you so much for your help.
Sorry I missed this one while testing earlier |
@djelinek sorry I think it passed in one run but it failed in other: i am using latest as my node version |
not the latest.. you need to use NodeJS v18.15.x |
HI @djelinek I am seeing this issue in Linux Ubuntu 22.04
0 passing (243ms)
Unable to run tests as it fails at launching browser. Can you help fix this as we have this on jenkins pipeline for our project validation. Thanks, |
I'm evaluating vscode-extension-tester, and it looks promising, but I'm running into a few issues. Namely, I can run (more or less) once, but subsequent attempts to run I get the error, "WebDriverError: unknown error: Chrome failed to start: exited abnormally".
I searched for this issue, and I see that it's been reported in the past, but the issues have been closed. I've done a lot of A-B testing to try and troubleshoot this and narrow down the issue, but I'm still stumped. Here's what I'm experiencing...
After running
npm install --save-dev vscode-extension-tester
and then cloning vscode-extension-tester,I cd into
vscode-extension-tester/sample-projects/
When I ran
ls -ll
, onlyhelloworld-sample
is listed (this is important later)I then cd into
helloworld-sample
I then run
npm install
I then run
npm run ui-test
At this point, the resources were dowloaded and the tests started to run
I'm then presented with:
Issue 1: OK, this is a minor annoyance, but it would be nice if the repro had a LICENSE.md file, so I'm not prompted everytime I run.
I press Y and continue...
VS Code opens, and the tests run...
The "Get a view control and open its associated view" test passes, but...
Issue 2: the "Shows explorer view control (container)" test fails with the following error:
OK, at this point what I see in steps 8 and 11 are minor annoyances, but now, here's the issue...
npm run ui-test
again...Issue 3: This time, VS Code does not launch, and none of the tests run. In the console, I see this:
I spent a fair amount of time this afternoon trying to figure this out, and attempted things like deleting the files in test-resources, but what I found was this...
After ui-tests successfully runs (more or less) the first time, in
vscode-extension-tester/sample-projects
, if I runls -ll
, I get:So there's an extra file, named "helloworld-samp" that's being created.
I've found is that if I...
npm run ui-test
(first time)rm ../helloworld-samp
npm run ui-test
...that it works (well, the "Shows explorer view control (container)" test still fails, but at least I'm able to run and I don't get the "WebDriverError: unknown error: Chrome failed to start: exited abnormally" error.
...and then I repeat #2 and #3
Curious as to what the "s" file attribute is, I read here (https://askubuntu.com/questions/919952/what-does-the-s-in-srwxr-xr-x-in-the-ls-output-mean) that the "s" stands for socket. So it looks like during the test, something is opening a socket called "helloworld-samp", saving it in vscode-extension-tester/sample-projects, and then not cleaning up.
If it matters, I'm running this locally on a mac OSX x64 machine.
The text was updated successfully, but these errors were encountered: