Search Unity

Can't build to WebGL

Discussion in '5.5 Beta' started by hjupter, Aug 30, 2016.

  1. hjupter

    hjupter

    Joined:
    Dec 23, 2011
    Posts:
    628
    Hey I've been trying to make a WebGL build but it doesnt work either with brotli or gzip, Im always getting this error:

    Code (CSharp):
    1. [code=CSharp]Failed running C:\Program Files\Unity 5.5.0b1\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --compile-cpp --libil2cpp-static --platform="WebGL" --architecture="EmscriptenJavaScript" --configuration="Release" --outputpath="D:\Repos\Project Zero\Assets /../Temp/StagingArea/Data\Native\build.js" --cachedirectory="D:\Repos\Project Zero\Assets\..\Library/il2cpp_cache" --compiler-flags="-Oz -DIL2CPP_EXCEPTION_DISABLED=1 " --linker-flags="-s PRECISE_F32=2 -s DISABLE_EXCEPTION_CATCHING=0 --memory-init-file 1 -O3 -s NO_EXIT_RUNTIME=1 -g0 -s USE_WEBGL2=1 -s TOTAL_MEMORY=268435456 --separate-asm --emit-symbol-map " --js-pre="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\prejs\FileSystem.js" --js-pre="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\prejs\MediaDevices.js" --js-pre="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\prejs\SendMessage.js" --js-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\Audio.js" --js-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\Cursor.js" --js-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\Eval.js" --js-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\FileSystem.js" --js-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\Logging.js" --js-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\SystemInfo.js" --js-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\UnetWebSocket.js" --js-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\WebCam.js" --js-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\WebRequest.js" --js-libraries="D:\Repos\Project Zero\Assets\Plugins\WebSocket\WebSocket.jslib" --js-libraries="D:\Repos\Project Zero\Assets\Plugins\WebGL\HandleIO.jslib" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AIModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AnimationModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AudioModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_ClothModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_CloudWebServicesModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_CoreModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_CrashReportingModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_IMGUIModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_JSONSerializeModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_ParticlesLegacyModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_ParticleSystemModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_Physics2DModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_PhysicsModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainPhysicsModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextRenderingModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UmbraModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UNETModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityAdsModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityAnalyticsModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityConnectModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_VehiclesModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_VideoModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_VRModule_Dynamic.bc" --additional-libraries="C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_WebModule_Dynamic.bc" --additional-libraries="D:\Repos\Project Zero\Assets\Plugins\WebGL\sqlite3.c" --additional-libraries="D:\Repos\Project Zero\Assets\Plugins\WebGL\sqlite3.h" --extra-types.file="C:\Program Files\Unity 5.5.0b1\Editor\Data\il2cpp\il2cpp_default_extra_types.txt" --assembly="D:\Repos\Project Zero\Temp\StagingArea\Data\Managed\Assembly-CSharp-firstpass.dll" --assembly="D:\Repos\Project Zero\Temp\StagingArea\Data\Managed\Assembly-CSharp.dll" --assembly="D:\Repos\Project Zero\Temp\StagingArea\Data\Managed\Assembly-UnityScript-firstpass.dll" --assembly="D:\Repos\Project Zero\Temp\StagingArea\Data\Managed\Assembly-UnityScript.dll" --assembly="D:\Repos\Project Zero\Temp\StagingArea\Data\Managed\UnityEngine.UI.dll" --assembly="D:\Repos\Project Zero\Temp\StagingArea\Data\Managed\UnityEngine.Analytics.dll" --assembly="D:\Repos\Project Zero\Temp\StagingArea\Data\Managed\DOTween.dll" --assembly="D:\Repos\Project Zero\Temp\StagingArea\Data\Managed\DiaQ.dll" --assembly="D:\Repos\Project Zero\Temp\StagingArea\Data\Managed\plyBlox.dll" --assembly="D:\Repos\Project Zero\Temp\StagingArea\Data\Managed\plyCommon.dll" --assembly="D:\Repos\Project Zero\Temp\StagingArea\Data\Managed\plyGame.dll" --assembly="D:\Repos\Project Zero\Temp\StagingArea\Data\Managed\plyRPG.dll" --assembly="D:\Repos\Project Zero\Temp\StagingArea\Data\Managed\uCPf.dll" --assembly="D:\Repos\Project Zero\Temp\StagingArea\Data\Managed\UnityEngine.dll" --assembly="D:\Repos\Project Zero\Temp\StagingArea\Data\Managed\mscorlib.dll" --assembly="D:\Repos\Project Zero\Temp\StagingArea\Data\Managed\System.Configuration.dll" --assembly="D:\Repos\Project Zero\Temp\StagingArea\Data\Managed\System.dll" --generatedcppdir="D:\Repos\Project Zero\Temp\StagingArea\Data\il2cppOutput"
    2. stdout:
    3.  
    4. Building build.js with EmscriptenToolChain.
    5.  
    6.     Output directory: D:\Repos\Project Zero\Temp\StagingArea\Data\Native
    7.  
    8.     Cache directory: D:\Repos\Project Zero\Library\il2cpp_cache
    9.  
    10. ObjectFiles: 566 of which compiled: 0
    11.  
    12. Total compilation time: 3405 milliseconds.
    13.  
    14. Response file: C:\Users\hjup_\AppData\Local\Temp\_1299472815\response.rsp
    15.  
    16. il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc" -o "D:\Repos\Project Zero\Temp\StagingArea\Data\Native\build.js" -s PRECISE_F32=2 -s DISABLE_EXCEPTION_CATCHING=0 --memory-init-file 1 -O3 -s NO_EXIT_RUNTIME=1 -g0 -s USE_WEBGL2=1 -s TOTAL_MEMORY=268435456 --separate-asm --emit-symbol-map  --pre-js "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\prejs\FileSystem.js" --pre-js "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\prejs\MediaDevices.js" --pre-js "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\prejs\SendMessage.js" --js-library "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\Audio.js" --js-library "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\Cursor.js" --js-library "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\Eval.js" --js-library "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\FileSystem.js" --js-library "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\Logging.js" --js-library "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\SystemInfo.js" --js-library "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\UnetWebSocket.js" --js-library "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\WebCam.js" --js-library "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\WebRequest.js" --js-library "D:\Repos\Project Zero\Assets\Plugins\WebSocket\WebSocket.jslib" --js-library "D:\Repos\Project Zero\Assets\Plugins\WebGL\HandleIO.jslib" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AIModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AnimationModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_AudioModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_ClothModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_CloudWebServicesModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_CoreModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_CrashReportingModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_IMGUIModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_JSONSerializeModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_ParticlesLegacyModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_ParticleSystemModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_Physics2DModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_PhysicsModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainPhysicsModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextRenderingModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UmbraModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UNETModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityAdsModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityAnalyticsModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityConnectModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_VehiclesModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_VideoModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_VRModule_Dynamic.bc" "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\lib\modules\WebGLSupport_WebModule_Dynamic.bc" "D:\Repos\Project Zero\Assets\Plugins\WebGL\sqlite3.c" "D:\Repos\Project Zero\Assets\Plugins\WebGL\sqlite3.h" @"C:\Users\hjup_\AppData\Local\Temp\_1299472815\response.rsp"
    17.  
    18.  
    19.  
    20. WARNING:root:did not see a source tree above or next to the LLVM root directory (guessing based on directory of C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_FastComp_Win\llc), could not verify version numbers match
    21.  
    22. INFO:root:(Emscripten: Running sanity checks)
    23.  
    24. WARNING:root:java does not seem to exist, required for closure compiler, which is optional (define JAVA in C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\emscripten.config if you want it)
    25.  
    26. WARNING:root:closure compiler will not be available
    27.  
    28. WARNING:root:--separate-asm works best when compiling to HTML. otherwise, you must yourself load the '.asm.js' file that is emitted separately, and must do so before loading the main '.js` file
    29.  
    30. Traceback (most recent call last):
    31.  
    32.   File "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc", line 13, in <module>
    33.  
    34.     emcc.run()
    35.  
    36.   File "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc.py", line 1197, in run
    37.  
    38.     assert header.endswith(HEADER_ENDINGS), 'if you have one header input, we assume you want to precompile headers, and cannot have source files or other inputs as well: ' + str(headers) + ' : ' + header
    39.  
    40. AssertionError: if you have one header input, we assume you want to precompile headers, and cannot have source files or other inputs as well: ['C:\\Program Files\\Unity 5.5.0b1\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\lib\\modules\\WebGLSupport_AIModule_Dynamic.bc', 'C:\\Program Files\\Unity 5.5.0b1\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\lib\\modules\\WebGLSupport_AnimationModule_Dynamic.bc', 'C:\\Program Files\\Unity 5.5.0b1\\Editor\\Data\\PlaybackEngines\\WebGLSupport\\BuildTools\\lib\\modules\\WebGLSupport_AudioModule_Dynamic.bc', 'C:\\Program Files\\Unity 5.5.0b1\\Editor\\Data\\PlaybackEng<message truncated>
    [/code]
     
  2. goat

    goat

    Joined:
    Aug 24, 2009
    Posts:
    5,182
    Well if looks like it can't find your java path to compile with but let's see what someone that does many more compiles than I do say.

    Are you trying to use this new Local Cache feature for fast platform switching? I'm interesting in trying that too.
     
  3. hjupter

    hjupter

    Joined:
    Dec 23, 2011
    Posts:
    628
    I did not know about any new Local Cache feature... I guess you are talking about this:
    • Editor: Option to run Cache Server locally for quick platform switching
    Sounds interesting I want to try that :D...

    Going back to the topic no Im not using that so thats not the problem :(
     
  4. goat

    goat

    Joined:
    Aug 24, 2009
    Posts:
    5,182
    Well, I am about to switch to WebGL and try & build. I just built to Android using IL2CPP so it should work I think. Then I will try Windows UWP & I should be set I hope & I'll find out if that Server Cache for fast platform switching works.

    Message truncated like you ran out of RAM. How much RAM you have? Try closing any browser sessions, outlook, and other unneeded programs especially when compiling to WebGL I've found.
     
  5. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    do you have header (.h) files in your project ?
     
  6. hjupter

    hjupter

    Joined:
    Dec 23, 2011
    Posts:
    628
    I just did a quick search and yes I found a couple of .h files from GameAnalytics, so do you think thats the problem? I will try to make a build without that anyways.
     
  7. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    OK, try the following: select them and open the Inspector, then De-select WebGL, Apply the changes and build.

    Hopefully that will fix the problem.
     
  8. hjupter

    hjupter

    Joined:
    Dec 23, 2011
    Posts:
    628
    Nothing was selected for those files so I tried deleting them and making a build using brotli compression and I got this error:

    Code (CSharp):
    1. Failed running "C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe" C:\Program Files\Unity 5.5.0b1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Brotli\python\bro.py -o "D:/Repos/Project Zero/Builds/ProjectZero\Release\ProjectZero.asm.jsbr" -i "D:/Repos/Project Zero/Builds/ProjectZero\Release\ProjectZero.asm.js"
    Code (CSharp):
    1. Exception: Failed building WebGL Player.
    2. UnityEditor.WebGL.ProgramUtils.StartProgramChecked (UnityEditor.Utils.Program p) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/ProgramUtils.cs:32)
    3. UnityEditor.WebGL.WebGlBuildPostprocessor.CompressFilesInOutputDirectory (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:385)
    4. UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:604)
    5. UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:186)
    6. UnityEditor.HostView:OnGUI()
    Im gonna try again with gzip
     
  9. hjupter

    hjupter

    Joined:
    Dec 23, 2011
    Posts:
    628
    No errors with gzip but the build doesnt run automatically when finish so I tried running it with firefox and after the unity logo loading screen I get a black screen and a lot of these warnings

    "warning: 2 FS.syncfs operations in flight at once, probably just doing extra work1:1:112384"
     
  10. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    ok, so the error is brotli-specific ? If so, could you please attach the full Editor log.

    That fact that Build and Run fails to launch the local web server is a known issue that we are in the process of fixing.
     
  11. Deleted User

    Deleted User

    Guest

    I'm trying to build to WebGL, but most of them fails when the build button works (sometimes the build button just doesn't work).
    It happens even with a fresh project.

    The error:
    Exception: Failed building WebGL Player.

    UnityEditor.WebGL.ProgramUtils.StartProgramChecked (UnityEditor.Utils.Program p)
    (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/ProgramUtils.cs:32)

    UnityEditor.WebGL.WebGlBuildPostprocessor.CompressFilesInOutputDirectory (BuildPostProcessArgs args)
    (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:385)

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

    UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report)
    (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:186)

    UnityEditor.HostView:OnGUI()

    Edited:
    Now using a script to build, it does works, but the build button doesn't do anything but closing the build options window.
     
unityunity