-
Notifications
You must be signed in to change notification settings - Fork 9
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
ILT0005 Out of memory when building release mode #9
Comments
For CommunityToolkit/Labs-Windows#211 it was just a general exit code, but it may be the same thing. The guidance from the threads in dotnet/corert#5604 was to turn the 64-bit mode on for .NET Native. I tried that in CommunityToolkit/Labs-Windows#211 but then I think it causes issues with all the MSTest warnings we have about something that's misconfigured there. Did you want to try just bringing over 92ecbc47988d76bc1057e96fda413a80f9abf6ce in a separate branch and seeing if you can add the missing dependencies (if that's the issue) to the test projects?
https://github.com/CommunityToolkit/Labs-Windows/runs/7735671450?check_suite_focus=true#step:9:16694 |
@michael-hawker In case it helps, we discovered and applied a number of fixes in here (different project) that we could try. |
Also see Sergio's comment here: CommunityToolkit/Labs-Windows#290 (comment) |
@michael-hawker This is one of the fixes I intended to try when I got time. From here, any one of these could help us mitigate the error for now: <Use64BitCompiler>true</Use64BitCompiler>
<PreferredToolArchitecture>x64</PreferredToolArchitecture>
<SingleThreadNUTC>true</SingleThreadNUTC>
<UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
<EnableGatekeeperAnalysis>true</EnableGatekeeperAnalysis>
<ShortcutGenericAnalysis>true</ShortcutGenericAnalysis> <!-- Can help stop runaway analysis of generic types and reduce overall generation requirements. -->
<OutOfProcPDB>true</OutOfProcPDB> <!-- Opt-in to generate PDB's out of process --> From past experience with this bug, I don't expect any of these to solve the problem permanently, but we can try them. |
In CommunityToolkit/Labs-Windows#211, we managed to make ILT0005 happen on every CI run. After investigating, we found: [View CI run] ILT0005 happens every time when |
@Arlodotexe |
ILT0005 is an out of memory error, it could be that using the 64 bit compiler increased the memory used beyond the 4GB limit on 32-bit processes and caused the error to happen more often. |
Hitting this a ton on CommunityToolkit/Labs-Windows#405, thought we had some of the flags enabled, but don't see them. From @Sergio0694:
@Arlodotexe I think these caused other warnings to turn as errors at one point too which we had to resolve, but I'll try pushing a branch with just them enabled in the UWP props file and see what happens. |
Add Use64BitCompiler and OutOfProcPDB flags to release mode build Update to 6.2.14 of Microsoft.NETCore.UniversalWindowsPlatform .NET Native package
A workaround suggested by a member of the UWP Community (see here and here) seems to do what we need in the CI. There are other variants of ILT0005 that can happen locally (involving PDB write errors), but these are no longer appearing in this project. We'll close this for now, if CommunityToolkit/Labs-Windows#431 passes. |
Describe the bug
Here goes nothing.
In the CI, we've hit ILT0005, and an out of memory error. Only WinUI 2 failed to build, and no app-affecting code was changed for this CI run.
I've seen this before - I've been having this issue in a project's CI for several months, and I've already spent 2 weeks researching and trying to fix this error.
This is the first time I've seen it happen in Labs, but if this is related, then it's more or less random and only present on mid to low-spec machines. It's not reproducible in a VM and it's going to happen more frequently the more code we put into Labs.
There are some mitigations that we can try anyway, but I'm not expecting it to be that easy.
Steps to reproduce
Expected behavior
A buildable repo should consistently pass CI
Screenshots
Code Platform
Windows Build Number
Other Windows Build number
No response
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
No response
Additional context
No response
Help us help you
Yes, but only if others can assist.
The text was updated successfully, but these errors were encountered: