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

Synchronous I/O operations perfomed by extension block extension host #22991

Closed
DonJayamanne opened this issue Feb 28, 2024 · 4 comments · Fixed by #23011
Closed

Synchronous I/O operations perfomed by extension block extension host #22991

DonJayamanne opened this issue Feb 28, 2024 · 4 comments · Fixed by #23011
Assignees
Labels
area-editor-* User-facing catch-all bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on verified Verification succeeded
Milestone

Comments

@DonJayamanne
Copy link

DonJayamanne commented Feb 28, 2024

Please note I have a Mac M1, with sufficient RAM and I believe this is a fairly fast enough machine, however
VS Code hangs, and found the following logs in the console window.

I can see the following messages in the console window in VS Code

 INFO Extension host (LocalProcess pid: 91550) is unresponsive.
localProcessExtensionHost.ts:273 Extension Host
localProcessExtensionHost.ts:274 Debugger attached.
log.ts:417  INFO UNRESPONSIVE extension host: starting to profile NOW
log.ts:437   ERR 
	 at determineExtensionFromCallStack (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:116247)
log.ts:437   ERR 
	 at readFileSync (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:1868057)
	 at c (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:671008)
	 at p (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:671327)
	 at (anonymous) (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:383360)
log.ts:437   ERR 
	 at open
	 at openSync (node:fs:596:18)
	 at func (node:electron/js2c/node_init:2:2050)
	 at readFileSync (node:fs:470:22)
	 at (anonymous) (node:electron/js2c/node_init:2:9407)
	 at readFileSync (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:1868057)
	 at c (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:671008)
	 at p (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:671327)
	 at (anonymous) (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:383360)
log.ts:437   ERR 
	 at (anonymous) (node:electron/js2c/node_init:2:9407)
	 at readFileSync (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:1868057)
	 at c (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:671008)
	 at p (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:671327)
	 at (anonymous) (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:383360)
log.ts:437   ERR 
	 at splitPath (node:electron/js2c/node_init:2:681)
	 at (anonymous) (node:electron/js2c/node_init:2:9407)
	 at readFileSync (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:1868057)
	 at c (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:671008)
	 at p (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:671327)
	 at (anonymous) (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:383360)
log.ts:427  WARN UNRESPONSIVE extension host: 'ms-python.python' took 85.33076491088812% of 4274.253ms, saved PROFILE here: 'file:///var/folders/_7/7q__vcg961x5x6k8313dvzq40000gn/T/exthost-ea01a0.cpuprofile'
 INFO UNRESPONSIVE extension host: starting to profile NOW
log.ts:437   ERR 
	 at determineExtensionFromCallStack (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:116247)
log.ts:437   ERR 
	 at readFileSync (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:1868057)
	 at p (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:671327)
	 at (anonymous) (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:383360)
log.ts:437   ERR 
	 at open
	 at openSync (node:fs:596:18)
	 at func (node:electron/js2c/node_init:2:2050)
	 at readFileSync (node:fs:470:22)
	 at (anonymous) (node:electron/js2c/node_init:2:9407)
	 at readFileSync (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:1868057)
	 at p (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:671327)
	 at (anonymous) (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:383360)
log.ts:437   ERR 
	 at p (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:671327)
	 at (anonymous) (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:383360)
log.ts:427  WARN UNRESPONSIVE extension host: 'ms-python.python' took 88.06868686868687% of 4446.588ms, saved PROFILE here: 'file:///var/folders/_7/7q__vcg961x5x6k8313dvzq40000gn/T/exthost-e0d69f.cpuprofile'
@DonJayamanne DonJayamanne added the triage-needed Needs assignment to the proper sub-team label Feb 28, 2024
@DonJayamanne
Copy link
Author

@DonJayamanne
Copy link
Author

Ran into this again after upgrading VS COde, and clearing Python cache.
Python interpreter picker didnt show up for a few seconds, thats what lead me to believe the ext host is frozen

Extension Host
localProcessExtensionHost.ts:274 Debugger attached.
log.ts:417  INFO UNRESPONSIVE extension host: starting to profile NOW
log.ts:437   ERR 
	 at determineExtensionFromCallStack (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:116247)
log.ts:437   ERR 
	 at readFileSync (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:1868057)
	 at p (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:671327)
	 at (anonymous) (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:383360)
log.ts:437   ERR 
	 at open
	 at openSync (node:fs:596:18)
	 at func (node:electron/js2c/node_init:2:2050)
	 at readFileSync (node:fs:470:22)
	 at (anonymous) (node:electron/js2c/node_init:2:9407)
	 at readFileSync (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:1868057)
	 at p (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:671327)
	 at (anonymous) (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:383360)
log.ts:437   ERR 
	 at p (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:671327)
	 at (anonymous) (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:383360)
log.ts:437   ERR 
	 at splitPath (node:electron/js2c/node_init:2:681)
	 at readFileSync (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:1868057)
	 at p (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:671327)
	 at (anonymous) (file:///Users/donjayamanne/.vscode-insiders/extensions/ms-python.python-2024.3.10581547/out/client/extension.js:2:383360)
log.ts:427  WARN UNRESPONSIVE extension host: 'ms-python.python' took 91.67305717795021% of 4585.677ms, saved PROFILE here: 'file:///var/folders/_7/7q__vcg961x5x6k8313dvzq40000gn/T/exthost-30ae66.cpuprofile'
log.ts:417  INFO Extension host (LocalProcess pid: 77659) is responsive.

@DonJayamanne
Copy link
Author

Screenshot 2024-02-29 at 09 30 26
Screenshot 2024-02-29 at 09 30 42

@karrtikr
Copy link

Another costly sync I/O operation: https://github.com/microsoft/vscode-python/pull/21377/files#r1508133207

@karrtikr karrtikr added this to the March 2024 milestone Mar 1, 2024
@karrtikr karrtikr added bug Issue identified by VS Code Team member as probable bug area-editor-* User-facing catch-all needs PR Ready to be worked on and removed triage-needed Needs assignment to the proper sub-team labels Mar 1, 2024
karrtikr pushed a commit that referenced this issue Mar 1, 2024
@karrtikr karrtikr added the verified Verification succeeded label Mar 22, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-editor-* User-facing catch-all bug Issue identified by VS Code Team member as probable bug needs PR Ready to be worked on verified Verification succeeded
Projects
None yet
2 participants