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

Build with state 'Succeded' but no files in folder/FileNotFoundException build.wasm does not exist

Discussion in 'WebGL' started by MarekNijaki, Jul 23, 2018.

  1. MarekNijaki

    MarekNijaki

    Joined:
    Jan 28, 2018
    Posts:
    8
    After dowlnoading hub and two newer versions of Unity (2017 and 2018.2.0f2) WebGL build stop working :/
    Builds ends with state 'Succeded' but there is no files in build folder.
    My project is in 2018.2.0f2 version.

    In console i can see this:

    Code (CSharp):
    1. FileNotFoundException: C:\Users\Marek\Desktop\test\Temp\StagingArea\Data\linkresult_wasm\build.wasm does not exist
    2. System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) (at <f826c2584fc94ec19a48a6576640bdc5>:0)
    3. System.IO.File.Copy (System.String sourceFileName, System.String destFileName) (at <f826c2584fc94ec19a48a6576640bdc5>:0)
    4. UnityEditor.WebGL.WebGlBuildPostprocessor.AssembleOutput (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:658)
    5. UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:940)
    6. UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at C:/buildslave/unity/build/Editor/Mono/Modules/DefaultBuildPostprocessor.cs:27)
    7. 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:287)
    8. UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
    Log file is added to the thread.

    Console and log are from new clear project wiht only cube added (this project also is not working).

    Strange, but if i will do smth like dicribied in here:
    https://forum.unity.com/threads/web...-of-the-time-requiring-a-full-restart.456418/
    my new projects starts build correct.



    Any ideas what the is happening?
     

    Attached Files:

    • log.txt
      File size:
      88.9 KB
      Views:
      905
  2. MarekNijaki

    MarekNijaki

    Joined:
    Jan 28, 2018
    Posts:
    8
    I forgotten to write that both new versions of unity are installed on my second drive - D:/
     
  3. MarekNijaki

    MarekNijaki

    Joined:
    Jan 28, 2018
    Posts:
    8
    After opening project in 2017 version all works fine. It seems that '2018.2.0f2' is making problems when building to WebGL platform
     
  4. Wen-Li

    Wen-Li

    Joined:
    Nov 27, 2015
    Posts:
    4
    I'm using 2018.2.6f1. Get this error too. Change Linker Target to asm.js will make me build the project. But if I want to build as WebAssembly I still get this problem.
    It seems Unity does not support WebAssembly very well now?? Or, Is there a simple solution for this problem?
     
  5. Wen-Li

    Wen-Li

    Joined:
    Nov 27, 2015
    Posts:
    4
    Error messages are:

    FileNotFoundException: F:\UnityTempProjects\TestBrick\Temp\StagingArea\Data\linkresult_wasm\build.temp.asm.js does not exist
    System.IO.File.Copy (System.String sourceFileName, System.String destFileName, Boolean overwrite) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/File.cs:107)
    UnityEditor.FileUtil.UnityFileCopy (System.String from, System.String to, Boolean overwrite) (at C:/buildslave/unity/build/Editor/Mono/FileUtil.cs:210)
    UnityEditor.FileUtil.CopyDirectoryFiltered (System.String source, System.String target, Boolean overwrite, System.Func`2 includeCallback, Boolean recursive) (at C:/buildslave/unity/build/Editor/Mono/FileUtil.cs:145)
     
  6. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    It does! Could you please submit a bug report after the build failure?
     
  7. Tom-Mensink

    Tom-Mensink

    Joined:
    Jul 27, 2017
    Posts:
    17
    Same problem after upgrading from 2018.2.2 to 2018.2.13f1. Is there a bug report for this somehere?
    If I switch back "Linker Target" to "asm.js" it does work.
    It also worked again after upgrading to 2018.2.20f1, but not sure if that was luck, with restarting Unity and stuff.
     
  8. VonTala

    VonTala

    Joined:
    Feb 17, 2015
    Posts:
    10
    Come one... 2019 and I have the same problem
     
  9. ThugLifeCompany

    ThugLifeCompany

    Joined:
    Apr 23, 2019
    Posts:
    2
    ahh.. . finaly i found a solution for this problem
    i found its simply because unity WebAssembly
    go in to unity=>PlayerSettings =>PublishingSettings=>LinkerTarget.
    for me it was WebAssmbly and i catch empty folder after building
    i just changed this to asm.js and its fixed!
    if you do this way and still is not fix go on YourProject/Library/webgl_cache
    and you can see this forlder (linkresult_asm_0C94....). go on this and delete all files in this folder
    download this http://s9.picofile.com/file/8366922476/linkresult_asm.zip.html
    and drop this files on there
     
  10. aggelosmetallidis9

    aggelosmetallidis9

    Joined:
    Apr 17, 2018
    Posts:
    9
  11. ahmedaniss

    ahmedaniss

    Joined:
    Sep 18, 2019
    Posts:
    98
    i fix this problem here
    you can follow my step to solve the problem
     
    Last edited: Jun 14, 2020