2
Vote

Memory exhaustion on project-scoped style analysis.

description

When I run stylecop from visual studio on a managed project within a large solution containing many native projects and a few managed projects, it frosts and eventually kills studio with the following message:

"Microsoft Visual Studio has encountered a problem and needs to close. This may have been caused by low virtual memory levels that were detected prior to closing. Would you like help troubleshooting this problem?"

I've been observing this behavior since at least 4.7.6, though it may have been introduced sooner. I did not observe this behavior in 4.3.2.1.

It not not unique to the project. If I perform a stylecop analysis on any managed project within the large solution, the failure mechanism is the same. Typically the output window will display Pass 1 for nothing or for three or four files before the memory usage explodes. If I run stylecop on a project in a smaller, exclusively managed solution on any project, it works fine.

comments

airhed13 wrote Feb 14 at 7:47 PM

(Though if the debug build isn't linked to from this issue, I'm not sure where I'll have to go to get it. :) )

airhed13 wrote Feb 14 at 7:11 PM

I'd be happy to. :)

andyr wrote Feb 14 at 5:26 PM

Ok. I'll do a debug build of 4.7.10 for you. If you can install that and repro and then send me the log file it would help tremendously.