Search Unity

Bug Internal build system error. Backend exited with code after upgrade to 2021.1.4f1 (stable)

Discussion in 'Editor & General Support' started by msh91, Apr 24, 2021.

  1. PizzaPie

    PizzaPie

    Joined:
    Oct 11, 2015
    Posts:
    106
    After updating to 2023.3.25f1 from 2023.1.3f1 keep getting Internal build system error. BuildProgram exited with code -2147024809.
    Project if copied to other location without version control enabled (perforce) builds successfuly for android.

    Anyone getting this one?
    Or is there anywhere a list with internal build errors?
     
  2. Epiplon

    Epiplon

    Joined:
    Jun 17, 2013
    Posts:
    52
    I'm having this problem all of a sudden on 2022.2.19f builds for WebGL and it doesn't tell me what the problem is at all.
    For some reason it works when creating a build through Unity Cloud builds or Windows builds but then I can't reproduce a bug I'm having only with WebGL.
     
  3. DanielSteegmueller

    DanielSteegmueller

    Unity Technologies

    Joined:
    May 3, 2022
    Posts:
    2
    Hey there, as it has been already stated, this thread contains a lot of different problems and possible solutions for them.
    If you get:
    Internal build system error. Backend exited with code 2.
    and you have MacOS 12.3 or higher and probably got this issue after upgrading your OS recently, you need to install python to solve your issue!

    Reason for this is that since MacOS 12.3 python was removed. The fastest way to install python on MacOS is

    1) Open your terminal and type
    2) xcode-select --install
    3) restart Unity

    here is a more detailed answer: https://apple.stackexchange.com/que...e-developer-path-when-attempting-to-use-git-a

    Cheers!
     
  4. abdouljalilagsalah

    abdouljalilagsalah

    Joined:
    May 20, 2023
    Posts:
    2
    Vraiment j'ai constaté ce problème est dû à la mis à jour de sécurité Windows! J’ai activé mon Windows aujourd’hui avec AACT Just avant de rencontrer le problème. Merci !
     
  5. branislavv

    branislavv

    Joined:
    Aug 3, 2021
    Posts:
    6
    Yeah, not for me. I was already on macos 13 and it worked, and then I upgraded unity and it stopped working.
    Also I already had xcode tools installed, so that is not the case.
    Not that it matters much anymore... I gave up unity on mac....
     
  6. tomlugin100

    tomlugin100

    Joined:
    May 6, 2023
    Posts:
    84
    I did the same and after closing and opening unity the error was gone
     
  7. Rikvee

    Rikvee

    Joined:
    Mar 17, 2021
    Posts:
    1
    Hello!
    I had this same issue on Mac using OS 13.4.1, Unity 2021.3.26f1 and Xcode 14.3.1. My project was building fine but then I changed the project's name. Something else may be responsible, but that was the only real change. After that all builds would fail quite quickly.

    I tried the erase the complete "<project name>/Library" folder as suggested here and it fixed the problem.

    Cheers!
     
  8. DevDop

    DevDop

    Joined:
    May 1, 2016
    Posts:
    6
    Deleting Library folder worked for me. I started having the issue right after importing the iOS 14 Ad Support package
     
    jbartelt likes this.
  9. sheikh_Ati

    sheikh_Ati

    Joined:
    Sep 29, 2016
    Posts:
    2
    unity 2021.3.26f1 same issue when importing firebase analytics sdk 11.3.0
    i use mac and as soon as i import and press play btn it prompts me that firebase cppapp-11.3.0 not found
    and in the overlay mac security says that this aplication is from undefined developer and blocked it
    i allowed it from mac system prefrences and relaod unity to play the same error occues
    and when tring to build. the build fail with this error

    Edited:- Turns out my mac os is too old and there was no xcode installed
    so i had to download 10GB xcode 12.3 and install it
    what it did was allowed me to install python properly, its worth noting without xcode any installation of python was getting neglected.
    this resolved my problem
     
    Last edited: Jul 22, 2023
  10. MoctezumaDev

    MoctezumaDev

    Joined:
    Aug 14, 2013
    Posts:
    53
    I have a similar issue running in batchmode on a Docker Windows GameCI image

    I get it in both
    2021.3.28f1
    2021.3.15f1

    Code (CSharp):
    1. Refreshing native plugins compatible for Editor in 6.57 ms, found 14 plugins.
    2. Starting: C:\Program Files\Unity\Hub\Editor\2021.3.15f1\Editor\Data\bee_backend.exe --profile="Library/Bee/backend_profiler0.traceevents" --stdin-canary --dagfile="Library/Bee/1900b0aE.dag" --continue-on-failure ScriptAssemblies
    3. WorkingDir: C:/builds/projects/rsml/project
    4. ExitCode: 4 Duration: 2s231ms
    5. [             ] Require frontend run.  Library/Bee/1900b0aE.dag couldn't be loaded
     
  11. YichenYu525

    YichenYu525

    Joined:
    Dec 8, 2020
    Posts:
    11
    I am still having this isuue on Unity 2021.3.9f1.
    1. The project never has this issue on Windows Unity, but only on some Mac Unity
    2. If I change ANY code of C#, I will have "Internal build system error. Backend exited with code 2", and then I cannot do anything. If I close Unity and reopen, the error is gone.
    3. I got this issue after I upgraded firebase recently. If I deleted firebase completely, this issue is gone.
    4. My mac version is 10.14.6, so I don't think it is python related.
    5. We are using Cache Server, which is set up on a Windows Computer.
    Editor log is something like this (when I am just adding space in AppSettingAssetEditor.cs);

    Registering precompiled user dll's ...
    Registered in 0.087220 seconds.
    Querying for cacheable assets in Cache Server:
    3447e38781551490a80611aff2f85639:Assets/Editor/AppSettingAssetEditor.cs
    Artifact(content hash=bfcd0f78a9a8fc02b4dcc6a1e651edef) downloaded for 'Assets/Editor/AppSettingAssetEditor.cs'
    [ScriptCompilation] Requested script compilation because: Assetdatabase observed changes in script compilation related files
    AssetDatabase: script compilation time: 0.245659s
    Starting: /Applications/Unity/Unity.app/Contents/bee_backend --profile="Library/Bee/backend_profiler0.traceevents" --stdin-canary --dagfile="Library/Bee/1300b0aE.dag" --continue-on-failure ScriptAssemblies
    WorkingDir: /Users/guest1/XXX/XXX
    ExitCode: 2 Duration: 0s92ms
    tundra: error: Unexpected stdin
    Internal build system error. Backend exited with code 2.
    tundra: error: Unexpected stdin
     
  12. ebaadpaf

    ebaadpaf

    Joined:
    Oct 18, 2023
    Posts:
    1
    same issue :(
     

    Attached Files:

  13. sufianahmad_unity

    sufianahmad_unity

    Joined:
    Nov 14, 2023
    Posts:
    1
    For me there was a issue in SDK networks at editor level which was causing this issue. My firebase was not getting connected with Python. I just update all the SDKs to latest and resolve all the issues not this error is gone.
     
  14. football19ers

    football19ers

    Joined:
    Jan 27, 2023
    Posts:
    1
    Hi am new to unity and was making my first project when my project froze. When I shut down and went back in this error was there and i dont know how to fix it.
     
  15. avataris-io

    avataris-io

    Joined:
    Jun 23, 2020
    Posts:
    37
    same isssue for us. we use Unity 2023.2.2. Crahs happens during build for WebGL, when Multithreading is activated. I think it's related to specific combination of Unity packages and Project settings, because project is empty.

    Here is log:
    Code (JavaScript):
    1. Build completed with a result of 'Failed' in 24 seconds (24224 ms)
    2. Internal build system error. BuildProgram exited with code 1.
    3. System.ArgumentException: Another action is already registered for mult/Build/d41d8cd98f00b204e9800998ecf8427e.js.unityweb
    4. New:{
    5.   "Annotation": "Brotli mult/Build/d41d8cd98f00b204e9800998ecf8427e.js.unityweb",
    6.   "DisplayName": "Brotli d41d8cd98f00b204e9800998ecf8427e.js",
    7.   "Action": "\"C:/Program Files/Unity/Hub/Editor/2023.2.1f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Brotli/win_x86_64/brotli.exe\" -o \"mult/Build/d41d8cd98f00b204e9800998ecf8427e.js.unityweb\" -i \"Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm_mt/build.worker.js\" --comment \"UnityWeb Compressed Content (brotli)\"",
    8.   "Inputs": [
    9.     "Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm_mt/build.worker.js"
    10.   ],
    11.   "InputFlags": [
    12.     0
    13.   ],
    14.   "Outputs": [
    15.     "mult/Build/d41d8cd98f00b204e9800998ecf8427e.js.unityweb"
    16.   ],
    17.   "OutputFlags": [
    18.     0
    19.   ],
    20.   "AllowUnexpectedOutput": true,
    21.   "Env": [],
    22.   "DebugActionIndex": -1
    23. }
    24. Existing:{
    25.   "Annotation": "Brotli mult/Build/d41d8cd98f00b204e9800998ecf8427e.js.unityweb",
    26.   "DisplayName": "Brotli d41d8cd98f00b204e9800998ecf8427e.js",
    27.   "Action": "\"C:/Program Files/Unity/Hub/Editor/2023.2.1f1/Editor/Data/PlaybackEngines/WebGLSupport/BuildTools/Brotli/win_x86_64/brotli.exe\" -o \"mult/Build/d41d8cd98f00b204e9800998ecf8427e.js.unityweb\" -i \"Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm_mt/build.framework.js\" --comment \"UnityWeb Compressed Content (brotli)\"",
    28.   "Inputs": [
    29.     "Library/Bee/artifacts/WebGL/build/debug_WebGL_wasm_mt/build.framework.js"
    30.   ],
    31.   "InputFlags": [
    32.     0
    33.   ],
    34.   "Outputs": [
    35.     "mult/Build/d41d8cd98f00b204e9800998ecf8427e.js.unityweb"
    36.   ],
    37.   "OutputFlags": [
    38.     0
    39.   ],
    40.   "ToBuildDependencies": [
    41.     211
    42.   ],
    43.   "AllowUnexpectedOutput": true,
    44.   "Env": [],
    45.   "DebugActionIndex": 212
    46. }
    47.    at Bee.TundraBackend.TundraBackend.AddBackendAction(BackendActionObject actionObject)
    48.    at Bee.TundraBackend.TundraBackend.AddShellCommandAction(ShellCommandArgs args)
    49.    at Bee.Core.Backend.AddAction(String actionName, NPath[] targetFiles, NPath[] inputs, String executableStringFor, String[] commandLineArguments, Boolean supportResponseFile, Dictionary`2 environmentVariables, NPath[] rspAndBatchFiles, Boolean allowUnexpectedOutput, Boolean allowUnwrittenOutputFiles, Boolean banContentDigestForInputs, String[] allowedOutputSubstrings, NPath[] unavoidableOutputs, NPath[] targetDirectories, String[] sharedResources, Nullable`1 deleteOutputsBeforeRun, NPath[] filesThatMightBeIncluded, CachingMode cachingMode, NPath[] cachingInputIgnoreList, NPath profilerOutput, String responseFileSeparator)
    50.    at WebGLPlayerBuildProgram.WebGLPlayer.SetupCompressAndMarkBrotli(NPath input, NPath output)
    51.    at WebGLPlayerBuildProgram.WebGLPlayer.SetupCompression(NPath input, NPath output)
    52.    at WebGLPlayerBuildProgram.WebGLPlayer.SetupPostProcessBuildFile(NPath path)
    53.    at WebGLPlayerBuildProgram.WebGLPlayer.SetupPlayerExecutable()+MoveNext()
    54.    at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
    55.    at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
    56.    at WebGLPlayerBuildProgram.WebGLPlayer.SetupPlayerBuild()
    57.    at PlayerBuildProgramLibrary.PlayerBuildProgramBase.RunBuildProgram()
    58.    at PlayerBuildProgramTypeWrapper.Run(String[] args)
    59.    at Program.Main(String[] args)
    60. UnityEngine.Debug:ExtractStackTraceNoAlloc (byte*,int,string)
    61. UnityEngine.StackTraceUtility:ExtractStackTrace ()
    62. UnityEngine.DebugLogHandler:Internal_Log (UnityEngine.LogType,UnityEngine.LogOption,string,UnityEngine.Object)
    63. UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    64. UnityEngine.Logger:Log (UnityEngine.LogType,object)
    65. UnityEngine.Debug:LogError (object)
    66. UnityEditor.BuildPlayerWindow/DefaultBuildMethods:BuildPlayer (UnityEditor.BuildPlayerOptions)
    67. UnityEditor.BuildPlayerWindow:CallBuildMethods (bool,UnityEditor.BuildOptions)
    68. UnityEditor.BuildPlayerWindow/<>c__DisplayClass40_0:<GUIBuildButtons>b__0 ()
    69. UnityEditor.GenericMenu:CatchMenu (object,string[],int)
    70. UnityEditor.EditorUtility/<>c__DisplayClass146_1:<DoCustomMenu>b__0 (object)
    71. UnityEngine.UIElements.GenericDropdownMenu/MenuItem:PerformAction ()
    72. UnityEngine.UIElements.GenericDropdownMenu:ClickItem ()
    73. UnityEngine.UIElements.GenericDropdownMenu:OnPointerUp (UnityEngine.UIElements.PointerUpEvent)
    74. UnityEngine.UIElements.EventCallbackFunctor`1<UnityEngine.UIElements.PointerUpEvent>:Invoke (UnityEngine.UIElements.EventBase)
    75. UnityEngine.UIElements.EventCallbackRegistry/DynamicCallbackList:Invoke (UnityEngine.UIElements.EventBase,UnityEngine.UIElements.BaseVisualElementPanel,UnityEngine.UIElements.VisualElement)
     
  16. brightdean

    brightdean

    Joined:
    Dec 21, 2023
    Posts:
    1
    Top G
     
  17. sabbath1989

    sabbath1989

    Joined:
    Jan 20, 2016
    Posts:
    14
    I have the same problem in version 2021.3.35f1, I did everything to solve it and nothing, including the steps described above.can help me?
     
  18. sacb0y

    sacb0y

    Joined:
    May 9, 2016
    Posts:
    873
    I have this problem after uninstalling VS2019 after getting a message I should build with 2022, I guess my project was building with 2019 despite that not being the reccomended version?

    Now i'm trying to fix it :/

    Deleting library folder and reinstalling unity has not worked.
     
  19. sacb0y

    sacb0y

    Joined:
    May 9, 2016
    Posts:
    873
    Unable to build IL2CPP in 2021.2 - Unity Forum

    This thread helped, it turned out I needed to install C++ tools in Visual Studio 2022, to do this go to the visual studio installer and select modify then add the C++ desktop tools (or maybe the game one too? I did both to be sure)