Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Extension Fails to Start - Memory Issues #374

Open
PurnaDeva opened this issue Jul 1, 2023 · 0 comments
Open

Extension Fails to Start - Memory Issues #374

PurnaDeva opened this issue Jul 1, 2023 · 0 comments

Comments

@PurnaDeva
Copy link

PurnaDeva commented Jul 1, 2023

Issue Description:
The Grammarly Visual Code extension fails to start up consistently due to memory issues, even though my machine has ample memory. The error occurs every time the extension tries to reload when many files are eligible for parsing. The error message indicates a process out of memory. When I open a new window without any open documents, the extension loads properly.

Environment:

  • Operating System: Mac Ventura 13.4.1 (22F82)
  • Visual Studio Code Version: 1.79.2 (Universal)
  • NodeJs Version: v20.3.1
  • Grammarly Extension Version: v0.22.1 and v0.23.15 (both tried)

Reproduction Steps:
The issue happens upon loading the extension with many files eligible for parsing.

Expected Behavior:
The extension should load without memory issues, regardless of the number of files open.

Troubleshooting Steps Tried:

  • Switching between different versions of the extension (v0.22.1 and v0.23.15)
  • Updating NodeJs to version v20.3.1
  • Opening a new window without any documents

The issue only persists when there are multiple files open. Other extensions on Visual Studio Code work as expected.

Error Log:

<--- Last few GCs --->

[22208:0x12c004ec000]    81419 ms: Mark-Compact (reduce) 114.2 (140.6) -> 114.2 (120.1) MB, 79.5 / 0.0 ms  (average mu = 0.961, current mu = 0.000) external memory pressure; GC in old space requested
[22208:0x12c004ec000]    81466 ms: Mark-Compact (reduce) 114.2 (120.1) -> 114.2 (120.1) MB, 47.7 / 0.0 ms  (average mu = 0.933, current mu = 0.000) external memory pressure; GC in old space requested


<--- JS stacktrace --->

FATAL ERROR: v8::ArrayBuffer::NewBackingStore Allocation failed - process out of memory
 1: 0x11b8f06d5 node::FatalException(v8::Isolate*, v8::TryCatch const&) [/Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 2: 0x11b8f07f4 node::OnFatalError(char const*, char const*) [/Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 3: 0x115f76700 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 4: 0x115f766a1 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [/Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 5: 0x115

fa17db v8::ArrayBuffer::NewBackingStore(v8::Isolate*, unsigned long) [/Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 6: 0x11b9cc670 node::PromiseRejectCallback(v8::PromiseRejectMessage) [/Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 7: 0x11b9cac30 node::PromiseRejectCallback(v8::PromiseRejectMessage) [/Applications/Visual Studio Code.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework]
 8: 0x11adfe8d487 
[Error - 11:36:15 AM] Connection to server got closed. Server will not be restarted.

Any help with resolving this issue would be greatly appreciated. Please let me know if you need any additional information.

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

No branches or pull requests

1 participant