Search Unity

Bug Persistent error: Internal build system error. Backend exited with code 2.

Discussion in 'Editor & General Support' started by Haseeb_BSAA, Dec 2, 2022.

  1. Haseeb_BSAA

    Haseeb_BSAA

    Joined:
    Aug 20, 2014
    Posts:
    316
    [Unity 2021.3.15f1 LTS]

    I've never been this frustrated with an error as much as this one. Pulling my hair out, tried almost EVERYTHING I could, nothing worked.

    Here's what I tried:

    1.Reinstalled Unity
    2.Reinstalled Unity Hub
    3.Downloaded standalone version of Unity
    4.Deleted Bee folder
    4.Deleted Library folder
    5.Deleted all folders aside from Assets
    6.Created new projects
    7.Restarted PC
    8.Deleted all Unity folders/content from C drive, did a fresh install in D drive.

    Despite of all the efforts, the moment I load any project or create a new project, it gives me this error at the very start.

    upload_2022-12-2_21-24-58.png

    Internal build system error. Backend exited with code 2.
    STDOUT:
    [ 0/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/UnityEngine.TestRunner.AdditionalFile.txt
    [ 1/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/Unity.Services.Core.rsp
    [ 2/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/Unity.VisualScripting.Core.rsp
    [ 3/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/UnityEngine.UI.AdditionalFile.txt
    [ 4/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/Unity.RenderPipelines.Core.Runtime.rsp
    [ 5/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/UnityEditor.TestRunner.AdditionalFile.txt
    [ 6/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/Unity.Services.Core.Internal.AdditionalFile.txt
    [ 7/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/UnityEditor.UI.AdditionalFile.txt
    [ 8/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/Unity.Services.Core.Internal.rsp
    [ 9/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/Unity.VisualScripting.Flow.AdditionalFile.txt
    [ 10/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/Unity.VisualScripting.Flow.rsp
    [ 11/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/UnityEngine.TestRunner.rsp
    [ 12/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/UnityEngine.UI.rsp
    [ 13/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/UnityEditor.UI.rsp
    [ 14/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/UnityEditor.TestRunner.rsp
    [ 15/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/Unity.Burst.AdditionalFile.txt
    [ 16/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/Unity.Services.Core.AdditionalFile.txt
    [ 17/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/Unity.Burst.rsp
    [ 18/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/Unity.VisualScripting.Core.AdditionalFile.txt
    [ 19/621 0s] WriteText Library/Bee/artifacts/1900b0aE.dag/Unity.RenderPipelines.Core.Runtime.AdditionalFile.txt
    [ 20/621 0s] MovedFromExtractor Library/Bee/artifacts/mvdfrm/UnityEngine.DirectorModule.dll_B5FB015BD6DD8AA4.mvfrm
    [ 21/621 0s] MovedFromExtractor Library/Bee/artifacts/mvdfrm/UnityEngine.CrashReportingModule.dll_29B5D1A84068D8BF.mvfrm
    [ 22/621 0s] MovedFromExtractor Library/Bee/artifacts/mvdfrm/UnityEngine.dll_7EB89D87A0C54C1E.mvfrm
    [ 23/621 0s] MovedFromExtractor Library/Bee/artifacts/mvdfrm/UnityEngine.DSPGraphModule.dll_BB4C62C5493E5BC5.mvfrm
    [ 24/621 0s] MovedFromExtractor Library/Bee/artifacts/mvdfrm/UnityEngine.GameCenterModule.dll_C9E24057061AB91F.mvfrm
    [ 25/621 0s] MovedFromExtractor Library/Bee/artifacts/mvdfrm/UnityEngine.GIModule.dll_9E1528C488B4B28A.mvfrm
    [ 26/621 0s] MovedFromExtractor Library/Bee/artifacts/mvdfrm/UnityEngine.GridModule.dll_E6272B6C376ED8BE.mvfrm
    [ 27/621 0s] MovedFromExtractor Library/Bee/artifacts/mvdfrm/UnityEngine.HotReloadModule.dll_EE90C79F806A1192.mvfrm
    [ 28/621 0s] MovedFromExtractor Library/Bee/artifacts/mvdfrm/UnityEngine.ImageConversionModule.dll_C765B99043EA925D.mvfrm
    [ 29/621 0s] MovedFromExtractor Library/Bee/artifacts/mvdfrm/UnityEngine.IMGUIModule.dll_B18DA055585DE6E3.mvfrm
    STDERR:
    tundra: error: Couldn't launch process with command line:
    cmd.exe /c ""D:\UnityEditors\Unity 2021.3.15f1\Editor\Data\Tools\netcorerun\netcorerun.exe" "D:/UnityEditors/Unity 2021.3.15f1/Editor/Data/Tools/ScriptUpdater/ApiUpdater.MovedFromExtractor.exe" "Library\Bee\artifacts\mvdfrm\UnityEngine.LocalizationModule.dll_D0F9FA4FB18D1A11.mvfrm" "D:\UnityEditors\Unity 2021.3.15f1\Editor\Data\Managed\UnityEngine\UnityEngine.LocalizationModule.dll""
    errno: 0 (No error) GetLastError: 5 (0x00000005): Access is denied.

    ______________

    I started having this issue the moment I installed new input system from package manager, although I uninstalled it immediately but the problem still exists. So I'm not sure if that's what caused the error.

    I've seen many threads on this issue, and none of the solutions worked for me, and what's ridiculous is that there seems to be no DEFINITIVE fix for this, nor do we seem to know the reason.
    It's a huge waste of time and I practically can't do anything.

    Any help is appreciated.
     
    Last edited: Dec 2, 2022
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    38,697
    How to troubleshoot build failures:

    First, make a blank project with a single blank scene and prove that it builds successfully.

    If the blank project does NOT build, go fix your Unity installation or your other tools, such as Android SDK, NDK, JDK, etc. It may even be necessary to change to a different version of Unity3D. It is generally best to stay with LTS versions of Unity3D.

    Until you can build a blank project to the target platform, don't fiddle with anything else.

    Once you can build a blank project, now bisect the problem by bringing over parts of your current project and building it one subsystem at a time, perhaps stubbing things out that might trigger compiler errors.

    Most often things that prevent building are third-party libraries such as Firebase.

    Once you identify the subsystem, go to the documentation for it and make sure you are doing it correctly.

    It may also be helpful to work through a tutorial or two for whatever subsystem is making the build fail.

    Android build not building:

    Recently (circa July 2022) there have been reports of Unity's installer failing to install the Android Tools.

    https://forum.unity.com/threads/cant-build-for-android.1306098/

    Here was how I brought up Unity2020.3.41 and the Android SDK 31 on October 30, 2022:

    https://forum.unity.com/threads/aab...y-2021-3-8-with-jdk-1-8.1322211/#post-8551193

    Android Gradle errors and other related stuff:

    https://forum.unity.com/threads/unity-gradle-bug-please-help.1368018/#post-8625789
     
  3. Haseeb_BSAA

    Haseeb_BSAA

    Joined:
    Aug 20, 2014
    Posts:
    316
    I missed to mention my Unity version (done now), it is actually Unity 2021.3.15f1 LTS.
    Secondly, I'm not even trying to build anything, I'm just trying to develop the game for now. But it won't let me do anything because the moment I click "Play", it says the compiler errors need to be fixed.
    As I mentioned, I've tried pretty much all the solutions related to this problem, nothing seems to work.
     

    Attached Files:

  4. Haseeb_BSAA

    Haseeb_BSAA

    Joined:
    Aug 20, 2014
    Posts:
    316
    Update:
    Alhamdulillah the problem is fixed!
    I was about to reinstall Windows but I tried one last trick. I checked my system tray and there was "RAV Endpoint Protection" antivirus, I uninstalled that. I also unchecked "Read-Only" from my project folders and Unity editor/hub folders.
    And the problem is gone!
     
    Kurt-Dekker likes this.
  5. Rashmika98

    Rashmika98

    Joined:
    Sep 24, 2022
    Posts:
    9
    Hi, I uninstalled RAV antivirus but still I'm getting that error. What did you mean by ' unchecked "Read-Only" from my project folders and Unity editor/hub folders.'?
     
  6. unity_270018

    unity_270018

    Joined:
    Mar 20, 2023
    Posts:
    1
    tell me why ant nothin but a heart break
     
  7. kalpolibrahim

    kalpolibrahim

    Joined:
    Sep 25, 2021
    Posts:
    4
    can you be more specific about what you did? how did you find the antivirus i might be having the same problem.
     
  8. Rashmika98

    Rashmika98

    Joined:
    Sep 24, 2022
    Posts:
    9
    It was mentioned it above. You can check whether it was installed through the control panel.
     
  9. HAmmodh55

    HAmmodh55

    Joined:
    Jul 22, 2022
    Posts:
    1
    Right click unity folder select properties and un check read-Only its at the bottem
     
  10. pixboy03322

    pixboy03322

    Joined:
    Oct 17, 2023
    Posts:
    1
    Simply just delete your project library folder.
    THen open your project
     
  11. unity_0BE8DDD181BB8FC3E538

    unity_0BE8DDD181BB8FC3E538

    Joined:
    Jul 13, 2023
    Posts:
    1
    Hi all, what helped me was that I completely disabled the built-in virus protection. upload_2024-3-5_16-58-31.png