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

Extension keeps running after closing vscode with 100% cpu use #486

Open
DusanLesan opened this issue May 24, 2023 · 11 comments
Open

Extension keeps running after closing vscode with 100% cpu use #486

DusanLesan opened this issue May 24, 2023 · 11 comments

Comments

@DusanLesan
Copy link

Starting with the version 2.40.1, plugin is no longer closed after exiting vscode on linux. Furthermore, the extension starts utilizing 100% of one cpu thread.
active-20230524-160207
In this image, you can see plugin getting left behind seconds after closing vscode. Sometimes, I have even seen several different plugin tasks running after closing vscode

v2.40.0 and before it worked fine

STR:

  • Start vscode
  • Start debugging
  • Exit vscode

vscode info:
Version: 1.78.2
Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
Date: 2023-05-12T07:29:20.595Z
Electron: 22.3.3
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Linux x64 6.3.3-arch1-1
Sandboxed: No

@TwitchBronBron
Copy link
Member

TwitchBronBron commented May 24, 2023

I believe we fixed this issue (or most of it), in v2.40.4. can you install that version, and then reboot your computer, and report back if you're still seeing it in 2.40.4.

@DusanLesan
Copy link
Author

@TwitchBronBron It is not fixed for me on 2.40.4.

Image of the process

active-20230524-211134

There is still process left behind that keeps running and consuming one whole thread (maybe not obvious in the image since at that moment it was switching the load to second thread)

@DusanLesan
Copy link
Author

DusanLesan commented May 24, 2023

Some logs I got at the moment of closing vscode (around 2023-05-24 21:45:28.917)(probably not related):

File exthost.log
2023-05-24 21:44:19.835 [info] ExtensionService#_doActivateExtension vscode.debug-server-ready, startup: false, activationEvent: 'onDebugResolve'
2023-05-24 21:45:28.917 [info] Extension host terminating: renderer closed the MessagePort
2023-05-24 21:45:28.952 [warning] Canceled
2023-05-24 21:45:28.960 [error] Canceled: Canceled
	at new l (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:104563)
	at a.O (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:110:11657)
	at H.<computed>.V.charCodeAt.H.<computed> (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:110:8947)
	at e.ExtHostCommands.g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124729)
	at e.ExtHostCommands.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124105)
	at C.registerCommand.description (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:123398)
	at e.ExtHostCommands.h (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:125315)
	at e.ExtHostCommands.g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124205)
	at e.ExtHostCommands.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124105)
	at Object.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:116:24043)
	at D (/usr/lib/code/extensions/git/dist/main.js:2:1259661)
	at v.invoke (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:63:145)
	at h.deliver (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:63:2121)
	at i.fire (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:63:1729)
	at Object.m [as dispose] (/usr/lib/code/extensions/git/dist/main.js:2:1274494)
	at /usr/lib/code/extensions/git/dist/main.js:2:1278940
	at Array.forEach (<anonymous>)
	at g.dispose (/usr/lib/code/extensions/git/dist/main.js:2:1278926)
	at t.<anonymous> (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:96:12369)
	at t.dispose (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:96:12504)
	at t.<anonymous> (/usr/lib/code/extensions/git/dist/main.js:2:1261791)
	at t.dispose (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:96:12504)
	at T (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:10:12080)
	at v.Y (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:11173)
	at /usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9157
	at Array.map (<anonymous>)
	at v.R (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9144)
	at v.terminate (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9415)
	at d.terminate (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:116:1544)
	at g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:126:34439)
	at MessagePortMain.<anonymous> (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:126:30578)
	at MessagePortMain.emit (node:events:513:28)
	at MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:367) setContext undefined
2023-05-24 21:45:28.963 [error] Canceled: Canceled
	at new l (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:104563)
	at a.O (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:110:11657)
	at H.<computed>.V.charCodeAt.H.<computed> (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:110:8947)
	at e.ExtHostCommands.g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124729)
	at e.ExtHostCommands.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124105)
	at C.registerCommand.description (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:123398)
	at e.ExtHostCommands.h (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:125315)
	at e.ExtHostCommands.g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124205)
	at e.ExtHostCommands.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124105)
	at Object.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:116:24043)
	at g (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:878971)
	at c (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:883651)
	at ActionRunners._updateContextKeys (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:37690)
	at s (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:36109)
	at RegisteredActionRunner.unregister (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:36253)
	at RegisteredActionRunner.dispose (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:34918)
	at ActionRunners.dispose (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:35695)
	at /home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:613387
	at Array.forEach (<anonymous>)
	at Object.dispose (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:613372)
	at T (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:10:12080)
	at v.Y (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:11173)
	at /usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9157
	at Array.map (<anonymous>)
	at v.R (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9144)
	at v.terminate (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9415)
	at d.terminate (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:116:1544)
	at g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:126:34439)
	at MessagePortMain.<anonymous> (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:126:30578)
	at MessagePortMain.emit (node:events:513:28)
	at MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:367) setContext undefined
