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
Microsoft CodeAnalysis OOM Exception #24055
Comments
@sharwell @heejaechang - Do we have a tracking issue for our memory usage drastically increasing on switching git branches? The feedback link mentions switching git branches as the major culprit. I have seen it very often while working on Roslyn as well. |
I think it probably the same tagger issue since switching git branch will cause a lot of document to be changed causing a lot of files to be re-analyzed, raising a lot of diagnostic changed events, all pushed into UI queue and OOM. |
@heejaechang I reviewed the heap dump and can confirm that this is the |
@chillryan I just reviewed your feedback history. Several items have comments linking back to an internal bug we refer to as the " |
@sharwell thanks for update. Is there a feedback link for |
@chillryan Not specifically. If so, most of them were filed by you. 😆 There were multiple proposed solutions which are in the final evaluation stage. I'll link whichever one we settle on back to this issue. |
@sharwell - Can you confirm if the attached file is related to the same issue? I'd like to make sure before creating a bug report for VS. I can provide a full memory dump (uploaded privately) if needed but it sounds like your team is aware of the cause. TIA devenv.exe__PID__62124__Date__01_10_2018__Time_10_51_38AM__41__Manual Dump_MultipleRules.zip |
@udlose I would need a full heap dump to confirm. Better to just submit a new feedback ticket. Feel free to mention that it should be directed to me for initial investigation. 😄 |
@sharwell - new defect is at VS Crash with OutOfMemoryException. There are 11,299,087 instances of
|
That's definitely the same bug. This situation results a large amount of unnecessary computation that has ramifications vastly exceeding the size of the list itself. |
is there native code used by those |
fixed via #23448 |
@jinujoseph what release number of VS will this be included in? |
15.7 onward |
I only started experiencing this problem today - with all projects - despite having no problem with VS Pro 2017 for months. I tried upgrading to 15.5.6 with no success. Application: devenv.exe Followed by: Faulting application name: devenv.exe, version: 15.0.27130.2010, time stamp: 0x5a31e4ea |
@Panoone That appears to be a different issue. It's not an OOM, but rather a type-load failure. |
@Panoone i had a fellow dev hit that same problem. The fix was to install .net 4.7.1. For some reason it's looking for those assemblies. Once it was installed, the problem was solved. |
@udlose Thanks, Dave. I'll give it a go. There was a significant Windows 10 update last night and I'm assuming something in that was the culprit. |
@udlose Yep, upgrading .NET Framework resolved the issue. Thanks again. |
Ported from dotnet/roslyn-analyzers#1503
@chillryan
I've reported this issue through the visual studio feedback tool see link but figured I'd try my chances posting here.
I'm using the Code Analysis 2017 extension for VS 2017 15.5. In looking at the stack trace, I can only assume that since the extension is running inside the devenv process, when its analysis a loaded solution, it hits the OOM.
Since I've hit this situation a very frequent basis, I've disabled solution analysis for C# projects hoping that will help. I'll report back here if there are any changes or comment on the visual studio feedback link posted prior.
The text was updated successfully, but these errors were encountered: