Search Issue Tracker
By Design
Votes
0
Found in
2021.3.45f1
2022.3.53f1
6000.0.31f1
6000.1.0a8
6000.2.0a1
Issue ID
UUM-90456
Regression
No
[IL2CPP] Extremely high memory usage when building for Linux platform
Reproduction steps:
1. Open the attached “IN-90045” project
2. Open the Build Settings window (File > Build Settings)
3. Make sure “Linux” is the selected platform
4. Make a Clean Build of the project
5. Observe the Build progress
Expected result: The Build finishes successfully
Actual result: Memory usage keeps increases on “Linking GameAssembly.so (x64)” task
Reproducible with: 2021.3.45f1, 2022.3.53f1, 6000.0.31f1, 6000.1.0a8
Reproducible on: Ubuntu 24.04, Windows 10, Arch (user)
Note:
- On Linux machines with lower amount of RAM, the task is terminated by OOM killer.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android] Safe area ignores navigation bar on Android when targeting level 35 API or higher
- File watcher does not trigger after the AcquireFloatingLease and before the Entitlement check
- HDR Output gets disabled in the Editor when Reflection Probe is enabled during runtime
- The "Build and Run" Menu option tries to build for the selected Build Platform instead of the Active Build Platform
- Font kerning breaks at runtime when multiple UI Documents use different fonts
Resolution Note:
I will mark this as designed, as the issue is caused by the C++ Compiler configuration being set to Master. As stated in the documentation: "Master configuration enables all possible optimizations, squeezing every bit of performance possible. For instance, on platforms that use the MSVC++ compiler, this option enables link-time code generation. Compiling code using this configuration can take significantly longer than it does using the Release configuration. Unity recommends building the shipping version of your game using the Master configuration if the increase in build time is acceptable."