Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

WebGL Build - Error

Discussion in '2021.2 Beta' started by Welfarecheck, Mar 5, 2021.

  1. Welfarecheck

    Welfarecheck

    Joined:
    Jun 14, 2020
    Posts:
    115
    Get this error when exporting to WebGL - Other builds Windows/Android work. WebGL worked in 2019.

    Exception: Unity.IL2CPP.Building.BuilderFailedException: "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe" -E "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc" -o "C:\Unity\a2021alpha\Library\il2cpp_cache\linkresult_C26FBACCA268E3DDFF0B4FB4A9E37FC0\build.bc" -s TOTAL_MEMORY=384MB -s DISABLE_EXCEPTION_CATCHING=0 -s WASM=0 -O3 --llvm-lto 3 "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AccessibilityModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AIModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AndroidJNIModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AnimationModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AssetBundleModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AudioModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_ClothModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_CoreModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_CrashReportingModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_DirectorModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_DSPGraphModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_GameCenterModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_GIModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_GridModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_HotReloadModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_ImageConversionModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_IMGUIModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_InputLegacyModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_InputModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_JSONSerializeModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_LocalizationModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_ParticleSystemModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_PerformanceReportingModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_Physics2DModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_PhysicsModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_ProfilerModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_RuntimeInitializeOnLoadManagerInitializerModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_ScreenCaptureModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_SharedInternalsModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_SpriteMaskModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_SpriteShapeModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_StreamingModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_SubstanceModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_SubsystemsModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainPhysicsModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextCoreFontEngineModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextCoreTextEngineModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextRenderingModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TilemapModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TLSModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIElementsModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIElementsNativeModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UmbraModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UNETModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityAnalyticsModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityConnectModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityCurlModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityTestProtocolModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestAssetBundleModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestAudioModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestTextureModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestWWWModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_VehiclesModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_VFXModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_VideoModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_VRModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_WebGLModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_WindModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_XRModule_Dynamic.bc" "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\Variations\nondevelopment\baselib.bc" @"C:\Users\jlb\AppData\Local\Temp\_528769572\response.rsp"

    ERROR: Linking globals named 'AsyncValueTaskMethodBuilder_1_AwaitUnsafeOnCompleted_TisTaskAwaiter_t3780D365E9D10C2D6C4E76C78AA0CDF92B8F181C_TisU3CReadU3Ed__5_tF5CBAB00EDB4628FF651FF35BCEF31936C11E1E4_m10B5539A1F024EC5FF32FAAE4C2D69BC56F08E24': symbol multiply defined!
    Traceback (most recent call last):
    File "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc.py", line 3063, in <module>
    sys.exit(run())
    File "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc.py", line 1607, in run
    shared.Building.link(linker_inputs, specified_target)
    File "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\shared.py", line 2114, in link
    output = run_process([LLVM_LINK] + link_args + ['-o', target], stdout=PIPE).stdout
    File "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\shared.py", line 167, in run_process
    return run_base(cmd, universal_newlines=universal_newlines, check=check, *args, **kw)
    File "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\shared.py", line 162, in run_base
    result.check_returncode()
    File "C:\Program Files\Unity\Hub\Editor\2021.2.0a5\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\shared.py", line 148, in check_returncode
    raise Py2CalledProcessError(returncode=self.returncode, cmd=self.args, output=self.stdout, stderr=self.stderr)
    tools.shared.Py2CalledProcessError: Command '['C:/Program Files/Unity/Hub/Editor/2021.2.0a5/Editor/Data/PlaybackEngines/WebGLSupport\\BuildTools\\Emscripten_FastComp_Win\\llvm-link.exe', '@C:\\Users\\jlb\\AppData\\Local\\Temp\\tmph3zmeu.response', '-o', 'C:\\Unity\\a2021alpha\\Library\\il2cpp_cache\\linkresult_C26FBACCA268E3DDFF0B4FB4A9E37FC0\\build.bc']' returned non-zero exit status 1


    at Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(HashSet`1 objectFiles, CppToolChainContext toolChainContext)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions, ReadOnlyCollection`1 matchedAssemblyMethodSourceFiles)
    at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions, Boolean throwExceptions)
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <1164c63ff38a4cb18680fd1fb8b63d4d>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <1164c63ff38a4cb18680fd1fb8b63d4d>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo) (at <1164c63ff38a4cb18680fd1fb8b63d4d>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data) (at <1164c63ff38a4cb18680fd1fb8b63d4d>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <1164c63ff38a4cb18680fd1fb8b63d4d>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <1164c63ff38a4cb18680fd1fb8b63d4d>: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 <1164c63ff38a4cb18680fd1fb8b63d4d>: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 <1164c63ff38a4cb18680fd1fb8b63d4d>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,888
  3. Welfarecheck

    Welfarecheck

    Joined:
    Jun 14, 2020
    Posts:
    115
    LeonhardP likes this.
  4. Welfarecheck

    Welfarecheck

    Joined:
    Jun 14, 2020
    Posts:
    115

    I was wrong when I said the windows build worked as intended as well. I ran the build and it works fine until I click away from the window. When I click back the build goes to not responding for about a minute and then comes back. Rinse repeat. The game itself doesn't freeze, I can see the villagers moving in the background of the white not responding screen and they reflect back in Unity with PUN2 when I am in play mode as a client. So, it's all still working but not responding.

    I have run in background enabled and have tried every combination of resolutions, looked at profiler, and whatnot. I can't figure out the behavior. The unity editor doesn't have any issues at all.

    If you can check on that too please.
     
  5. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,571
    Please post the bug-report Case number (number only, not the link) from the confirmation email here, so Josh can pick up your report more easily.
     
  6. Welfarecheck

    Welfarecheck

    Joined:
    Jun 14, 2020
    Posts:
    115
    Sorry, 1st report. See below. Thank you for the great program!

    (Case 1319631)