-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Multiple hanging dir/find commands for large searches #11181
Comments
Updating title to reflect that this is also a problem with the other platforms. |
@chrmarti any advise how to reproduce this? i think it was easy on Windows with the circular symlinks, but now we do not have the dir command anymore on Windows. |
On Linux/OSX opening/closing QuickOpen multiple time while |
@chrmarti thanks |
@chrmarti I am still able to get 2 find processes running though: Steps:
This is on Mac OS btw. |
@bpasero Cannot reproduce. This would happen if the search process has terminated after the cache was populated. QuickOpen would first ask for a new cache to be populated and then start using the old cache (which is gone) which triggers another find. One way for the search process to terminate is the timeout we've set to 1 hour. Any chance you hit that case? Does it reproduce on your machine? |
Yes, reproducible right on startup with insiders build: - the workspace contains the typescript sources with installed node_modules 6 times - contents: ![image](https://cloud.githubusercontent.com/assets/900690/18981525/8083bd0e-86df-11e6-9bcb-c107d1ef3643.png) - my settings:{
"files.autoSave": "afterDelay",
"editor.wrappingColumn": 3000,
"editor.folding": false,
"explorer.openEditors.visible": 0,
"workbench.editor.showTabs": false,
"workbench.editor.enablePreview": false,
"git.enableLongCommitWarning": false,
"window.openFilesInNewWindow": true,
"workbench.quickOpen.closeOnFocusLost": true,
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/node_modules/**": true
}
} |
All I do is open/close quick open via Cmd+P in some random order. |
Leaving this for september, @chrmarti please investigate and decide if for september |
@bpasero Might be an artifact from the Activity Monitor. I sometimes see two Moving milestone as there is currently no action planned. Thanks. |
@bpasero Let me know if you get a chance to verify the above. |
@chrmarti yes there are multiple finds spawned:
Easier for me to reproduce:
=> maybe it is an issue that only shows when you open quick open once without typing and once with typing? |
Good finding, the cached promise ended up being canceled. For verification: With a sufficiently large folder it was easy to reproduce. E.g., open the folder containing all your projects, the home folder, the root folder. Make sure there is at most one find process. (Only OSX / Linux.) |
This bug is still present for me. Loading folders with many files (in my case loading the home folder with
Every process uses ~100% of the assigned CPU core which eventually leads to the whole CPU being used. My setup: |
@AlphaBetaPeter maybe better to report this as separate issue to have a fresh look on it 👍 |
@bpasero will do 😉 |
Testing #11035
=> you see more and more dir commands piling up (interestingly the second time you try it seems 2 new dir commands popup instead of one)
=> I would expect the command to be killed when another one starts
The text was updated successfully, but these errors were encountered: