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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

AssemblyPatcher.exe failed to run

Discussion in 'WebGL' started by elliots, Mar 12, 2015.

  1. elliots

    elliots

    Joined:
    May 13, 2013
    Posts:
    5
    Hi. I'm attempting to build a webgl project on our build server but get the following error:

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

    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.BuildPlayerWindow:BuildPlayerAndRun()

    This is just a new blank project btw.

    Running this command from the command prompt seems to work successfully however. I have also tried running unity as an administrator with no luck. This is a Windows server 2012 R2 installation.

    Anyone got any ideas?
     
  2. lexen1

    lexen1

    Joined:
    Dec 4, 2013
    Posts:
    10
    Same problem for me.
     
  3. Schubkraft

    Schubkraft

    Unity Technologies

    Joined:
    Dec 3, 2012
    Posts:
    1,067
  4. elliots

    elliots

    Joined:
    May 13, 2013
    Posts:
    5
    That is pretty disappointing. Its quite a beast of a machine that we use; our mac is tremendously slow creating WebGL builds. It seems odd that it should fail to work however, as unity works OK on win 8. From what I can tell its merely an issue with launching an external executable...
     
  5. hyperhippo

    hyperhippo

    Joined:
    Jan 16, 2014
    Posts:
    37
    is this the same error? I'm getting this on a box running Windows 7 SP1 64-bit with Unity 5.0.0f4 (and 5.0.0p3) (64 bit editor)

    Failed running C:\Unity\Unity-5.0.0f4\Editor\Data\il2cpp/AssemblyPatcher/AssemblyPatcher.exe -a "C:\Jenkins\jobs\unity-webgl-50\workspace\test-webgl-build\Temp\StagingArea\Data\Managed/mscorlib.unpatched.dll" -o "C:\Jenkins\jobs\unity-webgl-50\workspace\test-webgl-build\Temp\StagingArea\Data\Managed/mscorlib.dll" -c "C:\Unity\Unity-5.0.0f4\Editor\Data\il2cpp/assemblypatcher_config.txt" --log-config "C:\Unity\Unity-5.0.0f4\Editor\Data\il2cpp/AssemblyPatcher.Log.Config.xml" -s "C:\Jenkins\jobs\unity-webgl-50\workspace\test-webgl-build\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.BuildPipeline:BuildPlayer(String[], String, BuildTarget, BuildOptions)
    BuildScript:Build(String[], BuildTarget, BuildOptions) (at Assets/Editor/BuildScript.cs:51)
    BuildScript:BuildWebGLPlayer() (at Assets/Editor/BuildScript.cs:21)

    Error building Player: Exception: C:\Unity\Unity-5.0.0f4\Editor\Data\il2cpp/AssemblyPatcher/AssemblyPatcher.exe did not run properly!
     
    Last edited: Mar 31, 2015
  6. o3a

    o3a

    Joined:
    Jan 2, 2013
    Posts:
    8
    I have this exact same issue, unable to build to WebGL on Windows 7 Home Premium 64-bit SP1 with Unity 5.0.1p1. Trying to build an empty project fails with the AssemblyPatcher issue. The slashes in this path look strange to me, mixing Windows and Unix styles:

    Failed running C:\Program Files\Unity\Editor\Data\il2cpp/AssemblyPatcher/AssemblyPatcher.exe

    I filed a bug report, case 691171. This appears to be the same issue as in the following thread:

    http://forum.unity3d.com/threads/webgl-not-building.311347/
     
    Last edited: Apr 25, 2015
  7. o3a

    o3a

    Joined:
    Jan 2, 2013
    Posts:
    8