Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

How to overcome a Error in WebGL building?

Discussion in 'Getting Started' started by Legion5slov, Sep 23, 2019.

  1. Legion5slov

    Legion5slov

    Joined:
    Jun 2, 2019
    Posts:
    12
    Salut, amis!
    When I run a building to WebGL my test project, I always get the 3 error:
    How can I overcome her?

    FileNotFoundException: D:\Cloud-Google\LeoUnity\UnityTest4\Temp\StagingArea\Data\linkresult_wasm\build.wasm does not exist

    System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) (at <599589bf4ce248909b8a14cbe4a2034e>:0)

    System.IO.File.Copy (System.String sourceFileName, System.String destFileName) (at <599589bf4ce248909b8a14cbe4a2034e>:0)

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

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

    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at C:/buildslave/unity/build/Editor/Mono/Modules/DefaultBuildPostprocessor.cs:27)

    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 C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:281)

    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)


    Build completed with a result of 'Failed'

    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)


    UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors

    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:190

    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:95

    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  2. Legion5slov

    Legion5slov

    Joined:
    Jun 2, 2019
    Posts:
    12
    And here's another thing: Every time, before building, I create a target directory and point it on "build and run". And every time after a error building, Unity removes it !!!
     
  3. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    5,871
    D:\Cloud_Google? Does it work when building a new/empty WebGL project, all local?
     
    Joe-Censored likes this.
  4. Legion5slov

    Legion5slov

    Joined:
    Jun 2, 2019
    Posts:
    12
    On second PC it work ok in D:\Cloud-Google. But I have repeatedly tried to build WebGL from the root of the C: drive. The error is the same: FileNotFoundException. Only file names are different
    What experiment should I do, to find the cause of the error?
     
  5. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    5,871
    So it works as expected on a second machine when building WebGL? What is different between the systems? Have you tried running Unity as Administrator?
     
  6. Legion5slov

    Legion5slov

    Joined:
    Jun 2, 2019
    Posts:
    12
    Successfully! Simply, reinstalled Windows. The same version (Win 10 pro). Errors have disappeared. Maybe some programs created an environment variable in the registry.