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

Request textDocument/codeAction failed #900

Closed
bitrevo opened this issue Jan 27, 2022 · 16 comments
Closed

Request textDocument/codeAction failed #900

bitrevo opened this issue Jan 27, 2022 · 16 comments

Comments

@bitrevo
Copy link

bitrevo commented Jan 27, 2022

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

<--- Last few GCs --->

[478:0x4a7a260]  1637739 ms: Mark-sweep (reduce) 2043.2 (2054.9) -> 2042.8 (2055.1) MB, 1585.9 / 0.0 ms  (average mu = 0.088, current mu = 0.005) allocation failure scavenge might not succeed
[478:0x4a7a260]  1639018 ms: Mark-sweep (reduce) 2043.8 (2052.1) -> 2043.5 (2053.6) MB, 1274.1 / 0.0 ms  (average mu = 0.047, current mu = 0.004) allocation failure scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0xa04200 node::Abort() [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
 2: 0x94e4e9 node::FatalError(char const*, char const*) [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
 3: 0xb7978e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
 4: 0xb79b07 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
 5: 0xd34395  [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
 6: 0xd34f1f  [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
 7: 0xd42fab v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
 8: 0xd46b6c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
 9: 0xd1524b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
10: 0x105b23f v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
11: 0x1401219  [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
[Info  - 9:23:53 AM] Connection to server got closed. Server will restart.
[Error - 9:23:53 AM] Request textDocument/hover failed.
Error: Connection got disposed.
	at Object.dispose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:1105:27)
	at Object.dispose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:163:35)
	at LanguageClient.handleConnectionClosed (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:2665:42)
	at LanguageClient.handleConnectionClosed (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/node/main.js:173:15)
	at closeHandler (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:2652:18)
	at CallbackList.invoke (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at closeHandler (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:272:26)
	at CallbackList.invoke (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at IPCMessageReader.fireClose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/messageReader.js:40:27)
	at ChildProcess.<anonymous> (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/node/main.js:33:45)
	at ChildProcess.emit (events.js:327:22)
	at maybeClose (internal/child_process.js:1048:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
[Error - 9:23:53 AM] Request textDocument/definition failed.
Error: Connection got disposed.
	at Object.dispose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:1105:27)
	at Object.dispose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:163:35)
	at LanguageClient.handleConnectionClosed (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:2665:42)
	at LanguageClient.handleConnectionClosed (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/node/main.js:173:15)
	at closeHandler (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:2652:18)
	at CallbackList.invoke (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at closeHandler (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:272:26)
	at CallbackList.invoke (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at IPCMessageReader.fireClose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/messageReader.js:40:27)
	at ChildProcess.<anonymous> (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/node/main.js:33:45)
	at ChildProcess.emit (events.js:327:22)
	at maybeClose (internal/child_process.js:1048:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)

... skip ...

[Error - 9:26:56 AM] Request textDocument/completion failed.
  Message: Unhandled method volar/getAttrNameCaseClient
  Code: -32601 
(node:1378) UnhandledPromiseRejectionWarning: Error: Unhandled method volar/getAttrNameCaseClient
    at handleResponse (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:510:48)
    at processMessageQueue (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:308:17)
    at Immediate.<anonymous> (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:292:13)
    at processImmediate (internal/timers.js:461:21)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1378) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1378) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[Error - 9:26:56 AM] Request textDocument/signatureHelp failed.
  Message: Unhandled method volar/getAttrNameCaseClient
  Code: -32601 
[Error - 9:26:57 AM] Request textDocument/codeAction failed.
  Message: Unhandled method volar/getAttrNameCaseClient
  Code: -32601 
[Error - 9:26:57 AM] Request textDocument/completion failed.
  Message: Unhandled method volar/getAttrNameCaseClient
  Code: -32601 
[Error - 9:26:58 AM] Request textDocument/codeAction failed.
  Message: Unhandled method volar/getAttrNameCaseClient
  Code: -32601 
[Error - 9:26:58 AM] Request textDocument/codeAction failed.
  Message: Unhandled method volar/getAttrNameCaseClient
  Code: -32601 
[Error - 9:26:59 AM] Request textDocument/codeAction failed.
  Message: Unhandled method volar/getAttrNameCaseClient
  Code: -32601 

@bitrevo
Copy link
Author

bitrevo commented Jan 27, 2022

I am not able to reproduce it from new starter project. Will keep monitor it for more information.

Similar issues:
#754
#658
#632
#631
#326

@johnsoncodehk
Copy link
Member

Due to the error report JavaScript heap out of memory, have you try enable low power mode by config "volar.lowPowerMode": true?

@bitrevo
Copy link
Author

bitrevo commented Jan 27, 2022

I just enabled volar.lowPowerMode and use vscode for around 1 hour, then I got the similar errors.

But this time no infinity message popup, I can continue use it without restart vue server.
Infinity message still popup when some action triggered, e.g. autocomplete, etc.

WSL2 memory usage

$ free -m
              total        used        free      shared  buff/cache   available
Mem:          12710        2278        9716          20         716       10145
Swap:          4096           0        4096

Log

Scanner.scan has not advanced at offset 1857, state before: 10 after: 4
Scanner.scan has not advanced at offset 254, state before: 10 after: 4
Scanner.scan has not advanced at offset 254, state before: 10 after: 4

<--- Last few GCs --->

[5852:0x63df260]  1897371 ms: Mark-sweep (reduce) 2042.4 (2051.2) -> 2041.6 (2052.4) MB, 987.8 / 0.0 ms  (average mu = 0.146, current mu = 0.049) allocation failure scavenge might not succeed
[5852:0x63df260]  1898393 ms: Mark-sweep (reduce) 2042.8 (2054.7) -> 2042.0 (2055.2) MB, 1013.4 / 0.0 ms  (average mu = 0.080, current mu = 0.008) allocation failure scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
 1: 0xa04200 node::Abort() [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
 2: 0x94e4e9 node::FatalError(char const*, char const*) [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
 3: 0xb7978e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
 4: 0xb79b07 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
 5: 0xd34395  [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
 6: 0xd34f1f  [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
 7: 0xd42fab v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
 8: 0xd46b6c v8::internal::Heap::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
 9: 0xd1524b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
10: 0x105b23f v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
11: 0x1401219  [/home/user/.vscode-server/bin/899d46d82c4c95423fb7e10e68eba52050e30ba3/node]
[Info  - 11:18:24 AM] Connection to server got closed. Server will restart.
[Error - 11:18:24 AM] Request textDocument/codeLens failed.
Error: Connection got disposed.
	at Object.dispose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:1105:27)
	at Object.dispose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:163:35)
	at LanguageClient.handleConnectionClosed (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:2665:42)
	at LanguageClient.handleConnectionClosed (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/node/main.js:173:15)
	at closeHandler (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:2652:18)
	at CallbackList.invoke (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at closeHandler (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:272:26)
	at CallbackList.invoke (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at IPCMessageReader.fireClose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/messageReader.js:40:27)
	at ChildProcess.<anonymous> (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/node/main.js:33:45)
	at ChildProcess.emit (events.js:327:22)
	at maybeClose (internal/child_process.js:1048:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
[Error - 11:18:24 AM] Request textDocument/hover failed.
Error: Connection got disposed.
	at Object.dispose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:1105:27)
	at Object.dispose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:163:35)
	at LanguageClient.handleConnectionClosed (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:2665:42)
	at LanguageClient.handleConnectionClosed (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/node/main.js:173:15)
	at closeHandler (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:2652:18)
	at CallbackList.invoke (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at closeHandler (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:272:26)
	at CallbackList.invoke (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at IPCMessageReader.fireClose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/messageReader.js:40:27)
	at ChildProcess.<anonymous> (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/node/main.js:33:45)
	at ChildProcess.emit (events.js:327:22)
	at maybeClose (internal/child_process.js:1048:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
[Error - 11:18:24 AM] Request textDocument/codeAction failed.
Error: Connection got disposed.
	at Object.dispose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:1105:27)
	at Object.dispose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:163:35)
	at LanguageClient.handleConnectionClosed (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:2665:42)
	at LanguageClient.handleConnectionClosed (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/node/main.js:173:15)
	at closeHandler (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:2652:18)
	at CallbackList.invoke (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at closeHandler (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:272:26)
	at CallbackList.invoke (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at IPCMessageReader.fireClose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/messageReader.js:40:27)
	at ChildProcess.<anonymous> (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/node/main.js:33:45)
	at ChildProcess.emit (events.js:327:22)
	at maybeClose (internal/child_process.js:1048:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
[Error - 11:18:24 AM] Request textDocument/documentLink failed.
Error: Connection got disposed.
	at Object.dispose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:1105:27)
	at Object.dispose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:163:35)
	at LanguageClient.handleConnectionClosed (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:2665:42)
	at LanguageClient.handleConnectionClosed (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/node/main.js:173:15)
	at closeHandler (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:2652:18)
	at CallbackList.invoke (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at closeHandler (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:272:26)
	at CallbackList.invoke (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at IPCMessageReader.fireClose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/messageReader.js:40:27)
	at ChildProcess.<anonymous> (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/node/main.js:33:45)
	at ChildProcess.emit (events.js:327:22)
	at maybeClose (internal/child_process.js:1048:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
[Error - 11:18:24 AM] Request textDocument/semanticTokens/range failed.
Error: Connection got disposed.
	at Object.dispose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:1105:27)
	at Object.dispose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:163:35)
	at LanguageClient.handleConnectionClosed (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:2665:42)
	at LanguageClient.handleConnectionClosed (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/node/main.js:173:15)
	at closeHandler (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:2652:18)
	at CallbackList.invoke (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at closeHandler (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:272:26)
	at CallbackList.invoke (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at IPCMessageReader.fireClose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/messageReader.js:40:27)
	at ChildProcess.<anonymous> (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/node/main.js:33:45)
	at ChildProcess.emit (events.js:327:22)
	at maybeClose (internal/child_process.js:1048:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
[Error - 11:18:24 AM] Request textDocument/codeAction failed.
Error: Connection got disposed.
	at Object.dispose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:1105:27)
	at Object.dispose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:163:35)
	at LanguageClient.handleConnectionClosed (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:2665:42)
	at LanguageClient.handleConnectionClosed (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/node/main.js:173:15)
	at closeHandler (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:2652:18)
	at CallbackList.invoke (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at closeHandler (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:272:26)
	at CallbackList.invoke (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at IPCMessageReader.fireClose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/messageReader.js:40:27)
	at ChildProcess.<anonymous> (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/node/main.js:33:45)
	at ChildProcess.emit (events.js:327:22)
	at maybeClose (internal/child_process.js:1048:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
[Error - 11:18:24 AM] Request textDocument/codeLens failed.
Error: Connection got disposed.
	at Object.dispose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:1105:27)
	at Object.dispose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:163:35)
	at LanguageClient.handleConnectionClosed (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:2665:42)
	at LanguageClient.handleConnectionClosed (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/node/main.js:173:15)
	at closeHandler (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-languageclient/lib/common/client.js:2652:18)
	at CallbackList.invoke (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at closeHandler (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/connection.js:272:26)
	at CallbackList.invoke (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:55:39)
	at Emitter.fire (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/events.js:117:36)
	at IPCMessageReader.fireClose (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/common/messageReader.js:40:27)
	at ChildProcess.<anonymous> (/home/user/.vscode-server/extensions/johnsoncodehk.volar-0.31.1/node_modules/vscode-jsonrpc/lib/node/main.js:33:45)
	at ChildProcess.emit (events.js:327:22)
	at maybeClose (internal/child_process.js:1048:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)

@johnsoncodehk
Copy link
Member

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).

@johnsoncodehk
Copy link
Member

I have a feeling this issue is with recent TS releases microsoft/vscode#140090.

@bitrevo
Copy link
Author

bitrevo commented Jan 27, 2022

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 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 ~/.bashrc then restart vscode. Up to now, It is still working fine without any error message popup.

export NODE_OPTIONS="--max-old-space-size=4096"

Default settings, nodejs is using around 2GB.

> v8.getHeapStatistics()
{
...
  heap_size_limit: 2197815296,
...
}

After adjust the settings, nodejs is using around 4GB

> v8.getHeapStatistics()
{
...
  heap_size_limit: 4345298944,
...
}

@johnsoncodehk
Copy link
Member

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.

@pattrickrice
Copy link

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

@Uomfan
Copy link

Uomfan commented Apr 12, 2022

may be too many project files in the workspace, or too many projects opened at the same time by vscode

@pattrickrice
Copy link

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

@qbunia
Copy link

qbunia commented May 7, 2022

Same problem here. Waiting for fix

@johnsoncodehk
Copy link
Member

Unfortunately I can't check this issue, if anyone can provide a repro case I will actively resolve it.

@wvffle
Copy link

wvffle commented May 9, 2022

@johnsoncodehk I'm experiencing this with this with the branch wvffle/vue3 of funkwhale project. It's a big project that I'm migrating to vue 3 using @vue/compat.

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 logs
load 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));
                                       ^

ResponseError: Unhandled method vue/docVersion
at handleResponse (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/server.js:2115:40)
at processMessageQueue (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/server.js:1940:13)
at Immediate. (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/server.js:1926:11)
at processImmediate (node:internal/timers:466:21) {
code: -32601,
data: undefined
}
[Info - 5:06:48 PM] Connection to server got closed. Server will restart.
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));
^

