-
-
Notifications
You must be signed in to change notification settings - Fork 399
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
Request textDocument/codeAction failed #900
Comments
Due to the error report |
I just enabled
WSL2 memory usage
Log
|
In order to exclude that WSL2 may have a memory leak problem, could your try to use volar on windows without WSL2 to confirm? By default, the upper limit of the memory of a single node process is 2GB, here has related comment #862 (comment). |
I have a feeling this issue is with recent TS releases microsoft/vscode#140090. |
I can not migrate the existing project environment from WSL2 to Windows (too much work), but I think the issue related to nodejs memory usage. Reference to #862, I added the nodejs settings in my
Default settings, nodejs is using around 2GB.
After adjust the settings, nodejs is using around 4GB
|
Since there is no repo case I can't check if this is a volar bug, and there is already a solution, I will close this issue. |
Hey folks, I know its not helpful to say "me too" but I'm encountering a similar issue when working in a monorepo. sadly restarting the language server or lower power mode does not fix it |
may be too many project files in the workspace, or too many projects opened at the same time by vscode |
I really don't think "you're using it wrong" is the answer. Vetur doesn't do this. No other plugin I use crashes with OOM |
Same problem here. Waiting for fix |
Unfortunately I can't check this issue, if anyone can provide a repro case I will actively resolve it. |
@johnsoncodehk I'm experiencing this with this with the branch An older version of volar worked without issues with vscode 1.65.2 and after updating to 1.66.2, it does not anymore. Not the older volar version neither the newest one. I'm using code-server so it's not like I can update the vscode version to 1.67.0. When I was using vscode 1.65.2, I had 2GB of memory on my machine and it worked without a hassle in normal mode. Now (1.66.2) I added additional 2GB to my remote machine and it consumes whole 4GB in normal mode and 3GB in low power mode. Even though I have a 1GB memory left free, it still crashes. Volar - API logsload volar.config.js failed in /home/code/projects/funkwhale/front [Info - 5:06:40 PM] Connection to server got closed. Server will restart. [Error - 5:06:40 PM] Request textDocument/codeLens failed. Error: Connection got disposed. at Object.dispose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:5772:26) at Object.dispose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:11282:35) at LanguageClient.handleConnectionClosed (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:13637:38) at LanguageClient.handleConnectionClosed (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:16837:15) at closeHandler (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:13625:16) at CallbackList.invoke (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4211:35) at Emitter.fire (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4262:34) at closeHandler (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4997:24) at CallbackList.invoke (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4211:35) at Emitter.fire (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4262:34) at IPCMessageReader.fireClose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4404:27) at ChildProcess. (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:6039:45) at ChildProcess.emit (node:events:539:35) at maybeClose (node:internal/child_process:1092:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) [Error - 5:06:40 PM] Request textDocument/codeLens failed. Error: Connection got disposed. at Object.dispose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:5772:26) at Object.dispose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:11282:35) at LanguageClient.handleConnectionClosed (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:13637:38) at LanguageClient.handleConnectionClosed (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:16837:15) at closeHandler (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:13625:16) at CallbackList.invoke (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4211:35) at Emitter.fire (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4262:34) at closeHandler (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4997:24) at CallbackList.invoke (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4211:35) at Emitter.fire (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4262:34) at IPCMessageReader.fireClose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4404:27) at ChildProcess. (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:6039:45) at ChildProcess.emit (node:events:539:35) at maybeClose (node:internal/child_process:1092:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) [Error - 5:06:40 PM] Request textDocument/semanticTokens/range failed. Error: Connection got disposed. at Object.dispose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:5772:26) at Object.dispose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:11282:35) at LanguageClient.handleConnectionClosed (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:13637:38) at LanguageClient.handleConnectionClosed (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:16837:15) at closeHandler (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:13625:16) at CallbackList.invoke (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4211:35) at Emitter.fire (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4262:34) at closeHandler (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4997:24) at CallbackList.invoke (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4211:35) at Emitter.fire (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4262:34) at IPCMessageReader.fireClose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4404:27) at ChildProcess. (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:6039:45) at ChildProcess.emit (node:events:539:35) at maybeClose (node:internal/child_process:1092:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) [Error - 5:06:40 PM] Request textDocument/codeLens failed. Error: Connection got disposed. at Object.dispose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:5772:26) at Object.dispose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:11282:35) at LanguageClient.handleConnectionClosed (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:13637:38) at LanguageClient.handleConnectionClosed (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:16837:15) at closeHandler (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:13625:16) at CallbackList.invoke (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4211:35) at Emitter.fire (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4262:34) at closeHandler (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4997:24) at CallbackList.invoke (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4211:35) at Emitter.fire (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4262:34) at IPCMessageReader.fireClose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4404:27) at ChildProcess. (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:6039:45) at ChildProcess.emit (node:events:539:35) at maybeClose (node:internal/child_process:1092:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) [Error - 5:06:40 PM] Request textDocument/semanticTokens/range failed. Error: Connection got disposed. at Object.dispose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:5772:26) at Object.dispose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:11282:35) at LanguageClient.handleConnectionClosed (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:13637:38) at LanguageClient.handleConnectionClosed (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:16837:15) at closeHandler (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:13625:16) at CallbackList.invoke (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4211:35) at Emitter.fire (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4262:34) at closeHandler (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4997:24) at CallbackList.invoke (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4211:35) at Emitter.fire (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4262:34) at IPCMessageReader.fireClose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4404:27) at ChildProcess. (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:6039:45) at ChildProcess.emit (node:events:539:35) at maybeClose (node:internal/child_process:1092:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) [Error - 5:06:40 PM] Request textDocument/codeLens failed. Error: Connection got disposed. at Object.dispose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:5772:26) at Object.dispose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:11282:35) at LanguageClient.handleConnectionClosed (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:13637:38) at LanguageClient.handleConnectionClosed (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:16837:15) at closeHandler (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:13625:16) at CallbackList.invoke (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4211:35) at Emitter.fire (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4262:34) at closeHandler (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4997:24) at CallbackList.invoke (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4211:35) at Emitter.fire (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4262:34) at IPCMessageReader.fireClose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4404:27) at ChildProcess. (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:6039:45) at ChildProcess.emit (node:events:539:35) at maybeClose (node:internal/child_process:1092:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) [Error - 5:06:40 PM] Request textDocument/codeAction failed. Error: Connection got disposed. at Object.dispose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:5772:26) at Object.dispose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:11282:35) at LanguageClient.handleConnectionClosed (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:13637:38) at LanguageClient.handleConnectionClosed (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:16837:15) at closeHandler (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:13625:16) at CallbackList.invoke (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4211:35) at Emitter.fire (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4262:34) at closeHandler (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4997:24) at CallbackList.invoke (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4211:35) at Emitter.fire (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4262:34) at IPCMessageReader.fireClose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4404:27) at ChildProcess. (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:6039:45) at ChildProcess.emit (node:events:539:35) at maybeClose (node:internal/child_process:1092:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) [Error - 5:06:40 PM] Request textDocument/documentHighlight failed. Error: Connection got disposed. at Object.dispose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:5772:26) at Object.dispose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:11282:35) at LanguageClient.handleConnectionClosed (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:13637:38) at LanguageClient.handleConnectionClosed (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:16837:15) at closeHandler (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:13625:16) at CallbackList.invoke (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4211:35) at Emitter.fire (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4262:34) at closeHandler (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4997:24) at CallbackList.invoke (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4211:35) at Emitter.fire (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4262:34) at IPCMessageReader.fireClose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4404:27) at ChildProcess. (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:6039:45) at ChildProcess.emit (node:events:539:35) at maybeClose (node:internal/child_process:1092:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) [Error - 5:06:40 PM] Request textDocument/documentLink failed. Error: Connection got disposed. at Object.dispose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:5772:26) at Object.dispose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:11282:35) at LanguageClient.handleConnectionClosed (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:13637:38) at LanguageClient.handleConnectionClosed (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:16837:15) at closeHandler (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:13625:16) at CallbackList.invoke (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4211:35) at Emitter.fire (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4262:34) at closeHandler (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4997:24) at CallbackList.invoke (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4211:35) at Emitter.fire (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4262:34) at IPCMessageReader.fireClose (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:4404:27) at ChildProcess. (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/client.js:6039:45) at ChildProcess.emit (node:events:539:35) at maybeClose (node:internal/child_process:1092:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) load volar.config.js failed in /home/code/projects/funkwhale/front /home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/server.js:2115 responsePromise.reject(new messages_1.ResponseError(error2.code, error2.message, error2.data)); ^ |
I'm having this issue working on a small project this was actually generating so many core dumps that my computer was having very noticeable lag spikes until I disabled core dumping altogether! I'm using Linux directly (as opposed to WSL) and have plenty of free ram so there aren't that many bottlenecks that should be exacerbating this. |
The same here |
@wvffle Thanks for your information, I will check the repo. Could you try does v0.40.13 / v1.0.0-alpha.3 has any different? |
Volar sometimes crash when I editing vue component file. It will keep showing the error message once first crashed. Command
Volar: Restart Vue server
can temporary fix it.Platform: WSL2
Volar version: v0.31.1
API output
The text was updated successfully, but these errors were encountered: