Skip to content
This repository has been archived by the owner on Apr 23, 2020. It is now read-only.

clangd hogs RAM until full #13

Open
Cirromulus opened this issue Apr 21, 2020 · 0 comments
Open

clangd hogs RAM until full #13

Cirromulus opened this issue Apr 21, 2020 · 0 comments

Comments

@Cirromulus
Copy link

[Enter steps to reproduce:]

  1. Open Atom with PlatformIO
  2. Have an open Folder (with Marlin 3D-Printer FW)
  3. Kill clangd.exe as it hogs RAM until PC is unresponsive (>10G)

Atom: 1.45.0 x64
Electron: 4.2.7
OS: Win 10
Thrown From: ide-clangd package 0.4.0

Stack Trace

Uncaught Error: Connection is closed.

At C:\Users\Cirro\.atom\packages\ide-clangd\node_modules\vscode-languageserver-protocol\node_modules\vscode-jsonrpc\lib\main.js:613

Error: Connection is closed.
    at /packages/ide-clangd/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/main.js:138:28)
    at throwIfClosedOrDisposed (/packages/ide-clangd/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/main.js:613:19)
    at Object.sendNotification (/packages/ide-clangd/node_modules/vscode-languageserver-protocol/node_modules/vscode-jsonrpc/lib/main.js:667:13)
    at LanguageClientConnection._sendNotification (/packages/ide-cpp/node_modules/atom-languageclient/build/lib/languageclient.js:242:15)
    at LanguageClientConnection.didChangeWatchedFiles (/packages/ide-cpp/node_modules/atom-languageclient/build/lib/languageclient.js:143:10)
    at ServerManager.projectFilesChanged (/packages/ide-cpp/node_modules/atom-languageclient/build/lib/server-manager.js:233:33)
    at Function.simpleDispatch (~/AppData/Local/atom/app-1.45.0/resources/app/static/<embedded>:11:1214120)
    at Emitter.emit (~/AppData/Local/atom/app-1.45.0/resources/app/static/<embedded>:11:1215561)
    at s (~/AppData/Local/atom/app-1.45.0/resources/app/static/<embedded>:11:410415)
    at PathWatcher.onNativeEvents (~/AppData/Local/atom/app-1.45.0/resources/app/static/<embedded>:14:26758)
    at t.native.onDidChange.t (~/AppData/Local/atom/app-1.45.0/resources/app/static/<embedded>:14:25494)
    at Function.simpleDispatch (~/AppData/Local/atom/app-1.45.0/resources/app/static/<embedded>:11:1214120)
    at Emitter.emit (~/AppData/Local/atom/app-1.45.0/resources/app/static/<embedded>:11:1215561)
    at NSFWNativeWatcher.onEvents (~/AppData/Local/atom/app-1.45.0/resources/app/static/<embedded>:14:22740)
    at watcher.e (~/AppData/Local/atom/app-1.45.0/resources/app/static/<embedded>:14:24389)

Commands

     -4:25.8.0 intentions:highlight (input.hidden-input)
     -4:25.8.0 core:save (input.hidden-input)
     -3:58.5.0 intentions:highlight (input.hidden-input)
     -3:58.4.0 core:save (input.hidden-input)
     -3:51.3.0 platformio-ide:maintenance.open-terminal (input.hidden-input)
     -3:27.9.0 intentions:highlight (input.hidden-input)
     -3:27.7.0 find-and-replace:show (input.hidden-input)
     -3:25.7.0 core:confirm (input.hidden-input)
     -3:24.7.0 core:move-right (input.hidden-input)
     -3:20.8.0 intentions:highlight (input.hidden-input)
     -3:20.7.0 core:save (input.hidden-input)
  5x -3:19.9.0 core:delete (input.hidden-input)
     -3:18.5.0 intentions:highlight (input.hidden-input)
     -3:18.4.0 core:save (input.hidden-input)
     -3:14.3.0 platformio-ide:target:build (input.hidden-input)
     -3:14.2.0 platformio-ide:target:build-D:\Reposhit\Marlin (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui.find-visible)

Non-Core Packages

atom-html-preview undefined 
atom-ide-ui 0.13.0 
autoclose-html 0.23.0 
autocomplete-clang 0.13.1 
autocomplete-html-entities 0.2.0 
build 0.70.0 
busy-signal 2.0.1 
color-picker 2.3.0 
file-icons 2.1.40 
ide-clangd 0.4.0 
ide-cpp 0.1.0 
ide-json 0.2.1 
ide-php 0.7.18 
ide-yaml 0.7.0 
intentions 1.1.5 
language-ini 1.23.0 
linter 2.3.1 
linter-gcc 0.9.0 
linter-gcc2 0.8.8 
linter-ui-default 1.8.1 
platformio-ide 2.6.0 
platformio-ide-debugger 1.2.6 
platformio-ide-terminal 2.10.0 
tool-bar 1.3.0 

clangd_hog

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