question

ribkix-2977 avatar image
0 Votes"
ribkix-2977 asked ribkix-2977 commented

Visual Studio OutOfMemory errors when saving files

When I save a file in Visual Studio I get OutOfMemory errors. I literally have 32 GB of memory but ok. I tried to report the problem but the feedback page keeps saying that I don't have Visual Studio open. I have tried repairing Visual Studio already, updated and everything but it all doesn't help. I am experiencing this issue with WinForms C#.

84877-image.png



It's for sure this isn't a RAM issue, but also not a CPU issue. My CPU is AMD Ryzen 7 3700X 8-Core so this shouldn't be occuring.

vs-general
image.png (6.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

cooldadtx avatar image
0 Votes"
cooldadtx answered cooldadtx commented

VS is limited to 4GB as it is a 32-bit process so having 32GB doesn't really help here. To help alleviate this newer updates to VS have started moving lots of stuff out of process to reduce memory constraints. However you can still run out of memory for large enough solutions.

I would recommend that you use the Report a Problem in the top right of VS to report the issue. As part of this you can replicate the issue while recording the problem and this will send the necessary information to MS for diagnostics.

You might also need to temporarily disable any extensions you are running to eliminate an issue with extensions. Extensions like ReSharper and CodeRush can use up a lot of memory, causing issues.

· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I also mentioned that I already tried doing that but the webpage keeps saying I don't have Visual Studio open while I do. I don't have any extensions on at all.

0 Votes 0 ·

Are you running the latest update to VS? I've seen an issue a while back with a VS update that caused the feedback page to not work properly. I believe that issue has been resolved.

I don't believe we are going to be able diagnose this for you as it requires looking at the dumps of the process to see what is using up the memory. You could debug VS from another instance of VS to see where the memory is going.

0 Votes 0 ·

I also mentioned that I updated Visual Studio already, and how exactly do I do "You could debug VS from another instance of VS to see where the memory is going."?

0 Votes 0 ·
Show more comments
DylanZhu-MSFT avatar image
0 Votes"
DylanZhu-MSFT answered ribkix-2977 commented

Hi ribkix,

We suggest you report this problem through visual studio installer.
85173-image.png

Best Regards,
Dylan


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


image.png (22.2 KiB)
· 10
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I keep getting Disconnected from Visual Studio

0 Votes 0 ·

Hi @ribkix-2977 , you can try to open C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installershell.exe, if the report problem page still doesn't work, please go to C:\ProgramData\Microsoft\VisualStudio\Packages, and confirm if the _Instances folder exists, if not, I'm afraid that you need to re-install visual studio.

0 Votes 0 ·

the page is still not working and the _Instances folder is definitely there. I have reinstalled VS like 5 times and it didn't help anything at all.

0 Votes 0 ·
Show more comments