Search Issue Tracker

Fixed in 2021.1.X

Fixed in 2020.3.X

Votes

0

Found in

2020.3

Issue ID

1327846

Regression

Yes

[2021.1] IL2CPP build fails due to a crash in Tundra (introduced by 0-change player build)

IL2CPP

-

Reported on Forums: https://forum.unity.com/threads/il2cpp-development-build-fails-since-unity-2020-2.1084859/#post-6991988

In some cases, IL2CPP build fails with error:
Exception: Failed running C:\Program Files\Unity\Hub\Editor\2020.2.2f1\Editor\Data\il2cpp/build/BeeSettings/offline/bee.exe --useprebuiltbuildprogram --no-colors

stdout:
[ ] Require frontend run. tundra.dag no longer valid. FileSignature timestamp changed: il2cpp_settings.json
[ 0s] Executed build program. Created build graph with 2 nodes.
[ 0s] Freezing tundra.dag.json into .dag (.dag file didn't exist)
[BUSY 6s] Il2Cpp .../Library/Il2cppBuildCache/Windows/x64/Native/GameAssembly.dll
...
[BUSY 526s] Il2Cpp .../Library/Il2cppBuildCache/Windows/x64/Native/GameAssembly.dll
stderr:
tundra: error: Out of memory in linear allocator: dynamicOutputDirectories

UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <433cbae83977409887e43d50043210d2>:0)
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <433cbae83977409887e43d50043210d2>:0)
UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String generatedCppOutputDirectory) (at <433cbae83977409887e43d50043210d2>:0)
UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.Boolean platformSupportsManagedDebugging) (at <433cbae83977409887e43d50043210d2>:0)
UnityEditorInternal.IL2CPPBuilder.Run () (at <433cbae83977409887e43d50043210d2>:0)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <433cbae83977409887e43d50043210d2>:0)
DesktopStandalonePostProcessor.RunIL2CPP (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, System.Collections.Generic.List`1[T] cppPlugins) (at <433cbae83977409887e43d50043210d2>:0)
DesktopStandalonePostProcessor.SetupStagingArea (UnityEditor.Modules.BuildPostProcessArgs args, System.Collections.Generic.HashSet`1[T] filesToNotOverwrite) (at <433cbae83977409887e43d50043210d2>:0)
DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <433cbae83977409887e43d50043210d2>:0)
Rethrow as BuildFailedException: Exception of type 'UnityEditor.Build.BuildFailedException' was thrown.
DesktopStandalonePostProcessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at <433cbae83977409887e43d50043210d2>:0)
UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <433cbae83977409887e43d50043210d2>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <433cbae83977409887e43d50043210d2>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

This is due to a crash in Tundra. This only happens after we use Bee for 0-change player builds on 2020.3.

Can reproduce by changing DefaultMethodBodyChunkSize inside IL2CPP, generating ~4000 cpp files.

  1. Resolution Note (fix version 2021.1):

    Fixed a crash in Tundra that can happen when IL2CPP generates a large amount of files. Fixed handling special chars in project path.

Comments (4)

  1. radiantboy

    Dec 28, 2021 09:20

    Tundra constantly causes issues when you have a weird username, like chinese. It might be related I wish they would fix it.

  2. ChunkNorris

    Sep 14, 2021 10:39

    Still not working on 2020.3.19f1 on development builds

  3. chrust33

    Aug 14, 2021 14:04

    Still not working on 2020.3.16f1 on development builds

  4. BokerTCM

    Jul 22, 2021 09:38

    Still not working on 2020.3.14f1 on development builds

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.