Search Unity

I'm getting this error building an empty scene in WebGL

Discussion in 'Web' started by TylerJoGames, Sep 20, 2021.

  1. TylerJoGames

    TylerJoGames

    Joined:
    Oct 9, 2018
    Posts:
    17
    I wanted to see how big a webgl build would be, so I built an empty project
    I'm keep getting these errors with Unity 2020.3.18.1f

    Exception: Unity.IL2CPP.Building.BuilderFailedException: No mapping for the Unicode character exists in the target multi-byte code page.
    ERROR:root:Failed to run llvm optimizations:



    Invocation was: Executable: "C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe"
    Arguments: -E "C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\em++" -Wno-unused-value -Wno-invalid-offsetof -nostdinc -fno-strict-overflow -Wno-null-conversion -std=c++11 -O3 -Oz -DIL2CPP_EXCEPTION_DISABLED=1 -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DBASELIB_INLINE_NAMESPACE=il2cpp_baselib -DNDEBUG -I"C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Editor\Data\il2cpp\external\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Editor\Data\il2cpp\external\xxHash" -I"C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Editor\Data\il2cpp\external\baselib\Include" -I"C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Editor\Data\il2cpp\external\baselib\Platforms\WebGL\Include" -I"C:\Program Files\Unity\Hub\Editor\2020.3.18f1\Editor\Data\il2cpp\libil2cpp\pch" -I"D:\Game Projects\Practice Projects\web test\Library\Il2cppBuildCache\WebGL\il2cppOutput" "D:\Game Projects\Practice Projects\web test\Library\Il2cppBuildCache\WebGL\il2cppOutput\Il2CppCCalculateFieldValues.cpp" -o "D:\Game Projects\Practice Projects\web test\Library\il2cpp_cache\3CF956EF61FE1742D095E153C1D18552.o"

    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Compilation.CompilationDriver.Run(RuntimePlatform platform, BuildingOptions buildingOptions, ReadOnlyCollection`1 matchedAssemblyMethodSourceFiles)
    at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions, Boolean throwExceptions)
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <5ad584e208e14caaa9e6b2e6027e9204>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <5ad584e208e14caaa9e6b2e6027e9204>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo) (at <5ad584e208e14caaa9e6b2e6027e9204>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data) (at <5ad584e208e14caaa9e6b2e6027e9204>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <5ad584e208e14caaa9e6b2e6027e9204>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <5ad584e208e14caaa9e6b2e6027e9204>:0)
    UnityEditor.WebGL.WebGlBuildPostprocessor.CompileBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:365)
    UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/bokken/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:913)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <5ad584e208e14caaa9e6b2e6027e9204>:0)
    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 <5ad584e208e14caaa9e6b2e6027e9204>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)

    what might be causing this problem? I didn't touch anything, it's just an empty scene
     
    Last edited: Sep 20, 2021
  2. TylerJoGames

    TylerJoGames

    Joined:
    Oct 9, 2018
    Posts:
    17
    It seems like that the message "no mapping for the Unicode character exists in the target multi-byte code page" turned out to be a signal, at least for some people on Unity forum, that their project path included non-ASCII characters and thus emscripten threw an exception.

    But my project path is "D:\Game Projects\Practice Projects\web test 2021", which has no non-ASCII character... I'm wondering what's going on