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 not building

Discussion in 'WebGL' started by Cottage_Pi, Mar 16, 2015.

  1. Cottage_Pi

    Cottage_Pi

    Joined:
    Dec 21, 2014
    Posts:
    55
    Hi,

    I have Windows 7 64Bit and Unity5 installed.

    When I try to build a project, both new and upgraded.

    I get the following three errors and no files in the build directory.

    Error 1:

    Failed running D:\Program Files\Unity\Editor\Data\il2cpp/AssemblyPatcher/AssemblyPatcher.exe -a "D:\Museum\Temp\StagingArea\Data\Managed/mscorlib.unpatched.dll" -o "D:\Museum\Temp\StagingArea\Data\Managed/mscorlib.dll" -c "D:\Program Files\Unity\Editor\Data\il2cpp/assemblypatcher_config.txt" --log-config "D:\Program Files\Unity\Editor\Data\il2cpp/AssemblyPatcher.Log.Config.xml" -s "D:\Museum\Temp\StagingArea\Data\Managed"

    stdout:
    stderr:

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:66)
    UnityEditorInternal.Runner:RunManagedProgram(String, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:44)
    UnityEditorInternal.IL2CPPBuilder:patchAssemblies() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:349)
    UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:271)
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:218)
    UnityEditor.HostView:OnGUI()

    Error 2:

    Exception: D:\Program Files\Unity\Editor\Data\il2cpp/AssemblyPatcher/AssemblyPatcher.exe did not run properly!
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:68)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:44)
    UnityEditorInternal.IL2CPPBuilder.PatchAssemblies () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:349)
    UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:271)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:218)
    UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (BuildPostProcessArgs args)
    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) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316)
    UnityEditor.HostView:OnGUI()

    Error 3:

    Error building Player: Exception: D:\Program Files\Unity\Editor\Data\il2cpp/AssemblyPatcher/AssemblyPatcher.exe did not run properly!

    Does anyone know what is going on here and how to fix this?
     
  2. CodeMonke234

    CodeMonke234

    Joined:
    Oct 13, 2010
    Posts:
    181
    Not sure - but there is a new 5.0p1 patch release that contains several fixes for il2cpp...

    (il2cpp used for webgl)
     
  3. Cottage_Pi

    Cottage_Pi

    Joined:
    Dec 21, 2014
    Posts:
    55
    Even with the patch. I still get these errors.
     
  4. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    you should probably file a bug with a repro case.
     
  5. elliots

    elliots

    Joined:
    May 13, 2013
    Posts:
    5
    I get the exact same issue. Bug has been filed with no response...
     
  6. Cottage_Pi

    Cottage_Pi

    Joined:
    Dec 21, 2014
    Posts:
    55
    OK, I'm filing a repro case right now. Can't wait to be able to use WebGL :) I want to be able to use my web-apps on Linux.
     
  7. Gissipi_453

    Gissipi_453

    Joined:
    Apr 5, 2015
    Posts:
    1
    I'm getting these same 3 errors when exporting to HTML5. Is there any fix for this issue now ?
     
  8. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    If you guys file bugs, can you post the case numbers here? Then I can look them up.
     
  9. Kevin-HyperHippo

    Kevin-HyperHippo

    Joined:
    Jan 16, 2014
    Posts:
    8
    Case 692047
     
  10. o3a

    o3a

    Joined:
    Jan 2, 2013
    Posts:
    8
    Same issue, case 691171. Windows 7 64-bit, Unity 5.0 all versions up to 5.0.1p2.
     
    Last edited: Apr 25, 2015
  11. sattew

    sattew

    Joined:
    Nov 17, 2014
    Posts:
    7
  12. JussiSai

    JussiSai

    Joined:
    Apr 20, 2015
    Posts:
    4
    Co-worker had the same problem (Win7 64bit and 5.0.1f1) but installing Visual Studio seemed to fix the problem somehow..
     
    Last edited: May 5, 2015
  13. Kevin-HyperHippo

    Kevin-HyperHippo

    Joined:
    Jan 16, 2014
    Posts:
    8
    Installing Visual Studio also solved the problem on our build box. Interesting!
     
  14. o3a

    o3a

    Joined:
    Jan 2, 2013
    Posts:
    8
    That's great news. Which version of Visual Studio did you install?
     
  15. JussiSai

    JussiSai

    Joined:
    Apr 20, 2015
    Posts:
    4
  16. Kevin-HyperHippo

    Kevin-HyperHippo

    Joined:
    Jan 16, 2014
    Posts:
    8
  17. Cottage_Pi

    Cottage_Pi

    Joined:
    Dec 21, 2014
    Posts:
    55
    Thanks. I'll try that.
     
  18. JussiSai

    JussiSai

    Joined:
    Apr 20, 2015
    Posts:
    4
    Did it fix your problem?
     
  19. Cottage_Pi

    Cottage_Pi

    Joined:
    Dec 21, 2014
    Posts:
    55
    Yes. It did. Must be a missing dependency then.