-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
deleted project hierarchy leaked through VisualStudioProjectTracker #10358
Comments
@lifengl: Does this repro with regular csproj as well? Is it possible that CPS isn't calling the same method on remove that we normally listen to in order to clean up projects (Mostly |
adding another repro step. reported by @adriansecchia Repro on Dev14 Update3
This leaks:
The CSharpProjectShimWithServices grows by 1 each iteration. There is only 1 VisualStudioProjectTracker+WorkspaceHostState |
link to specific customer comments #7082 (comment) |
@jasonmalinowski As written in #7082 , it would be great if this could also be fixed in roslyn 1.4 (VS2015) because I think this is the reason I still have to restart VS some times a day because of excessive memory usage due to git branch switching or git rebasing. |
Version Used: new version inserted into Dev 15 code
Steps to Reproduce:
Expected Behavior:
no project object hold in the memory after it is deleted.
Actual Behavior:
leak through this chain:
-> 1c35480c Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.DocumentKey
-> 1c24ffe8 Microsoft.VisualStudio.LanguageServices.CSharp.ProjectSystemShim.CSharpProjectShimWithServices
-> 1c1a0714 Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.VisualStudioProjectTracker
-> 1c1a0808 System.Collections.Generic.List
1[[Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.VisualStudioProjectTracker+WorkspaceHostState, Microsoft.VisualStudio.LanguageServices]] -> 23833ad0 Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.VisualStudioProjectTracker+WorkspaceHostState[] -> 1c1a0f78 Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.VisualStudioProjectTracker+WorkspaceHostState -> 1c1a0f90 System.Collections.Generic.HashSet
1[[Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.AbstractProject, Microsoft.VisualStudio.LanguageServices]]-> 1c262a80 System.Collections.Generic.HashSet`1+Slot[[Microsoft.VisualStudio.LanguageServices.Implementation.ProjectSystem.AbstractProject, Microsoft.VisualStudio.LanguageServices]][]
-> 23c9829c Microsoft.VisualStudio.LanguageServices.CSharp.ProjectSystemShim.CSharpProjectShimWithServices
-> 23acc8d0 Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.ProjectNode
-> 23aadeb8 Microsoft.VisualStudio.ProjectSystem.UnconfiguredProjectImpl
The text was updated successfully, but these errors were encountered: