redhat-developer / redhat-developer/vscode-java

Java extensions crashing upon open *.java file

Đang mở
#2,635 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

extension-start
Ngôn ngữ chính
TypeScript
Star
2.3k
Fork
546
Merge trung bình
20 giờ 1 phút
Pull request đã merge (30 ngày)
11

Mô tả

[provide a description of the issue]
The Language Support for Java server crashed 5 times in the last 3 minutes. The server will not be restarted.

Environment
  • Operating System: Windows 11 Pro 21H2
  • JDK version: openjdk 18.0.2 2022-07-19
  • Visual Studio Code version: 1.70.2
  • Java extension version: v1.9.0
Steps To Reproduce
  1. [step 1] Open Visual Studio Code
  2. [step 2] Open any *.java file

[Please attach a sample project reproducing the error]

class Main
{
	public static void main(String[] args)
	{
		System.out.println("Hello World!");
	}
}

Please attach logs

{
  message: "Use the JDK from 'JAVA_HOME,PATH' as the initial default project JDK.",
  level: 'info',
  timestamp: '2022-08-18 17:07:23.433'
}
{
  message: 'Starting Java server with: c:\\Users\\Otávio Augusto Silva\\.vscode\\extensions\\redhat.java-1.9.0-win32-x64\\jre\\17.0.3-win32-x86_64\\bin\\java --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.fs=ALL-UNNAMED -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Djava.import.generatesMetadataFilesAtProjectRoot=false -Dfile.encoding=utf8 -DwatchParentProcess=false -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -javaagent:c:\\Users\\Otávio Augusto Silva\\.vscode\\extensions\\redhat.java-1.9.0-win32-x64\\lombok\\lombok-1.18.24.jar -jar c:\\Users\\Otávio Augusto Silva\\.vscode\\extensions\\redhat.java-1.9.0-win32-x64\\server\\plugins\\org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar -configuration c:\\Users\\Otávio Augusto Silva\\AppData\\Roaming\\Code\\User\\globalStorage\\redhat.java\\1.9.0\\config_ss_win -data c:\\Users\\Otávio Augusto Silva\\AppData\\Roaming\\Code\\User\\workspaceStorage\\092e9f14627920ce78f64c2dbd9c572e\\redhat.java\\ss_ws',
  level: 'info',
  timestamp: '2022-08-18 17:07:23.477'
}
{
  message: 'Starting Java server with: c:\\Users\\Otávio Augusto Silva\\.vscode\\extensions\\redhat.java-1.9.0-win32-x64\\jre\\17.0.3-win32-x86_64\\bin\\java --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.fs=ALL-UNNAMED -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Djava.import.generatesMetadataFilesAtProjectRoot=false -Dfile.encoding=utf8 -DwatchParentProcess=false -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -javaagent:c:\\Users\\Otávio Augusto Silva\\.vscode\\extensions\\redhat.java-1.9.0-win32-x64\\lombok\\lombok-1.18.24.jar -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=c:\\Users\\Otávio Augusto Silva\\AppData\\Roaming\\Code\\User\\workspaceStorage\\092e9f14627920ce78f64c2dbd9c572e\\redhat.java -jar c:\\Users\\Otávio Augusto Silva\\.vscode\\extensions\\redhat.java-1.9.0-win32-x64\\server\\plugins\\org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar -configuration c:\\Users\\Otávio Augusto Silva\\AppData\\Roaming\\Code\\User\\globalStorage\\redhat.java\\1.9.0\\config_win -data c:\\Users\\Otávio Augusto Silva\\AppData\\Roaming\\Code\\User\\workspaceStorage\\092e9f14627920ce78f64c2dbd9c572e\\redhat.java\\jdt_ws',
  level: 'info',
  timestamp: '2022-08-18 17:07:23.629'
}
{
  message: '*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message find class on InstrumentationImpl failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 494\n' +
    '*** java.lang.instrument ASSERTION FAILED ***: "result" with message instrumentation instance creation failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 402\n',
  level: 'info',
  timestamp: '2022-08-18 17:07:23.654'
}
{
  message: 'The Language Support for Java (Syntax Server) server crashed and will restart.',
  level: 'error',
  timestamp: '2022-08-18 17:07:23.657'
}
{
  message: '[Info  - 17:07:23] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2022-08-18 17:07:23.657'
}
{
  message: '*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message find class on InstrumentationImpl failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 494\n' +
    '*** java.lang.instrument ASSERTION FAILED ***: "result" with message instrumentation instance creation failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 402\n',
  level: 'info',
  timestamp: '2022-08-18 17:07:23.818'
}
{
  message: 'The Language Support for Java server crashed and will restart.',
  level: 'error',
  timestamp: '2022-08-18 17:07:23.821'
}
{
  message: '[Info  - 17:07:23] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2022-08-18 17:07:23.821'
}
{
  message: '*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message find class on InstrumentationImpl failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 494\n' +
    '*** java.lang.instrument ASSERTION FAILED ***: "result" with message instrumentation instance creation failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 402\n',
  level: 'info',
  timestamp: '2022-08-18 17:07:23.837'
}
{
  message: 'The Language Support for Java (Syntax Server) server crashed and will restart.',
  level: 'error',
  timestamp: '2022-08-18 17:07:23.840'
}
{
  message: '[Info  - 17:07:23] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2022-08-18 17:07:23.840'
}
{
  message: '*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message find class on InstrumentationImpl failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 494\n' +
    '*** java.lang.instrument ASSERTION FAILED ***: "result" with message instrumentation instance creation failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 402\n',
  level: 'info',
  timestamp: '2022-08-18 17:07:23.995'
}
{
  message: 'The Language Support for Java server crashed and will restart.',
  level: 'error',
  timestamp: '2022-08-18 17:07:23.997'
}
{
  message: '[Info  - 17:07:23] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2022-08-18 17:07:23.998'
}
{
  message: '*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message find class on InstrumentationImpl failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 494\n' +
    '*** java.lang.instrument ASSERTION FAILED ***: "result" with message instrumentation instance creation failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 402\n',
  level: 'info',
  timestamp: '2022-08-18 17:07:24.012'
}
{
  message: 'The Language Support for Java (Syntax Server) server crashed and will restart.',
  level: 'error',
  timestamp: '2022-08-18 17:07:24.015'
}
{
  message: '[Info  - 17:07:24] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2022-08-18 17:07:24.015'
}
{
  message: '*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message find class on InstrumentationImpl failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 494\n' +
    '*** java.lang.instrument ASSERTION FAILED ***: "result" with message instrumentation instance creation failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 402\n',
  level: 'info',
  timestamp: '2022-08-18 17:07:24.158'
}
{
  message: 'The Language Support for Java server crashed and will restart.',
  level: 'error',
  timestamp: '2022-08-18 17:07:24.161'
}
{
  message: '[Info  - 17:07:24] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2022-08-18 17:07:24.162'
}
{
  message: '*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message find class on InstrumentationImpl failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 494\n' +
    '*** java.lang.instrument ASSERTION FAILED ***: "result" with message instrumentation instance creation failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 402\n',
  level: 'info',
  timestamp: '2022-08-18 17:07:24.174'
}
{
  message: 'The Language Support for Java (Syntax Server) server crashed and will restart.',
  level: 'error',
  timestamp: '2022-08-18 17:07:24.176'
}
{
  message: '[Info  - 17:07:24] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2022-08-18 17:07:24.176'
}
{
  message: '*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message find class on InstrumentationImpl failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 494\n' +
    '*** java.lang.instrument ASSERTION FAILED ***: "result" with message instrumentation instance creation failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 402\n',
  level: 'info',
  timestamp: '2022-08-18 17:07:24.325'
}
{
  message: 'The Language Support for Java server crashed and will restart.',
  level: 'error',
  timestamp: '2022-08-18 17:07:24.327'
}
{
  message: '[Info  - 17:07:24] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2022-08-18 17:07:24.328'
}
{
  message: '*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message find class on InstrumentationImpl failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 494\n' +
    '*** java.lang.instrument ASSERTION FAILED ***: "result" with message instrumentation instance creation failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 402\n',
  level: 'info',
  timestamp: '2022-08-18 17:07:24.339'
}
{
  message: 'The Language Support for Java (Syntax Server) server crashed 5 times in the last 3 minutes. The server will not be restarted.',
  level: 'error',
  timestamp: '2022-08-18 17:07:24.341'
}
{
  message: '[Error - 17:07:24] Connection to server got closed. Server will not be restarted.',
  level: 'info',
  timestamp: '2022-08-18 17:07:24.341'
}
{
  message: '*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message find class on InstrumentationImpl failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 494\n' +
    '*** java.lang.instrument ASSERTION FAILED ***: "result" with message instrumentation instance creation failed at e:\\jenkins\\tmp\\workspace\\build\\src\\src\\java.instrument\\share\\native\\libinstrument\\JPLISAgent.c line: 402\n',
  level: 'info',
  timestamp: '2022-08-18 17:07:24.484'
}
{
  message: 'The Language Support for Java server crashed 5 times in the last 3 minutes. The server will not be restarted.',
  level: 'error',
  timestamp: '2022-08-18 17:07:24.487'
}
{
  message: '[Error - 17:07:24] Connection to server got closed. Server will not be restarted.',
  level: 'info',
  timestamp: '2022-08-18 17:07:24.488'
}

Current Result
Expected Result
Additional Informations

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện sự cố trên Windows 11 với JDK 18, VS Code 1.70.2 và tiện ích mở rộng Java v1.9.0 bằng cách mở ví dụ Main.java được cung cấp. Kiểm tra các nhật ký khởi động của máy chủ ngôn ngữ Java, đặc biệt là các lỗi assertion của java.lang.instrument. Hoàn tất khi việc mở một tệp .java không còn khiến máy chủ liên tục bị crash.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java, typescript
Lĩnh vực
devtools
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.