ResponseError: Unhandled method vue/docVersion
at handleResponse (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/server.js:2115:40)
at processMessageQueue (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/server.js:1940:13)
at Immediate. (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/server.js:1926:11)
at processImmediate (node:internal/timers:466:21) {
code: -32601,
data: undefined
}
[Info - 5:07:11 PM] Connection to server got closed. Server will restart.
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));
^

ResponseError: Unhandled method vue/docVersion
at handleResponse (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/server.js:2115:40)
at processMessageQueue (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/server.js:1940:13)
at Immediate. (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/server.js:1926:11)
at processImmediate (node:internal/timers:466:21) {
code: -32601,
data: undefined
}
[Info - 5:07:28 PM] Connection to server got closed. Server will restart.
[Error - 5:07:28 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 Socket. (node:internal/child_process:451:11)
at Socket.emit (node:events:527:28)
at Pipe. (node:net:709:12)
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));
^

ResponseError: Unhandled method vue/docVersion
at handleResponse (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/server.js:2115:40)
at processMessageQueue (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/server.js:1940:13)
at Immediate. (/home/code/.local/share/code-server/extensions/johnsoncodehk.volar-0.33.6/dist/node/server.js:1926:11)
at processImmediate (node:internal/timers:466:21) {
code: -32601,
data: undefined
}
[Error - 5:07:47 PM] The Volar - API server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information.

@pyrareae
Copy link

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.

@luisnquin
Copy link

The same here

@johnsoncodehk
Copy link
Member

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants