redhat-developer / redhat-developer/vscode-java

Strange dump files occur frequently when I open a Java file

Open
#1,673 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.3k
Forks
546
Avg merge
20h 1m
Merged PRs (30d)
11

Description

I am using VSCode Remote on WSL. The JDK version I am using is OpenJDK11 with Eclipse OpenJ9 VM.

Often when I open a Java file, some dump files will appear in the folder the Java file is in, together with the following VSCode Language Support for Java output.

j9shr.1012   *   ** ASSERTION FAILED ** at CompositeCache.cpp:2094: ((this->_commonCCInfo->oldWriterCount == _theca->writerCount))

Whenever these dump files appear, the run & debug button will disappear from above the main function of the Java file.

Environment
  • Operating System: Windows 10 Pro Build 19041 Arch Linux (on the Windows Subsystem for Linux)
  • JDK version: OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.8+10) Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.21.0, JRE 11 Linux amd64-64-Bit Compressed References 20200715_697 (JIT enabled, AOT enabled)
  • Visual Studio Code version: 1.50.1 d2e414d9e4239a252d1ab117bd7067f125afd80a
  • Java extension version: Java Extension Pack 0.10.0 Language Support for Java 0.69.0
Steps To Reproduce
  1. Enter code . in the folder where the Java file is placed in
  2. In VSCode, open the Java file
  3. If no dump file appear, close VSCode and start again from step 1

Please attach a sample project reproducing the error
QuickStart.zip

Please attach logs
ERR Connection got disposed.: Error: Connection got disposed.
at Object.dispose (/home/kkd/.vscode-server/extensions/redhat.java-0.69.0/dist/extension.js:1:80706)
at Object.dispose (/home/kkd/.vscode-server/extensions/redhat.java-0.69.0/dist/extension.js:1:140393)
at /home/kkd/.vscode-server/extensions/redhat.java-0.69.0/dist/extension.js:1:137049
at processTicksAndRejections (internal/process/task_queues.js:94:5)

Current Result

Very possibly some dump files with file name javacore.date_and_time.txt or Snap.date_and_time.trc, error messages in VSCode output

Expected Result

No dump file and no error message in VSCode output

Additional Informations

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the report with QuickStart.zip under VSCode Remote on WSL using OpenJDK 11 with Eclipse OpenJ9, following the listed steps. Inspect the generated javacore or Snap files and the Language Support for Java output, including the extension.js connection error; done means no dump files or error message and the run/debug button remains available.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, linux, vscode
Domain
devtools, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.