vscode-kotlin icon indicating copy to clipboard operation
vscode-kotlin copied to clipboard

java.lang.OutOfMemoryError: Java heap space

Open canda opened this issue 1 year ago • 2 comments

Description

I'm not sure how to repro. I'm trying to use this extension in a big private repository. When I start vscode, the cpu (mac intel) goes brrrr, after a while, the kotlin output shows the error detailed bellow. The go to definition does command does not work (cmd+click triggers an infinite blue loading animation at the top of the editor, but nothing else happens).

Extension version

VSCode 1.76.2 fwcd.kotlin v0.2.26

Additional context

kotlin output

[Info  - 8:10:05 AM] async3    Updating symbol index...
[Info  - 8:10:05 AM] async3    Updated symbol index in 0 ms! (1305 symbol(s))
[Info  - 8:10:17 AM] async3    Updating symbol index...
[Info  - 8:10:17 AM] async3    Updated symbol index in 0 ms! (1315 symbol(s))
[Error - 8:12:56 AM] org.jetbrains.kotlin.util.KotlinFrontEndException: Front-end Internal error: Failed to analyze declaration Reviews
File being compiled: (32,1) in //Users/user/projects/.../reviews.kt
The root cause java.lang.OutOfMemoryError was thrown at: unknown
[Error - 8:12:56 AM] 	at org.jetbrains.kotlin.resolve.ExceptionWrappingKtVisitorVoid.visitDeclaration(ExceptionWrappingKtVisitorVoid.kt:43)
...
[Error - 8:12:56 AM] 	at java.base/java.lang.Thread.run(Thread.java:832)
[Error - 8:12:56 AM] Caused by: java.lang.OutOfMemoryError: Java heap space
[Error - 8:14:49 AM] org.jetbrains.kotlin.util.KotlinFrontEndException: Front-end Internal error: Failed to analyze declaration RefreshmentsOfferReviewGroup
[Error - 8:14:49 AM] 	at org.jetbrains.kotlin.resolve.ExceptionWrappingKtVisitorVoid.visitDeclaration(ExceptionWrappingKtVisitorVoid.kt:43)
...
[Error - 8:14:49 AM] 	at java.base/java.lang.Thread.run(Thread.java:832)
[Error - 8:14:49 AM] Caused by: java.lang.OutOfMemoryError: Java heap space

canda avatar Mar 23 '23 15:03 canda