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

Chromedriver stops immediately after launch with vscode 1.51.0 and 1.51.1 #204

Closed
dcermak opened this issue Dec 1, 2020 · 6 comments
Closed

Comments

@dcermak
Copy link
Contributor

dcermak commented Dec 1, 2020

My test pipeline using vscode-extension-tester has recently been experiencing some problems: vscode simply dies immediately after being launched after about a second. I have tried to debug this issue a bit, but I have been only able to find out that this issue occurs with vscode 1.51.0 and 1.51.1. The previous versions work just fine.

Also, vscode does not appear to really crash. At least there is no coredump or anything else that would indicate that. Instead chromedriver appears to simply just stop. I have tried to increase the logging level of chromedriver via the logLevel parameter to setupAndRunTests, but the log unfortunately includes no indication what would be the error besides:

[11:48:53 AM][DEBUG] DevTools WebSocket Command: Runtime.evaluate (id=19) 847CC0718C5C69DF3B2DC1825469B2B5 {
   "expression": "1"
}
[11:48:53 AM][DEBUG] DevTools WebSocket Event: DOM.inlineStyleInvalidated 847CC0718C5C69DF3B2DC1825469B2B5 {
   "nodeIds": [ 14 ]
}
[11:48:53 AM][DEBUG] DevTools WebSocket Response: Runtime.evaluate (id=19) 847CC0718C5C69DF3B2DC1825469B2B5 {
   "result": {
      "description": "1",
      "type": "number",
      "value": 1
   }
}
[11:48:53 AM][INFO] Done waiting for pending navigations. Status: ok
[11:48:53 AM][INFO] [e4afa17e37ee80eb43a0a4c1b6dcc33a] RESPONSE FindElements [ {
   "ELEMENT": "0.6390581574867937-1"
} ]
[11:48:56 AM][INFO] [e4afa17e37ee80eb43a0a4c1b6dcc33a] COMMAND FindElement {
   "using": "css selector",
   "value": "html"
}
[11:48:56 AM][DEBUG] DevTools HTTP Request: http://localhost:34341/json/list
[11:48:56 AM][DEBUG] DevTools HTTP Request failed
[11:48:56 AM][INFO] [e4afa17e37ee80eb43a0a4c1b6dcc33a] RESPONSE FindElement ERROR chrome not reachable
  (Session info: chrome=83.0.4103.122)

which just indicates that the chromedriver stops for some reason.

Any idea how to debug this further?

@jrichter1
Copy link
Collaborator

@dcermak can you share the environment this is happening on? I'd like to replicate the circumstances, see if there is a way out of this.

@dcermak
Copy link
Contributor Author

dcermak commented Dec 8, 2020

Sorry for forgetting about this completely… This is in my testing environment for the open-build-service-connector. In theory you should get the same thing as I, if you run yarn run test:ui in a clone of the repository (unfortunately I still have a bunch of local changes that I did not push yet).

@dcermak
Copy link
Contributor Author

dcermak commented Jan 20, 2021

So, I've come back to this and ran my ui tests on a fresh checkout from the master branch and the same issue is still there: the ui tests fail with vscode newer than 1.51.0.

One thing that I'm wondering about: could this be related to me using webpack to bundle my extension? I don't think it should, but I just say #214 and the extension mentioned there uses gulp for minification as far as I know.

@dcermak
Copy link
Contributor Author

dcermak commented Jan 20, 2021

This actually appears to be a crash in vscode that only occurs under chromedriver: microsoft/vscode#114635

@dcermak
Copy link
Contributor Author

dcermak commented Feb 1, 2021

I have resolved this issue, it was caused by me messing with LD_PRELOAD a bit too much.

@dcermak dcermak closed this as completed Feb 1, 2021
@infiniteregrets
Copy link
Contributor

I have resolved this issue, it was caused by me messing with LD_PRELOAD a bit too much.

hey @dcermak, I am currently facing the problem described in #214 and we are using webpack and LD_PRELOAD to load into the process refer https://github.com/metalbear-co/mirrord/blob/main/vscode-ext/src/extension.ts . Could you please describe how did you end up fixing your issue? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants