-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
WASM AOT compilation runs indefinitely and consumes all system memory with LanguageExt.Core #69166
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to 'arch-wasm': @lewing Issue DetailsDescriptionI am attempting to publish a Blazor WASM application with AOT compilation enabled. The step following the message Reproduction Steps
Expected behaviorThe publish should succeed or fail. The publish should consume a reasonable amount of memory. Actual behaviorThe publish appears to run indefinitely and consumes a crazy amount of system resources. Regression?I have used AOT compilation before in several projects. The issue only began to occur after incorporating this specific nuget package. Known WorkaroundsNo response Configuration.NET SDK 6.0.300 (x64) Other informationNo response
|
cc @vargaz |
The input assembly has about 70k methods, makes heavy uses of generics and valuetypes, so the AOT compiler tries to generate too many generic instances, running out of memory. I'd suggest not trying to use this assembly with wasm+aot, or wasm at all. Even if this problem is fixed, build speeds are still going to be very slow and the resulting app will going to be very large. |
Understood. Thank you for looking into this. My main concern was the existence of a bug. |
Please re-open if I closed this incorrectly. |
Description
I am attempting to publish a Blazor WASM application with AOT compilation enabled. The step following the message
AOT'ing ## assemblies
will run indefinitely whenever the nuget packageLanguageExt.Core
is installed. Opening up Task Manager will reveal all available system memory (25 GB in my case) is being consumed by Visual Studio. In some cases, Task Manager will also report Disk Usage of 200+ MB/s.Reproduction Steps
LanguageExt.Core
v4.1.0. You do not need to reference this project in any source files - just add the nuget.Expected behavior
The publish should succeed or fail. The publish should consume a reasonable amount of memory.
Actual behavior
The publish appears to run indefinitely and consumes a crazy amount of system resources.
Regression?
I have used AOT compilation before in several projects. The issue only began to occur after incorporating this specific nuget package.
Known Workarounds
No response
Configuration
.NET SDK 6.0.300 (x64)
Visual Studio 2022 (64-bit) v17.2.0
Windows 10 Pro, v21H1, build 19043.1645
Other information
No response
The text was updated successfully, but these errors were encountered: