Ainda não tem acesso? Estude com a gente! Matricule-se
Ainda não tem acesso? Estude com a gente! Matricule-se

Erro ao dar o Build no Projeto

`Erro número 1:

Failed running "C:\Program Files\Unity\Hub\Editor\2019.2.0f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe" "C:\Program Files\Unity\Hub\Editor\2019.2.0f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc" @"C:\Users\ander\OneDrive\READET1\APOCAL1\Assets..\Temp\emcc_arguments.resp"

stdout:WARNING: sanity check failed to run [Errno 13] Permission denied: 'C:\Program Files\Unity\Hub\Editor\2019.2.0f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\emscripten.config_sanity' stderr: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\Hub\Editor\2019.2.0f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_FastComp_Win\llc), could not verify version numbers match INFO:root:(Emscripten: Running sanity checks) WARNING:root:java does not seem to exist, required for closure compiler, which is optional (define JAVA in C:\Program Files\Unity\Hub\Editor\2019.2.0f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\emscripten.config if you want it) WARNING:root:closure compiler will not be available ERROR:root:C:\Users\ander\OneDrive\Área de Trabalho\apocalipse-zumbi-alura\Temp\StagingArea\Data\Native\build.bc: No such file or directory ("C:\Users\ander\OneDrive\Área de Trabalho\apocalipse-zumbi-alura\Temp\StagingArea\Data\Native\build.bc" was expected to be an input file, based on the commandline arguments provided) UnityEditor.HostView:OnGUI()

`Erro número 2:

Exception: Failed building WebGL Player. UnityEditor.WebGL.ProgramUtils.StartProgramChecked (System.Diagnostics.ProcessStartInfo p) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/ProgramUtils.cs:48) UnityEditor.WebGL.WebGlBuildPostprocessor.EmscriptenLink (BuildPostProcessArgs args, Boolean wasmBuild, System.String sourceFiles, System.String sourceFilesHash) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:391) UnityEditor.WebGL.WebGlBuildPostprocessor.LinkBuild (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:434) UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:874) UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTargetGroup targetGroup, BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:263) UnityEditor.HostView:OnGUI()

`Erro número 3:

UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors. at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:162 at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83 UnityEditor.HostView:OnGUI()

Alguém sabe o que pode estar acontecendo? Não mudei nenhuma configuração predefinida.

10 respostas

Oi, Anderson, tudo bem?

Algumas coisas que podem resolver seu problema:

  • Deletar os caches da pasta de Library e tentar novamente.
  • Na pasta C:\Program Files\Unity\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\emscripten.config da uma olhada no stack_size e coloca ele em algo como 1024 depois avisa quanto estava.
  • Só por desencargo de consciência troca o projeto pra uma pasta sem espaços e caracteres especiais e builda dentro da pasta do projeto.

Henrique, tudo bem? Eu realizei os passos que você orientou no entanto os mesmos erros persistem em aparecer. Existe outra maneira de resolver esse problema?

Os mesmos erros ou mudou os erros?

Creio que sejam os mesmos erros.

Primeiro ERRO

Failed running "C:\Program Files\Unity\Hub\Editor\2019.2.0f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe" "C:\Program Files\Unity\Hub\Editor\2019.2.0f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc" @"C:\Users\ander\OneDrive\READET1\APOCAL1\Assets..\Temp\emcc_arguments.resp"

stdout:WARNING: sanity check failed to run [Errno 13] Permission denied: 'C:\Program Files\Unity\Hub\Editor\2019.2.0f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\emscripten.config_sanity' stderr: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\Hub\Editor\2019.2.0f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_FastComp_Win\llc), could not verify version numbers match INFO:root:(Emscripten: Running sanity checks) WARNING:root:java does not seem to exist, required for closure compiler, which is optional (define JAVA in C:\Program Files\Unity\Hub\Editor\2019.2.0f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\emscripten.config if you want it) WARNING:root:closure compiler will not be available ERROR:root:C:\Users\ander\OneDrive\Área de Trabalho\apocalipse-zumbi-alura\Temp\StagingArea\Data\Native\build.bc: No such file or directory ("C:\Users\ander\OneDrive\Área de Trabalho\apocalipse-zumbi-alura\Temp\StagingArea\Data\Native\build.bc" was expected to be an input file, based on the commandline arguments provided) UnityEditor.HostView:OnGUI()

Segundo ERRO

Exception: Failed building WebGL Player. UnityEditor.WebGL.ProgramUtils.StartProgramChecked (System.Diagnostics.ProcessStartInfo p) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/ProgramUtils.cs:48) UnityEditor.WebGL.WebGlBuildPostprocessor.EmscriptenLink (BuildPostProcessArgs args, Boolean wasmBuild, System.String sourceFiles, System.String sourceFilesHash) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:391) UnityEditor.WebGL.WebGlBuildPostprocessor.LinkBuild (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:434) UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:874) UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTargetGroup targetGroup, BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:263) UnityEditor.HostView:OnGUI()

Terceiro ERRO

UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors. at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:162 at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83 UnityEditor.HostView:OnGUI()

Esse caminho tem caracteres especiais? C:\Users\ander\OneDrive\Área de Trabalho\apocalipse-zumbi-alura

Pode ser o espaço e acento do Área de trabalho, se quiser tentar jogar no Users/ander e buildar novamente.

Tudo bem Henrique, o index e a pasta Build foi gerada. No entanto esses erros apareceram.

1 Mensagem

UnityConnectUserInfoRequest: Timed out while fetching user - please check your network connection

2 Mensagem

UnityConnectOrganizationRequest: Timed out while fetching orgs - please check your network connection

Isso acontece quando? Durante o build ou quando você abre o arquivo?

A pasta build tem arquivos dentro?

quando abre o arquivo, a pasta build tem sim arquivos dentro.

Essas últimos dois podem ser só algum erro menor ou warning mas a compilação deve ter funcionado então.

Só subir no itch.io :)

OK, Obrigado por toda a ajuda!