-
Notifications
You must be signed in to change notification settings - Fork 803
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
F# requires more than 4GB of disk and/or memory to compile projects #9175
Comments
The errors you're seeing are just the message from a caught exception during .dll import. So unfortunately it's unclear if it's related to disk storage space or memory. I suspect it is more the latter, especially since R# is in use. R# balloons memory usage in the devenv.exe process, and with F# already being heavy as well, it's not too surprising that you're getting an OOM with two memory hogs basically fighting for a small address space. The best way to tell for sure is to follow these steps when you notice memory being super high: https://github.com/dotnet/roslyn/wiki/Reporting-Visual-Studio-crashes-and-performance-issues#performance-issues Using the second VS instance to record the first one and submitting the 30s or longer trace. This goes through a GDPR-compliant pipeline and is subject to other confidentiality rules we have in place. The trace itself won't contain any information other than where the compiler/tools spend their time and where memory gets allocated. Only with a trace can we have an indication as to what's happening. |
Thanks - that's what I needed. |
I'll close this and re-open if it is clear F# is at fault. |
F# is telling me there is not enough storage to finish compiling. It is not clear if this is RAM storage or disk storage, but I am assuming it is disk storage. However, given Visual Studio 2019 remains 32-bit, it is not unthinkable that F# is running out of 32-bit address space if hosted in-process as opposed to out-of-process with IPC message pump a'la Visual Studio Code.
Possibly related to #6866, #8044. For 8044, see also my comment there: #8044 (comment) for FS error numbers and error messages produced.
Repro steps
Provide the steps required to reproduce the problem:
I cannot attach a repro given internal nature of project, but may be able to generate msbuild binary log files if helpful - need to reach out to my superior and possibly Legal to discuss. Would need to privately send to Microsoft developers, not upload to GitHub, in either case.
Expected behavior
Actual behavior
Vague out of storage errors.
Known workarounds
Restart Visual Studio every ~15-30 minutes.
Related information
Provide any related information (optional):
The text was updated successfully, but these errors were encountered: