[SOLVED] Failed running command on unity WebGL export

Hi after I downloaded this source for unity and set the compression format from Gzip to disabled I encountered this error anyone knows why?

Failed running command "D:/Unity/2020.3.38f1/.......\Emscripten_Win\python\2.7.5.3_64bit\python.exe" -E "D:/Unity/2020.3.38f1/Editor/.....Temp\emcc_arguments.resp" (process exit code: 1)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Failed process stderr log:
Value:   %551 = landingpad { i8*, i32 }
          cleanup
          catch i8* bitcast ({ i8*, i8* }* @_ZTI22Il2CppExceptionWrapper to i8*)
LLVM ERROR: Unrecognized struct value
Traceback (most recent call last):
  File "D:\Unity\2020.3.38f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc.py", line 3063, in <module>
    sys.exit(run())
  File "D:\Unity\2020.3.38f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc.py", line 1780, in run
    final = shared.Building.emscripten(final, append_ext=False, extra_args=extra_args)
  File "D:\Unity\2020.3.38f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\shared.py", line 2274, in emscripten
    emscripten._main(cmdline)
  File "D:\Unity\2020.3.38f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten.py", line 2233, in _main
    return temp_files.run_and_clean(lambda: main(
  File "D:\Unity\2020.3.38f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\tempfiles.py", line 93, in run_and_clean
    return func()
  File "D:\Unity\2020.3.38f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten.py", line 2238, in <lambda>
    DEBUG=DEBUG,
  File "D:\Unity\2020.3.38f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten.py", line 2164, in main
    temp_files=temp_files, DEBUG=DEBUG)
  File "D:\Unity\2020.3.38f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten.py", line 81, in emscript
    backend_output = compile_js(infile, temp_files, DEBUG)
  File "D:\Unity\2020.3.38f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emscripten.py", line 110, in compile_js
    jsrun.timeout_run(subprocess.Popen(backend_args, stdout=subprocess.PIPE, universal_newlines=True), note_args=backend_args)
  File "D:\Unity\2020.3.38f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\tools\jsrun.py", line 20, in timeout_run
    raise Exception('Subprocess "' + ' '.join(note_args) + '" failed with exit code ' + str(proc.returncode) + '!')
Exception: Subprocess "D:/Unity/2020.3.38f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\Emscripten_FastComp_Win\llc.exe C:\Users\Asus\AppData\Local\Temp\tmpbl59g4\build.bc -march=js -filetype=asm -o C:\Users\Asus\AppData\Local\Temp\tmpdkdzg_.4.js -emscripten-stack-size=5242880 -O3 -emscripten-precise-f32 -emscripten-global-base=1024 -emscripten-no-exit-runtime -emscripten-wasm -emscripten-only-wasm" failed with exit code 1!
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
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:52)
UnityEditor.WebGL.WebGlBuildPostprocessor.EmscriptenLink (UnityEditor.Modules.BuildPostProcessArgs args, System.Boolean wasmBuild, System.String sourceFiles, System.String sourceFilesHash) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:423)
UnityEditor.WebGL.WebGlBuildPostprocessor.LinkBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:464)
UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:914)
UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <2e00be109d124bb98c380f10ba0e3cd4>: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 <2e00be109d124bb98c380f10ba0e3cd4>:0)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)
Build completed with a result of 'Failed' in 98 seconds (97871 ms)
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002cc] in <2e00be109d124bb98c380f10ba0e3cd4>:0 
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <2e00be109d124bb98c380f10ba0e3cd4>:0 
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)


tip: the reason that I changed Gzip to disabled was when I uploaded the exported WebGL file on my host I encountered this error

Unable to load file Build/web.framework.js.gz! Check that the file exists on the remote server. (also check browser Console and Devtools Network tab to debug)

Hello what are the exact steps to replicate this error on your end?

Unable to load file Build/web.framework.js.gz! Check that the file exists on the remote server. (also check browser Console and Devtools Network tab to debug)

β€œtip: the reason that I changed Gzip to disabled was when I uploaded the exported WebGL file on my host I encountered this error” Same with this one.

actually, the error was solved it’s weird but I changed the Enable exceptions same as the screenshot and it worked.

1 Like