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

JDT - Stuck on "Configuring Lang. Server". Thread Dump/JFR profile shows threads in wait state, no activity #2049

Closed
GavinRay97 opened this issue Aug 1, 2021 · 2 comments

Comments

@GavinRay97
Copy link

GavinRay97 commented Aug 1, 2021

I have a Quarkus extension project which seems to be the only project this is (and has ever) happening with.
The language server never fully initializes.

Almost everything works. What doesn't work:

  • Syntax highlighting on imports
  • Formatting, sort imports on save, other similar action
  • Ctrl + Click to jump to definition on non JRE methods (any external libraries)
👇 CLICK TO SEE SCREENSHOTS 👇

image
image

I tried to debug to the limits my (very limited) experience with Java/the JVM would allow

Investigated with VisualVM -- thread dumps, profiling, and JFR.
Appears like the application + over half of it's threads are in a wait state

Here is the project source and a very lengthy JFR recording:

NOTE: Also why in the JFR snapshot does the JDT server persistently send network requests to a local docker network URL?

Environment
  • Operating System:

    • Edition	Windows 11 Home
      Version	21H2
      Installed on	‎7/‎11/‎2021
      OS build	22000.100
      Experience	Windows Feature Experience Pack 421.18901.0.3
      
  • JDK version:

    • $ java --version
      openjdk 16.0.2 2021-07-21
      OpenJDK Runtime Environment GraalVM CE 21.2.0-dev (build 16.0.2+4-jvmci-21.2-b02)
      OpenJDK 64-Bit Server VM GraalVM CE 21.2.0-dev (build 16.0.2+4-jvmci-21.2-b02, mixed mode, sharing)
  • Visual Studio Code version:

    • image
  • Java extension version:

    • v0.80.0
Steps To Reproduce
  1. Maybe have my exact environment?
  2. Try to open the project
  3. Or don't. I wouldn't blame you. This seems like a nightmare to try to reproduce and maybe not worth the effort

[Please attach a sample project reproducing the error]
Please attach logs

Additional Informations
  • Main thread just waiting indefinitely I think is what this is saying?

    • image
  • From JFR snapshot, it seems to be stuck in a wait, here in the callstack:

    • image
    • image
  • Also, for some reason there is a bunch of network activity to a local Docker network. What's going on with that?

    • image
    • image
@snjeza
Copy link
Contributor

snjeza commented Aug 1, 2021

Java extension version:
v0.80.0

@GavinRay97 Could you check #2020 (comment) ?

@GavinRay97
Copy link
Author

That looks like the exact problem, thank you!!

Specifically, these lines in diff appear to be the fix:

image

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

2 participants