Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

WebGL build error

Discussion in 'Editor & General Support' started by johajo, Jan 28, 2021.

  1. johajo

    johajo

    Joined:
    Apr 1, 2014
    Posts:
    23
    Hello,

    I tried finding an answer to my WebGL build error question, but can't seem to find one that fits.
    Sorry for the big chunk of text, but I'm not sure what is relevant.

    I get the following error:

    Exception: Failed running C:\Program Files\Unity\Hub\Editor\2020.2.1f1\Editor\Data\il2cpp/build/BeeSettings/offline/bee.exe --useprebuiltbuildprogram --no-colors

    stdout:
    stderr:
    tundra: error: Failed to remove out of date dag at artifacts\tundra.dag

    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String generatedCppOutputDirectory) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.Boolean platformSupportsManagedDebugging) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <1e441e8684a14fe4b8f8a926d91afc3a>:0)
    UnityEditor.WebGL.WebGlBuildPostprocessor.CompileBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:365)
    UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:912)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <1e441e8684a14fe4b8f8a926d91afc3a>: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 <1e441e8684a14fe4b8f8a926d91afc3a>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)



    Followed by:

    UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <1e441e8684a14fe4b8f8a926d91afc3a>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <1e441e8684a14fe4b8f8a926d91afc3a>:0
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)




    I have no idea what these means. I figured it is some kind of IL2CPP-error (not that it means anything to me...)... It builds fine when building for PC. I've also tried re-importing my project.

    Any kind soul that could help me with this?

    Yesterday it built fine. I did have an crash in the middle of building for WebGL earlier today i f that info helps..

    Big thank you in advance!
     
  2. johajo

    johajo

    Joined:
    Apr 1, 2014
    Posts:
    23
    UPDATE:

    On the off chance that someone gets the same error - I solved by just re-installing Unity.
     
  3. balassanne

    balassanne

    Joined:
    Mar 5, 2021
    Posts:
    3
    I get a similar problem, I even installed a different version of 2020.2, so I had the problem on 2020.2.7f1 and 2020.2.6f1.
    I found no fix so far...


    Exception: Failed running D:\Unity\2020.2.7f1\Editor\Data\il2cpp/build/BeeSettings/offline/bee.exe --useprebuiltbuildprogram --no-colors

    stdout:
    stderr:
    tundra: error: Failed to remove out of date dag at artifacts\tundra.dag

    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <b76552deb4624e46abeeb45b48b7f62d>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <b76552deb4624e46abeeb45b48b7f62d>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String generatedCppOutputDirectory) (at <b76552deb4624e46abeeb45b48b7f62d>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.Boolean platformSupportsManagedDebugging) (at <b76552deb4624e46abeeb45b48b7f62d>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <b76552deb4624e46abeeb45b48b7f62d>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <b76552deb4624e46abeeb45b48b7f62d>:0)
    UnityEditor.WebGL.WebGlBuildPostprocessor.CompileBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:365)
    UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:910)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <b76552deb4624e46abeeb45b48b7f62d>: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 <b76552deb4624e46abeeb45b48b7f62d>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)



    Build completed with a result of 'Failed' in 17 seconds (16630 ms)
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)



    UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in <b76552deb4624e46abeeb45b48b7f62d>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <b76552deb4624e46abeeb45b48b7f62d>:0
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    Unity, what is going on? This is happening for a default project, I just create a new project and want to build it for webGL, this happens. Also this is happening just for gamma color space. Linear color space building stays frozen forever..... You can't be serious about those new version of Unity... :(
     
  4. johajo

    johajo

    Joined:
    Apr 1, 2014
    Posts:
    23
    Man, I feel you. I have no good tips for you unfortunately..Seems like you've tried what I do... The way I solve my issues with this ( and other build issues) are the following:

    1) Restart computer
    2) Uninstall Unity
    3) Restart computer again
    4) Install Unity
    4.5) Restart computer
    5) Create new project and create a cube or square
    6) Build project (WebGL specifically)
    7) Hope that it works
    8) If it worked, Try building my other project

    This process involves a lot of cursing and lying curled upp in a ball. Seems like you've tried this though :(... I might be paranoid but i do restart Windows between installs/uninstalls before building anything. Who knows what memory will be cleared and so on...

    I wish you the best of luck with the project.

    EDIT: Added step 4.5 which I forgot. To lazy to rename
     
    Joe-Censored likes this.
  5. balassanne

    balassanne

    Joined:
    Mar 5, 2021
    Posts:
    3
    That is because this error is happening because Unity I think it's unable to remove build artifacts from a previous build. My main problems is still here, building native binaries with IL2CPP sends unity in a state where it does not waste any resource in any process and it's not responding, with the busy timer incresing up to 3 hours..... no result. I let it run on an empty app because people say webgl lasts a lot, but no. This is an issue, I can't seem to be able to build for webGL..

    The fix for the problem you mentioned it is that indeed, a simple relog to your pc user account would have fixed the issue actually. The question is how do I build for webGL now?
     
  6. wbm001

    wbm001

    Joined:
    Mar 28, 2019
    Posts:
    1
    Any answers on this? i have same issue with an android build 2020.2.7f1
     
  7. marwinwend

    marwinwend

    Joined:
    Apr 4, 2018
    Posts:
    7
    I have the same issue since 2020.1f. I tried several versions till 2021.1f and it's still occuring...
     
  8. Ubrix99

    Ubrix99

    Joined:
    Aug 3, 2014
    Posts:
    5
    Got the same problem after what I think was moving the project folder (with drag and drop) to a new disk.

    A solution that worked for me:
    * create a new empty project
    * export all assets from the previous project
    * import asset to your new empty project
    * build for webgl in the new project
    * Great Success!
     
    u1257351 likes this.
  9. johajo

    johajo

    Joined:
    Apr 1, 2014
    Posts:
    23
    Thanks! Another thing to try the next time I run in to this problem!
     
    u1257351 likes this.
  10. unity_HUtIS7Uum2XnlQ

    unity_HUtIS7Uum2XnlQ

    Joined:
    Sep 4, 2021
    Posts:
    1
    I'm going through the essentials course and have the same problem. I made a project with only a cube in it and get the following error when trying to do a WebGL build:

    Exception: Failed running C:\Program Files\Unity\Hub\Editor\2020.3.17f1\Editor\Data\il2cpp/build/BeeSettings/offline/bee.exe --no-colors --prebuiltbuildprogram="C:\Program Files\Unity\Hub\Editor\2020.3.17f1\Editor\Data\il2cpp/build/BeeSettings/offline/artifacts/buildprogram/buildprogram.exe"

    stdout:
    error: Method not found: 'System.Collections.Generic.IEnumerable`1<!!0> System.Linq.Enumerable.Append(System.Collections.Generic.IEnumerable`1<!!0>, !!0)'. (System.MissingMethodException)
    at Bee.Core.DynamicLoader.GetAllTypesInAssemblies
    at Bee.Core.DynamicLoader.FindAndCreateInstanceOfEachInAllAssemblies
    at Bee.StandaloneBeeDriver..cctor
    at Bee.StandaloneBeeDriver.RealMain
    at Bee.StandaloneBeeDriver.Main
    stderr:

    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <d0e4b8c1204147f3935b6e9c8b8565ad>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <d0e4b8c1204147f3935b6e9c8b8565ad>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo) (at <d0e4b8c1204147f3935b6e9c8b8565ad>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data) (at <d0e4b8c1204147f3935b6e9c8b8565ad>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <d0e4b8c1204147f3935b6e9c8b8565ad>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <d0e4b8c1204147f3935b6e9c8b8565ad>:0)
    UnityEditor.WebGL.WebGlBuildPostprocessor.CompileBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:365)
    UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:913)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <d0e4b8c1204147f3935b6e9c8b8565ad>: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 <d0e4b8c1204147f3935b6e9c8b8565ad>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)
     
  11. unity_E75D1BFCA9468652F633

    unity_E75D1BFCA9468652F633

    Joined:
    Feb 7, 2022
    Posts:
    2
    Hello everyone, I am having some problems on unity:
    - the camera renderer does not display anything, only a black screen
    -the tools tab disappears and I can't create hyperlinks
    -when exporting, an empty folder is created

    I tried to shut down by uninstalling unity, nothing happens.

    Do you have any solutions?

    thank you very much
     
  12. unity_E75D1BFCA9468652F633

    unity_E75D1BFCA9468652F633

    Joined:
    Feb 7, 2022
    Posts:
    2
    This is the result of my game after export ? Can you help me ? The background is too white
     

    Attached Files:

  13. bharathpanchakshari

    bharathpanchakshari

    Joined:
    May 18, 2022
    Posts:
    1
    hello everyone, I am havin ght esame error and it is very frustrating as I am not able to find a fix despite going through everythin gon the google. please any solution would help
     
  14. LuisAlarconGames

    LuisAlarconGames

    Joined:
    Jun 3, 2021
    Posts:
    5
    I was having the same error, yesterday it built fine, suddenly every time i tried building it failed.
    My solution was simply disabling Avast antivirus, and now it builts fine again.
    Not sure why it happened
     
    Last edited: Jun 16, 2022
  15. NewerMan420

    NewerMan420

    Joined:
    Sep 16, 2022
    Posts:
    4
    [Version and Build] Build failed! 00:00:52.0021700
    UnityEngine.Debug:LogError (object)
    Unity.Play.Publisher.Editor.PublisherBuildProcessor/<WaitUntilBuildFinishes>d__7:MoveNext () (at Library/PackageCache/com.unity.connect.share@4.2.3/Editor/PublisherBuildProcessor.cs:77)
    Unity.EditorCoroutines.Editor.EditorCoroutine/YieldProcessor:MoveNext (System.Collections.IEnumerator) (at Library/PackageCache/com.unity.editorcoroutines@1.0.0/Editor/EditorCoroutine.cs:80)
    Unity.EditorCoroutines.Editor.EditorCoroutine:processIEnumeratorRecursive (System.Collections.IEnumerator) (at Library/PackageCache/com.unity.editorcoroutines@1.0.0/Editor/EditorCoroutine.cs:134)
    Unity.EditorCoroutines.Editor.EditorCoroutine:MoveNext () (at Library/PackageCache/com.unity.editorcoroutines@1.0.0/Editor/EditorCoroutine.cs:115)
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
     
  16. OliX_GC

    OliX_GC

    Joined:
    Jan 1, 2022
    Posts:
    2
    I tried to build with WebGl on 3 different versions: 2022.1.23, 2021.2.8, 2020.3.25 an none of them worked
     
  17. MKrzysiek

    MKrzysiek

    Joined:
    Aug 11, 2022
    Posts:
    2
    The same error. Restarting pc doesn't work
     
  18. maxflund

    maxflund

    Joined:
    Jul 30, 2022
    Posts:
    1
    Do you guys have ransomware/bitlocker protection on in windows? I had the same problem as you, and after disabling it finally worked :D
     
  19. SamahAbdullah

    SamahAbdullah

    Joined:
    Jul 25, 2023
    Posts:
    1
    I have attempted to reinstall Unity (this solution didn't work), specifically version 2020.3.48f, which is necessary for a course I am currently taking. However, the reinstallation was unsuccessful.
     

    Attached Files: