Search Unity

Can't build for WebGL with exceptions set to Full With Stacktrace

Discussion in 'Web' started by dave_oak, Sep 17, 2020.

  1. dave_oak

    dave_oak

    Joined:
    Oct 7, 2015
    Posts:
    26
    Hi,
    I can build my project fine with exceptions set to Explicitly Thrown Exceptions Only. When I switch to Full With Stacktrace for debugging purposes, I get the following error. Any ideas how to get around this? Thanks!


    Exception: Failed building WebGL Player.

    UnityEditor.WebGL.ProgramUtils.StartProgramChecked (System.Diagnostics.ProcessStartInfo p) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/ProgramUtils.cs:48)

    UnityEditor.WebGL.WebGlBuildPostprocessor.EmscriptenLink (BuildPostProcessArgs args, Boolean wasmBuild, System.String sourceFiles, System.String sourceFilesHash) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:432)

    UnityEditor.WebGL.WebGlBuildPostprocessor.LinkBuild (BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:482)

    UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:954)

    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at /Users/bokken/buildslave/unity/build/Editor/Mono/Modules/DefaultBuildPostprocessor.cs:27)

    UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTargetGroup targetGroup, BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at /Users/bokken/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:288)

    UnityEngine.GUIUtility:processEvent(Int32, IntPtr) (at /Users/bokken/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)
     
  2. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    953
    There should be another error log about the Emscripten specific error messages.

    Gut feeling is that the generated code size with Full exceptions was too large for Emscripten to handle.

    Does the error occur also on empty project if you enable Full exceptions in it?
     
  3. balassanne

    balassanne

    Joined:
    Mar 5, 2021
    Posts:
    3
    Exception: Failed running D:\Unity\2021.1.0b8\Editor\Data\il2cpp/build/BeeSettings/offline/bee.exe --no-colors --prebuiltbuildprogram=D:\Unity\2021.1.0b8\Editor\Data\il2cpp/build/BeeSettings/offline/artifacts/buildprogram/buildprogram.exe

    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 <5c963931ea5c41c59d3071fbccd30e0e>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <5c963931ea5c41c59d3071fbccd30e0e>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String generatedCppOutputDirectory) (at <5c963931ea5c41c59d3071fbccd30e0e>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.Boolean platformSupportsManagedDebugging) (at <5c963931ea5c41c59d3071fbccd30e0e>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <5c963931ea5c41c59d3071fbccd30e0e>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <5c963931ea5c41c59d3071fbccd30e0e>: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 <5c963931ea5c41c59d3071fbccd30e0e>: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 <5c963931ea5c41c59d3071fbccd30e0e>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)


    You seem to have a lot of problems on empty projects for webGL :( .. I just want to build an empty web gl project please, with your freshly downloaded Unity 2021.1.0b8 or 2020.2.7f1... Is there any way to do it...? I seem to have either this, either infinite freeze time on building il2cpp binaries...
     
  4. PieterAlbers

    PieterAlbers

    Joined:
    Dec 2, 2014
    Posts:
    246
    we have this too - pretty nasty as I we're in need of a proper development build inc. full stacktrace.

    Any workarounds?
     
  5. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    953
    The error

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

    suggests that the Unity build system was not able to delete a file on the file system? Can you check if that file exists? Try closing Unity and manually deleting the file manually if it does exist. Also purging the Library/ directory for the project might be worth the shot.