2023-05-24 21:45:28.965 [error] Canceled: Canceled
	at new l (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:104563)
	at a.O (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:110:11657)
	at H.<computed>.V.charCodeAt.H.<computed> (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:110:8947)
	at e.ExtHostCommands.g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124729)
	at e.ExtHostCommands.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124105)
	at C.registerCommand.description (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:123398)
	at e.ExtHostCommands.h (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:125315)
	at e.ExtHostCommands.g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124205)
	at e.ExtHostCommands.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124105)
	at Object.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:116:24043)
	at g (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:878971)
	at c (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:883651)
	at ActionRunners._updateContextKeys (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:37690)
	at s (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:36109)
	at RegisteredActionRunner.unregister (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:36253)
	at RegisteredActionRunner.dispose (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:34918)
	at ActionRunners.dispose (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:35695)
	at /home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:613387
	at Array.forEach (<anonymous>)
	at Object.dispose (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:613372)
	at T (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:10:12080)
	at v.Y (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:11173)
	at /usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9157
	at Array.map (<anonymous>)
	at v.R (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9144)
	at v.terminate (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9415)
	at d.terminate (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:116:1544)
	at g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:126:34439)
	at MessagePortMain.<anonymous> (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:126:30578)
	at MessagePortMain.emit (node:events:513:28)
	at MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:367) setContext undefined
2023-05-24 21:45:28.966 [error] Canceled: Canceled
	at new l (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:104563)
	at a.O (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:110:11657)
	at H.<computed>.V.charCodeAt.H.<computed> (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:110:8947)
	at e.ExtHostCommands.g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124729)
	at e.ExtHostCommands.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124105)
	at C.registerCommand.description (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:123398)
	at e.ExtHostCommands.h (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:125315)
	at e.ExtHostCommands.g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124205)
	at e.ExtHostCommands.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124105)
	at Object.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:116:24043)
	at g (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:878971)
	at c (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:883651)
	at ActionRunners._updateContextKeys (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:37690)
	at s (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:36109)
	at RegisteredActionRunner.unregister (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:36253)
	at RegisteredActionRunner.dispose (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:34918)
	at ActionRunners.dispose (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:35695)
	at /home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:613387
	at Array.forEach (<anonymous>)
	at Object.dispose (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:613372)
	at T (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:10:12080)
	at v.Y (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:11173)
	at /usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9157
	at Array.map (<anonymous>)
	at v.R (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9144)
	at v.terminate (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9415)
	at d.terminate (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:116:1544)
	at g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:126:34439)
	at MessagePortMain.<anonymous> (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:126:30578)
	at MessagePortMain.emit (node:events:513:28)
	at MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:367) setContext undefined
2023-05-24 21:45:28.969 [error] Canceled: Canceled
	at new l (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:104563)
	at a.O (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:110:11657)
	at H.<computed>.V.charCodeAt.H.<computed> (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:110:8947)
	at e.ExtHostCommands.g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124729)
	at e.ExtHostCommands.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124105)
	at C.registerCommand.description (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:123398)
	at e.ExtHostCommands.h (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:125315)
	at e.ExtHostCommands.g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124205)
	at e.ExtHostCommands.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124105)
	at Object.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:116:24043)
	at g (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:878971)
	at c (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:883651)
	at ActionRunners._updateContextKeys (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:37690)
	at s (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:36109)
	at RegisteredActionRunner.unregister (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:36253)
	at RegisteredActionRunner.dispose (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:34918)
	at Object.dispose (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:36350)
	at T (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:10:12080)
	at v.Y (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:11173)
	at /usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9157
	at Array.map (<anonymous>)
	at v.R (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9144)
	at v.terminate (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9415)
	at d.terminate (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:116:1544)
	at g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:126:34439)
	at MessagePortMain.<anonymous> (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:126:30578)
	at MessagePortMain.emit (node:events:513:28)
	at MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:367) setContext undefined
2023-05-24 21:45:28.973 [error] Canceled: Canceled
	at new l (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:104563)
	at a.O (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:110:11657)
	at H.<computed>.V.charCodeAt.H.<computed> (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:110:8947)
	at e.ExtHostCommands.g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124729)
	at e.ExtHostCommands.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124105)
	at C.registerCommand.description (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:123398)
	at e.ExtHostCommands.h (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:125315)
	at e.ExtHostCommands.g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124205)
	at e.ExtHostCommands.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124105)
	at Object.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:116:24043)
	at g (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:878971)
	at c (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:883651)
	at ActionRunners._updateContextKeys (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:37690)
	at s (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:36109)
	at RegisteredActionRunner.unregister (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:36253)
	at RegisteredActionRunner.dispose (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:34918)
	at Object.dispose (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:36350)
	at T (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:10:12080)
	at v.Y (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:11173)
	at /usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9157
	at Array.map (<anonymous>)
	at v.R (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9144)
	at v.terminate (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9415)
	at d.terminate (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:116:1544)
	at g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:126:34439)
	at MessagePortMain.<anonymous> (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:126:30578)
	at MessagePortMain.emit (node:events:513:28)
	at MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:367) setContext undefined
2023-05-24 21:45:28.976 [error] Canceled: Canceled
	at new l (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:104563)
	at a.O (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:110:11657)
	at H.<computed>.V.charCodeAt.H.<computed> (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:110:8947)
	at e.ExtHostCommands.g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124729)
	at e.ExtHostCommands.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124105)
	at C.registerCommand.description (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:123398)
	at e.ExtHostCommands.h (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:125315)
	at e.ExtHostCommands.g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124205)
	at e.ExtHostCommands.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:98:124105)
	at Object.executeCommand (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:116:24043)
	at g (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:878971)
	at c (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:883651)
	at ActionRunners._updateContextKeys (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:37690)
	at s (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:36109)
	at RegisteredActionRunner.unregister (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:36253)
	at RegisteredActionRunner.dispose (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:34918)
	at Object.dispose (/home/dusan/.config/code-oss/extensions/eamodio.gitlens-13.6.0-universal/dist/gitlens.js:1:36350)
	at T (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:10:12080)
	at v.Y (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:11173)
	at /usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9157
	at Array.map (<anonymous>)
	at v.R (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9144)
	at v.terminate (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:112:9415)
	at d.terminate (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:116:1544)
	at g (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:126:34439)
	at MessagePortMain.<anonymous> (/usr/lib/code/out/vs/workbench/api/node/extensionHostProcess.js:126:30578)
	at MessagePortMain.emit (node:events:513:28)
	at MessagePortMain._internalPort.emit (node:electron/js2c/utility_init:2:367) setContext undefined
2023-05-24 21:45:28.977 [info] Extension host with pid 4340 exiting with code 0

@TwitchBronBron
Copy link
Member

@DusanLesan are you still encountering this issue? If so, how severe is it. Does it prevent debugging from working? Are you finding that you have to kill the process regularly?

@DusanLesan
Copy link
Author

I have tried now the latest version and the issue is still actual. I have stopped the auto updates since it was bad enough for me. I could still debug but I would rather use 2.39.0 than deal with the rogue processes every day

@DusanLesan
Copy link
Author

@TwitchBronBron Any progress on this? I have experienced this issue on my new computer too but since it uses the same setup as previous (arch + X + dwm + code OSS + plugin from open-vsx.org), I have also tried it in a virtual machine using ubuntu 22.04 with vscode from store and debugging an app from rokudev/samples

Image

image

@TwitchBronBron
Copy link
Member

TwitchBronBron commented Sep 13, 2023

Sadly I haven't had the time to investigate lately. Does this reproduce every single time for you?

To help troubleshoot this issue, we added some better logging a while back. Could you do the following:

  1. kill all rogue processes
  2. enable fileLogging in your launch.json (you can accept the defaults, either set it to true or the whole json chunk)
  3. Now do whatever debugging steps required to trigger the rogue process
  4. include the logs here. (you might need to sanitize them a little). I think the ones we want are the debugger.log.

@DusanLesan
Copy link
Author

DusanLesan commented Sep 13, 2023

2023-09-13T14∶49∶29-debugger.log
2023-09-13T14∶49∶29-rokuDevice.log

Yes, it happens for me every time I close vscode while debugger is running
Here are the logs. It made all these Tried to call .shutdown() entries in less than 20 seconds before I killed the process

@TwitchBronBron
Copy link
Member

Just a quick update: we've found several places in the debugger logic where we aren't properly shutting down some things (event listeners, long-lived telnet connections, etc).

rokucommunity/roku-debug#161 and rokucommunity/roku-debug#107 should include those fixes (and I have a few more locally that will go into them before they merge). So i'll report back when they're ready to test. Hopefully we've found and squashed the root cause of these issues for you soon!

@TwitchBronBron
Copy link
Member

@DusanLesan release v2.44.0 introduced several fixes that attempt to address this issue. Can you try that out and report back?

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

No branches or pull requests

2 participants