Skip to content

Frequent window not responding popup #9126

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

Closed
sssteja5 opened this issue Apr 1, 2022 · 13 comments
Closed

Frequent window not responding popup #9126

sssteja5 opened this issue Apr 1, 2022 · 13 comments
Labels
Language Service more info needed The issue report is not actionable in its current state

Comments

@sssteja5
Copy link

sssteja5 commented Apr 1, 2022

Issue Type: Bug

After disabling all extensions, and enabling one by one, i notice that this extension causes frequent 'Window not responding' popup.

Extension version: 1.9.7
VS Code version: Code 1.66.0 (e18005f0f1b33c29e81d732535d8c0e47cafb0b5, 2022-03-30T05:50:14.623Z)
OS version: Windows_NT x64 10.0.19042
Restricted Mode: No
Remote OS version: Linux x64 5.4.0-90-generic

@michelleangela
Copy link
Contributor

@sssteja5 could you provide more info to help us investigate the issue?

Does the "Window not responding" happen during any specific IntelliSense operation, such as find all references, running code analysis, hover on symbol, etc.? Are there any C_Cpp.* settings configured? Does this only happen when using the extension on a remote machine, or does it also happen when using the extension on the local machine?

@michelleangela michelleangela added Language Service more info needed The issue report is not actionable in its current state labels Apr 1, 2022
@michelleangela michelleangela self-assigned this Apr 1, 2022
@sean-mcmanus
Copy link
Contributor

Also, is there any high CPU or memory usage from VS Code or any of its child processes like cpptools/cpptools-srv processes?

@sssteja5
Copy link
Author

sssteja5 commented Apr 3, 2022

@michelleangela : 'windows not responding' happens randomly. No correlation with hover/find_reference, etc.
I dont have a local machine and always use this extension on a remote ssh machine.
These are my extension settings
"C_Cpp.configurationWarnings": "Disabled",
"C_Cpp.errorSquiggles": "Enabled",
"C_Cpp.intelliSenseEngineFallback": "Enabled",
"C_Cpp.workspaceSymbols": "All",
"C_Cpp.codeAnalysis.runAutomatically": false

@sean-mcmanus : I don't see high CPU or mem usage or or high network usage related to VS code at the time of issue.

@michelleangela
Copy link
Contributor

I dont have a local machine and always use this extension on a remote ssh machine.

Just to rule out the Remote SSH extension, does this also occur even when the C/C++ extension is disabled on the remote machine?

@sssteja5
Copy link
Author

sssteja5 commented Apr 5, 2022

No. The issue doesn't occur when disabled C/C++ extension as described before with everything else kept as it is. Hence it's narrowed down to this extension.

@michelleangela
Copy link
Contributor

Could you collect a performance profile using the developer tools on VS Code? Note, the performance profile records screenshots of the session, so we recommend to use a project or sample project you wouldn't mind sharing publicly.

Instructions to collect performance profile:

  1. Run "Developer: Toggle Developer Tools" from VS Code command palette.
  2. Select "Performance" tab
    image
  3. Start recording session.
  4. After repro occurs, stop recording.
  5. Right click to "save profile".

@zouyonghao
Copy link

Profile-20220517T170934.zip

Hi @michelleangela
I try to use the developer tools and upload the profile, you can see if it helps.

@zouyonghao
Copy link

Can we solve the performance issue, because my vscode cannot work due to this for several days.
Maybe some issues are related, like #9339

@michelleangela
Copy link
Contributor

@zouyonghao
The profile log doesn't show anything related to the cpptools extension. The bottleneck could be caused by Remote SSH, I suggest to post the profile logs at the Remote SSH repro https://github.com/microsoft/vscode-remote-release/issues.

In case it is related to #9339, have you tried disabling the IntelliSense cache or setting C_Cpp.intelliSenseCacheSize to 0 to see if that improves performance? Or does this issue occur during any formatting operations? If so, could you also try disabling formatting by the cpptools extension by setting C_Cpp.formatting to Disabled?

@zouyonghao
Copy link

@michelleangela
Today I switch to clangd extension, and vscode does not stuck again with same other extensions.

I tried setting C_Cpp.intelliSenseCacheSize to 0, and it still stucks.
I also tried setting C_Cpp.intelliSenseEngine to Disabled, it does not stuck.
I will try C_Cpp.formatting later.

@github-actions
Copy link

Hey @michelleangela, this issue might need further attention.

@sssteja5, you can help us out by closing this issue if the problem no longer exists, or adding more information.

@sssteja5
Copy link
Author

Hi,
I am no longer seeing this issue after recent vscode updates. not sure what fixed my problem.

@michelleangela
Copy link
Contributor

Closing as resolved.

@michelleangela michelleangela removed their assignment Aug 12, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Sep 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Language Service more info needed The issue report is not actionable in its current state
Projects
None yet
Development

No branches or pull requests

4 participants