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.

[solved for now] il2cpp stopped working help

Discussion in 'Android' started by starseekergames, Jul 10, 2019.

  1. starseekergames

    starseekergames

    Joined:
    Nov 30, 2016
    Posts:
    10
    Recently upgraded my Unity from 2017.1 to 2019.1.9f because Google tells me the app needs to support 64 bit. When I try to build with x64 I can only use il2cpp and this error occured. any help?

    and this one as well

     
  2. starseekergames

    starseekergames

    Joined:
    Nov 30, 2016
    Posts:
    10
    This is odd, so many posts regarding il2cpp errors. Seems like nobody has this solved and Unity put it as a bug.
    Meanwhile Google is telling devs if they don't update their app to support 64bit within August 1st, can't post updates anymore. I'm assuming this matter is urgent is it not?

    For those kind enough to help me, I've searched through my error messages comparing with other errors, I think I narrowed it down to this

    does anyone know what file it can't find?
     
    Last edited: Jul 11, 2019
  3. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,406
    It looks like you might not have the Android NDK installed, or Unity cannot locate it. Go to Edit > Preferences in the Unity editor, and check the location and version of the Android NDK that your version of Unity uses.
     
  4. starseekergames

    starseekergames

    Joined:
    Nov 30, 2016
    Posts:
    10
    Nope, this isn't the case as well.
    I tried manually downloading NDK version because it requests version 16b rather than version 20 which is the newest one, I tried both automatically assign with Unity Hub and manual directory locating and both still crashes the il2cpp..

    is there an NDK version that other people use? I use the recommended 16b from the older releases tab... this is correct is it not?
     
    Last edited: Jul 12, 2019
  5. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,406
    The version of the NDK which Edit > Preferences in the Unity editor recommends is the one you should use for the specific version of Unity you have installed.
     
  6. starseekergames

    starseekergames

    Joined:
    Nov 30, 2016
    Posts:
    10
    ok Josh thanks for the feedback.
    I actually have another problem now.

    Because apparently I was using 32bit NDK while I needed the 64bit.

    Anyhow, now the APK exported resulted in immediate crash when launching it on my device, and just a simple white screen if I tried it on bluestacks. I don't know how to find what's wrong with it since Unity succeeded building the apk without errors.

    You can mark this matter solved by the way. just if you have any final advice on how to narrow down my new problem, I'd appreciate it.
     
  7. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,406
    Great! For this new issue, I'd recommend either debugging the code in Visual Studio (build with scripting debugging enabled in Unity), or use some Debug.Log statements throughout your script code to better understand what is happening.
     
  8. starseekergames

    starseekergames

    Joined:
    Nov 30, 2016
    Posts:
    10
    Debug.Log only shows in unity. in this case the app crashes immediately.
    Visual studio debugs fine as well. So I tried using the recommended Unity SDK and JDK, this time it brought me back to il2cpp error with a different stdout. So I guess its the same problem but different probable cause now.

    was wondering if you have any idea this time because it didn't say missing file.
    seemed like the problem got more complicated this time...

     
  9. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,406
    See this forum thread: https://forum.unity.com/threads/build-il2cpp-errors-please-how-fix-it.492556/#post-4740155

    It looks like the Android NDK installed by the Unity hub might be wrong. I'm not sure about the details yet though.
     
  10. starseekergames

    starseekergames

    Joined:
    Nov 30, 2016
    Posts:
    10
    [solved]
    TL : DR - use unity2019.1.0f2, manual ndk, use scripting runtime net3.5 (NOT4), reimport iAP if upgrading from old unity2017.

    urgh.. ok.. so...
    after I dibble dabbled with the il2cpp error and app crashes for 2 straight days I finally managed to figure out the problem. I'm posting what I did here in case someone else find this helpful.

    I had to test what went wrong from my app one by one because when I opened a new project it works. (well kinda, let me get to it). Basically I upgraded my project from Unity 2017 to 2019

    1. Exporting 64 bit (or with il2cpp) crashes the build process with Unity 2019.1.9f, even with recommended setting for JDK, SDK, and NDK. I realize I'm not the only one with a problem in this forum so I don't blame Josh in waiting for a response as to what happen in that version. anyhow 2019.1.9 is no good.

    2. Following another thread's solution, I downgraded to 2019.1.0f2, thankfully the project downgraded well because the version gap isn't that big.

    3 Exporting in mono (32 bit) works alright here (builds successfully) for an empty project but the app crashes instantly on my device, and a blank white screen on bluestacks. After a test here and there FINALLY I figured out two things. One, dont use scripting backend 4. revert back to net3.5 if you're used to it from older Unity. Two, that is the purchasing module. I had to delete and reimport the new module (yeah, it didn't mention that it was old and was causing a crash). I had to delete my plugins folder then reimport from the services window and unzip each of the three iAP packages. Then it exported and ran fine in both bluestacks and my device.

    alright, 32 bit out of the way... now 64 bit no can do because again.. il2cpp has stopped working. so turns out...

    4 You couldn't use recommended setting because Unity Hub won't allow you to install this version. Thus I had to manually install JDK (means signing up for Oracle account installing jdk 8), SDK (means having Android Studio, and from the tools add the latest one), and NDK (ver 16b, not ver 20 which is the newest one, so download from the archive -mind you... 64bit version).

    5. Once you attach all three, it exported 64bit version fine for me which is what I will be uploading to the developer console.
     
  11. rabby0168

    rabby0168

    Joined:
    Jul 5, 2019
    Posts:
    1
    There is lots of bug in il2cpp.and i am also facing this issue.I am also not able to update my game.
     
  12. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,406
    Can you provide any details about the problems you experience?
     
  13. AndersModen

    AndersModen

    Joined:
    Nov 19, 2019
    Posts:
    51
    cannot find -latomic
     
  14. akmaljonmusaev

    akmaljonmusaev

    Joined:
    Jul 7, 2018
    Posts:
    1
    This problem appears only Mac users. Windows builds very well.
     
  15. gamer2300

    gamer2300

    Joined:
    Jan 16, 2013
    Posts:
    29
    Failed running C:\Program Files\Unity\Hub\Editor\2018.4.14f1\Editor\Data\il2cpp/build/il2cpp.exe
     
  16. bhekumarprg

    bhekumarprg

    Joined:
    Apr 22, 2018
    Posts:
    2
    i had also struggled for week to get rid out of this il2cpp err. For me what was worked is initially i tried with empty project whether build succeeds or not ...its worked well.but after completing project android il2cipp build failed ...
    i tried lot so many version...but still failed.
    try deleting your unity ads sdk and build...if you not supporting ios delete ios plugin.lso delete gamecenter script in ads plugin folder.This might cause ndk err...#if unity_android i tryed with platform compliances but its not worked...hope it might be helpful.i tried lost so many steps.. check this link for trouble shooting il2cpp build erros...i am using unity 2017.4.36f lts support..
    https://javasthunder.com/wp/2020/01...properly-unity-android-64bit-complaint-build/
     
  17. aboiad

    aboiad

    Joined:
    May 23, 2020
    Posts:
    3
    Hello..
    When I want to build the project to Apk or WebGL , I get this error I am using unity 2019.3.13f1.
    Knowing that since many days he has been working well


    Exception: C:\Program Files\Unity\Hub\Editor\2019.3.13f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly!
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
    UnityEditor.WebGL.WebGlBuildPostprocessor.CompileBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:387)
    UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:929)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <480b5a3bd3214ce5831f6dd8c68fdc55>: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 <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  18. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,406
    There should be additional information after this error, can you provide it?
     
  19. aboiad

    aboiad

    Joined:
    May 23, 2020
    Posts:
    3
    This is all written in the console……

    .

    Failed running C:\Program Files\Unity\Hub\Editor\2019.3.13f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe --convert-to-cpp --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="WebGL" --architecture="EmscriptenJavaScript" --configuration="Release" --outputpath="D:\My Works\Unity3d ArtyAds\PlayerCard\FBS\Assets /../Temp/StagingArea/Data\Native\build.bc" --cachedirectory="D:\My Works\Unity3d\ArtyAds\PlayerCard\FBS\Assets\..\Library/il2cpp_cache" --compiler-flags="-Oz -DIL2CPP_EXCEPTION_DISABLED=1 " --emit-method-map --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AccessibilityModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AIModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AndroidJNIModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AnimationModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AssetBundleModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AudioModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ClothModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_CoreModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_CrashReportingModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_DirectorModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_DSPGraphModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_GameCenterModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_GridModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_HotReloadModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ImageConversionModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_IMGUIModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_InputLegacyModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_InputModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_JSONSerializeModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_LocalizationModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ParticleSystemModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_PerformanceReportingModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_Physics2DModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_PhysicsModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ProfilerModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ScreenCaptureModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SharedInternalsModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SpriteMaskModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SpriteShapeModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_StreamingModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SubstanceModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SubsystemsModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainPhysicsModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextCoreModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextRenderingModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TilemapModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TLSModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIElementsModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UmbraModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UNETModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityAnalyticsModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityConnectModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityTestProtocolModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestAssetBundleModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestAudioModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestTextureModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestWWWModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VehiclesModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VFXModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VideoModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VRModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_WebGLModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_WindModule_Dynamic.bc" --additional-libraries="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_XRModule_Dynamic.bc" --profiler-report --map-file-parser="C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory="D:/My Works/Unity3d/ArtyAds/PlayerCard/FBS/Temp/StagingArea/Data/Managed" --generatedcppdir="D:/My Works/Unity3d/ArtyAds/PlayerCard/FBS/Temp/StagingArea/Data/il2cppOutput"
    stdout:
    Building build.bc with EmscriptenToolChain
    Output directory: D:\My Works\Unity3d\ ArtyAds\PlayerCard\FBS\Temp\StagingArea\Data\Native
    Cache directory: D:\My Works\Unity3d\ ArtyAds\PlayerCard\FBS\Library\il2cpp_cache
    il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\Emscripten_FastComp_Win\opt.exe: D:\My Works\Unity3d\?????? ?????? ArtyAds\PlayerCard\FBS\Library\il2cpp_cache\9B8BDA0480062C768974CCE5482148D2.o: error: Could not open input file: 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\2019.3.13f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe"
    Arguments: -E "C:\Program Files\Unity\Hub\Editor\2019.3.13f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc" -Wno-unused-value -Wno-invalid-offsetof -nostdinc -fno-strict-overflow -Wno-null-conversion -O3 -Oz -DIL2CPP_EXCEPTION_DISABLED=1 -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DNDEBUG -I"C:\Program Files\Unity\Hub\Editor\2019.3.13f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.3.13f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.3.13f1\Editor\Data\il2cpp\external\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.3.13f1\Editor\Data\il2cpp\external\xxHash" -I"D:\My Works\Unity3d\ArtyAds\PlayerCard\FBS\Temp\StagingArea\Data\il2cppOutput" "D:\My Works\Unity3d\ ArtyAds\PlayerCard\FBS\Temp\StagingArea\Data\il2cppOutput\Il2CppTypeDefinitions.c" -o "D:\My Works\Unity3d\꬟ ArtyAds\PlayerCard\FBS\Library\il2cpp_cache\9B8BDA0480062C768974CCE5482148D2.o"
    Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    il2cpp.Program.Main(String[] args)
    stderr:
    : Unity.IL2CPP.Building.BuilderFailedException: C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\Emscripten_FastComp_Win\opt.exe: D:\My Works\Unity3d\?????? ?????? ArtyAds\PlayerCard\FBS\Library\il2cpp_cache\9B8BDA0480062C768974CCE5482148D2.o: error: Could not open input file: 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\2019.3.13f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe"
    Arguments: -E "C:\Program Files\Unity\Hub\Editor\2019.3.13f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten\emcc" -Wno-unused-value -Wno-invalid-offsetof -nostdinc -fno-strict-overflow -Wno-null-conversion -O3 -Oz -DIL2CPP_EXCEPTION_DISABLED=1 -DNET_4_0 -DUNITY_AOT -DIL2CPP_MONO_DEBUGGER_DISABLED -DGC_NOT_DLL -DRUNTIME_IL2CPP -DNDEBUG -I"C:\Program Files\Unity\Hub\Editor\2019.3.13f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.3.13f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Program Files\Unity\Hub\Editor\2019.3.13f1\Editor\Data\il2cpp\external\bdwgc\include" -I"C:\Program Files\Unity\Hub\Editor\2019.3.13f1\Editor\Data\il2cpp\external\xxHash" -I"D:\My Works\Unity3d\ArtyAds\PlayerCard\FBS\Temp\StagingArea\Data\il2cppOutput" "D:\My Works\Unity3d\ArtyAds\PlayerCard\FBS\Temp\StagingArea\Data\il2cppOutput\Il2CppTypeDefinitions.c" -o "D:\My Works\Unity3d\ArtyAds\PlayerCard\FBS\Library\il2cpp_cache\9B8BDA0480062C768974CCE5482148D2.o"
    Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    il2cpp.Program.Main(String[] args)
    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1)
    UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String)
    UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(Il2CppBuildPipelineData, String, String, Boolean)
    UnityEditorInternal.IL2CPPBuilder:Run()
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)



    Exception: C:\Program Files\Unity\Hub\Editor\2019.3.13f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly!
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
    UnityEditor.WebGL.WebGlBuildPostprocessor.CompileBuild (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:387)
    UnityEditor.WebGL.WebGlBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/WebGL/Extensions/Unity.WebGL.extensions/BuildPostprocessor.cs:929)
    UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <480b5a3bd3214ce5831f6dd8c68fdc55>: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 <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)



    Build completed with a result of 'Failed' in 215 seconds (214829 ms)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)




    UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in <480b5a3bd3214ce5831f6dd8c68fdc55>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <480b5a3bd3214ce5831f6dd8c68fdc55>:0
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)



    UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bb] in <480b5a3bd3214ce5831f6dd8c68fdc55>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <480b5a3bd3214ce5831f6dd8c68fdc55>:0
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  20. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,406
    It looks like Emscripten is failing to understand some non-ASCII characters in the path to your project:

    C:/Program Files/Unity/Hub/Editor/2019.3.13f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\Emscripten_FastComp_Win\opt.exe: D:\My Works\Unity3d\?????? ?????? ArtyAds\PlayerCard\FBS\Library\il2cpp_cache\9B8BDA0480062C768974CCE5482148D2.o: error: Could not open input file: No mapping for the Unicode character exists in the target multi-byte code page.

    Can you try to move the project to a different location, with only ASCII characters in the path?
     
    aboiad likes this.
  21. aboiad

    aboiad

    Joined:
    May 23, 2020
    Posts:
    3
    Yes, it was a problem with the path Thank you brother, it was solved with your help
     
  22. Kubershooli

    Kubershooli

    Joined:
    Jul 23, 2020
    Posts:
    2
    ndk & sdk both are installed
     
  23. Kubershooli

    Kubershooli

    Joined:
    Jul 23, 2020
    Posts:
    2
    sir, I have unity 2019.1.14f1 version project. whenever i tried to extract apk file, it shows pop up of "il2cpp.exe has stopped working" and then extraction will closes automatically. please help what to do
     
  24. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,406
    Can you provide the text of the error message when the build fails?
     
  25. kusajoy

    kusajoy

    Joined:
    Feb 20, 2020
    Posts:
    2

    Good day sir. Please can you kindly look in to my errors also. i have been stuck with these have tried so many solutions without success. I will be very grateful if am considered. I am using Unity 2019.4.7f1. Thank you in advance.


    Failed running C:\Program Files\Unity\Editor\Data\il2cpp\build/deploy/net471/UnityLinker.exe -out="C:/Windows.old/Users/user/Block Puzzle/Temp/StagingArea/assets/bin/Data/Managed/tempStrip" -x="C:/Windows.old/Users/user/Block Puzzle/Temp/StagingArea/assets/bin/Data/Managed/../platform_native_link.xml" -x=C:/Users/IBE/AppData/Local/Temp/tmp5d6550c3.tmp -x=C:/Users/IBE/AppData/Local/Temp/tmp1cc59505.tmp -x="C:/Windows.old/Users/user/Block Puzzle/Temp/StagingArea/assets/bin/Data/Managed/TypesInScenes.xml" -d="C:/Windows.old/Users/user/Block Puzzle/Temp/StagingArea/assets/bin/Data/Managed" --include-unity-root-assembly="C:/Windows.old/Users/user/Block Puzzle/Temp/StagingArea/assets/bin/Data/Managed/Assembly-CSharp-firstpass.dll" --include-unity-root-assembly="C:/Windows.old/Users/user/Block Puzzle/Temp/StagingArea/assets/bin/Data/Managed/Assembly-CSharp.dll" --include-unity-root-assembly="C:/Windows.old/Users/user/Block Puzzle/Temp/StagingArea/assets/bin/Data/Managed/UnityEngine.UI.dll" --include-unity-root-assembly="C:/Windows.old/Users/user/Block Puzzle/Temp/StagingArea/assets/bin/Data/Managed/GoogleMobileAds.dll" --dotnetruntime=il2cpp --dotnetprofile=unityaot --use-editor-options --include-directory="C:/Windows.old/Users/user/Block Puzzle/Temp/StagingArea/assets/bin/Data/Managed" --rule-set=Experimental --editor-data-file="C:/Windows.old/Users/user/Block Puzzle/Temp/StagingArea/assets/bin/Data/Managed/EditorToUnityLinkerData.json" --platform=Android --enable-engine-module-stripping --engine-stripping-flag=EnableUnityConnect --engine-modules-asset-file="C:/Program Files/Unity/Editor/Data/PlaybackEngines/AndroidPlayer/Whitelists/../modules.asset"

    stdout:
    stderr:

    Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
    at Unity.Linker.UnityDriver..ctor(String[] args)
    at Unity.Linker.Program.Main(String[] args)

    UnityEngine.Debug:LogError(Object)
    UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase)
    UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1)
    UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String)
    UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String, String&, String&, IEnumerable`1, UnityLinkerRunInformation)
    UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(UnityLinkerRunInformation)
    UnityEditorInternal.AssemblyStripper:StripAssemblies(String, BaseUnityLinkerPlatformProvider, IIl2CppPlatformProvider, RuntimeClassRegistry, ManagedStrippingLevel)
    UnityEditorInternal.IL2CPPBuilder:Run()
    UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    Exception: C:\Program Files\Unity\Editor\Data\il2cpp\build/deploy/net471/UnityLinker.exe did not run properly!
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <6776482ad98c481c9322bc7e45bcbc33>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <6776482ad98c481c9322bc7e45bcbc33>:0)
    UnityEditorInternal.AssemblyStripper.RunAssemblyLinker (System.Collections.Generic.IEnumerable`1[T] args, System.String& out, System.String& err, System.String linkerPath, System.String workingDirectory) (at <6776482ad98c481c9322bc7e45bcbc33>:0)
    UnityEditorInternal.AssemblyStripper.StripAssembliesTo (System.String outputFolder, System.String& output, System.String& error, System.Collections.Generic.IEnumerable`1[T] linkXmlFiles, UnityEditorInternal.UnityLinkerRunInformation runInformation) (at <6776482ad98c481c9322bc7e45bcbc33>:0)
    UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (UnityEditorInternal.UnityLinkerRunInformation runInformation) (at <6776482ad98c481c9322bc7e45bcbc33>:0)
    UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String managedAssemblyFolderPath, UnityEditorInternal.BaseUnityLinkerPlatformProvider unityLinkerPlatformProvider, UnityEditorInternal.IIl2CppPlatformProvider il2cppPlatformProvider, UnityEditor.RuntimeClassRegistry rcr, UnityEditor.ManagedStrippingLevel managedStrippingLevel) (at <6776482ad98c481c9322bc7e45bcbc33>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <6776482ad98c481c9322bc7e45bcbc33>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <6776482ad98c481c9322bc7e45bcbc33>:0)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <d265dd4439034d6c9926c590736e62a5>:0)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <d265dd4439034d6c9926c590736e62a5>:0)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <d265dd4439034d6c9926c590736e62a5>:0)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <d265dd4439034d6c9926c590736e62a5>: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 <6776482ad98c481c9322bc7e45bcbc33>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  26. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,406
    Make sure you have .NET Framework 4.8.1 installed on this computer. The Unity installer should do that, but we've seen a few cases where it did not.
     
  27. kusajoy

    kusajoy

    Joined:
    Feb 20, 2020
    Posts:
    2
    Thank you sir am so grateful for the reply i did installed .Net Framework4.8.1 and it worked. I was able to build successfully.
     
    JoshPeterson likes this.
  28. sogonen

    sogonen

    Joined:
    Mar 3, 2017
    Posts:
    6
    Hello, when building with 2021.2.0b4 for Android devices I am getting the error below , seems like a character error but no idea where to fix it as there is no unexpected characters on my paths which I can fix.


    Building Library\Bee\artifacts\Android\ManagedStripped failed with output:
    Unknown arguments :
    --�nclude-link-xml=C:\Users\SILEVE~1\AppData\Local\Temp\tmpa3fdb32.tmp
    --�nclude-link-xml=C:/Dev/mountain-climb-4x4-2021/Temp/StagingArea/Data/Managed\TypesInScenes.xml
    --�nclude-link-xml=C:\Dev\mountain-climb-4x4-2021\Assets\GoogleMobileAds\link.xml
    --�nclude-link-xml=C:/Program Files/Unity/Hub/Editor/2021.2.0b4/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/AndroidNativeLink.xml
    --�nclude-directory=C:/Dev/mountain-climb-4x4-2021/Temp/StagingArea/Data/Managed
    --�nclude-unity-root-assembly=C:/Dev/mountain-climb-4x4-2021/Temp/StagingArea/Data/Managed/Assembly-CSharp-firstpass.dll
    --�nclude-unity-root-assembly=C:/Dev/mountain-climb-4x4-2021/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll
    --�nclude-unity-root-assembly=C:/Dev/mountain-climb-4x4-2021/Temp/StagingArea/Data/Managed/Google.Play.Core.dll
    --�nclude-unity-root-assembly=C:/Dev/mountain-climb-4x4-2021/Temp/StagingArea/Data/Managed/Google.Play.Review.dll
    --�nclude-unity-root-assembly=C:/Dev/mountain-climb-4x4-2021/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll
    --�nclude-unity-root-assembly=C:/Dev/mountain-climb-4x4-2021/Temp/StagingArea/Data/Managed/Google.Play.Common.dll
    --�nclude-unity-root-assembly=C:/Dev/mountain-climb-4x4-2021/Temp/StagingArea/Data/Managed/DOTween.dll
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&)

    Edit: I have changed my Windows local and language from Turkish to English and fixed this error. Still I beleive this is a bug in the editor.
     
    Last edited: Jul 16, 2021
  29. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,406
    Thanks - can you submit a bug report to Unity for this issue?

    https://unity3d.com/unity/qa/bug-reporting
     
  30. radiantboy

    radiantboy

    Joined:
    Nov 21, 2012
    Posts:
    1,543
    I am having same issue, works for android and windows but webgl build results in error below. Any ideas?

    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: "D:\UNITYEDITORS2020\2021.1.16f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe"
    Arguments: -E "D:\UNITYEDITORS2020\2021.1.16f1\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"D:\UNITYEDITORS2020\2021.1.16f1\Editor\Data\il2cpp\libil2cpp" -I"D:\UNITYEDITORS2020\2021.1.16f1\Editor\Data\il2cpp\libil2cpp" -I"D:\UNITYEDITORS2020\2021.1.16f1\Editor\Data\il2cpp\external\bdwgc\include" -I"D:\UNITYEDITORS2020\2021.1.16f1\Editor\Data\il2cpp\external\xxHash" -I"D:\UNITYEDITORS2020\2021.1.16f1\Editor\Data\il2cpp\external\baselib\Include" -I"D:\UNITYEDITORS2020\2021.1.16f1\Editor\Data\il2cpp\external\baselib\Platforms\WebGL\Include" -I"D:\UNITYEDITORS2020\2021.1.16f1\Editor\Data\il2cpp\libil2cpp\pch" -I"D:\ALL_CODE_STUFF\2021\unity\AquaChromeURP\AquaChromeURP\Library\Il2cppBuildCache\WebGL\il2cppOutput" "D:\ALL_CODE_STUFF\2021\unity\AquaChromeURP\AquaChromeURP\Library\Il2cppBuildCache\WebGL\il2cppOutput\Il2CppCCalculateTypeValues.cpp" -o "D:\ALL_CODE_STUFF\2021\unity\AquaChromeURP\AquaChromeURP\Library\il2cpp_cache\9008EF370E62A05562627CBD3E41AA33.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 <7ca9a09aeae542ab86253a551b1c89a0>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <7ca9a09aeae542ab86253a551b1c89a0>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo) (at <7ca9a09aeae542ab86253a551b1c89a0>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data) (at <7ca9a09aeae542ab86253a551b1c89a0>:0)
    UnityEditorInternal.IL2CPPBuilder.Run () (at <7ca9a09aeae542ab86253a551b1c89a0>:0)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at <7ca9a09aeae542ab86253a551b1c89a0>: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 <7ca9a09aeae542ab86253a551b1c89a0>: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 <7ca9a09aeae542ab86253a551b1c89a0>:0)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr, Boolean&)
     
  31. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,406
    Does this work for Android and Windows with the IL2CPP scripting backend? Or is the project using Mono for those platforms?
     
  32. radiantboy

    radiantboy

    Joined:
    Nov 21, 2012
    Posts:
    1,543
    Im using IL2CPP for all platforms.
     
  33. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,406
    Ok, thanks for the information. I'm not sure what is causing this, but I'll ask our WebGL team.
     
    radiantboy likes this.
  34. radiantboy

    radiantboy

    Joined:
    Nov 21, 2012
    Posts:
    1,543
    My Windows has a chinese username, I dont think that's it as its not in my path but you never know, it is in my c: path.
     
  35. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,406
    That might be a problem - I think that Emscripten (the C++ compiler for WebGL builds) sometimes struggles with non-English characters.
     
  36. Shatrughna

    Shatrughna

    Joined:
    May 27, 2021
    Posts:
    6
    Hi . I was building karting microgame for webgl in unity 2019.4.32f1 lts. I was following unity learn pathways and was following microgame tutorials . But it has got error 'il2cpp.exe has stopped working'. I have tried everything installed ndk also . Please help me solve this error.
    Thank you
     
    Last edited: Jan 31, 2022
  37. radiantboy

    radiantboy

    Joined:
    Nov 21, 2012
    Posts:
    1,543
    post some errors here if you have any
     
  38. Shatrughna

    Shatrughna

    Joined:
    May 27, 2021
    Posts:
    6
    Exception: G:\Unity\Unity\Unity 2019.4.32f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe did not run properly!
    Failed running "G:\Unity\Unity\Unity 2019.4.32f1\Editor\Data\il2cpp/build/deploy/net471/il2cpp.exe" --convert-to-cpp --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="WebGL" --architecture="EmscriptenJavaScript" --configuration="Release" --outputpath="G:\Karting Microgame\Assets /../Temp/StagingArea/Data\Native\build.bc" --cachedirectory="G:\Karting Microgame\Assets\..\Library/il2cpp_cache" --compiler-flags="-Oz -DIL2CPP_EXCEPTION_DISABLED=1 " --emit-method-map --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AccessibilityModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AIModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AndroidJNIModule_Dynamic.bc"--additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AnimationModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AssetBundleModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AudioModule_Dynamic.bc"--additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ClothModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_CoreModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_CrashReportingModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_DirectorModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_DSPGraphModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_GameCenterModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_GridModule_Dynamic.bc"--additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_HotReloadModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ImageConversionModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_IMGUIModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_InputLegacyModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_InputModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_JSONSerializeModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_LocalizationModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ParticleSystemModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_PerformanceReportingModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_Physics2DModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_PhysicsModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ProfilerModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ScreenCaptureModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SharedInternalsModule_Dynamic.bc"--additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SpriteMaskModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SpriteShapeModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_StreamingModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SubstanceModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SubsystemsModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainPhysicsModule_Dynamic.bc"--additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextCoreModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextRenderingModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TilemapModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TLSModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIElementsModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UmbraModule_Dynamic.bc"--additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UNETModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityAnalyticsModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityConnectModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityTestProtocolModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestAssetBundleModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestAudioModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestModule_Dynamic.bc"--additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestTextureModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestWWWModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VehiclesModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VFXModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VideoModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VRModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_WebGLModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_WindModule_Dynamic.bc" --additional-libraries="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\m
    odules\WebGLSupport_XRModule_Dynamic.bc" --profiler-report --map-file-parser="G:/Unity/Unity/Unity 2019.4.32f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory="G:/Karting Microgame/Temp/StagingArea/Data/Managed" --generatedcppdir="G:/Karting Microgame/Temp/StagingArea/Data/il2cppOutput"
    stdout:
    Building build.bc with EmscriptenToolChain
    Output directory: G:\Karting Microgame\Temp\StagingArea\Data\Native
    Cache directory: G:\Karting Microgame\Library\il2cpp_cache
    il2cpp.exe didn't catch exception: System.AggregateException: One or more errors occurred. ---> System.ComponentModel.Win32Exception: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)
    --- End of inner exception stack trace ---
    at Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T](D[] data, Func`2 action)
    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    at il2cpp.Program.Main(String[] args)
    ---> (Inner Exception #0) System.ComponentModel.Win32Exception (0x80004005): The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    ---> (Inner Exception #1) System.ComponentModel.Win32Exception (0x80004005): The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    ---> (Inner Exception #2) System.ComponentModel.Win32Exception (0x80004005): The application has failed to start because its side-by-side
    configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    ---> (Inner Exception #3) System.ComponentModel.Win32Exception (0x80004005): The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
    stderr:
    Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.ComponentModel.Win32Exception: The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail
    at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
    at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
    at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
    at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)
    --- End of inner exception stack trace ---
    at Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T](D[] data, Func`2 action)
    at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
    at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    at il2cpp.Program.DoRun(String[] args, List`1 foundAssemblies)
    at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
    at il2cpp.Program.Main(String[] args)
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at <4330b7b9ef6d4dd780b09ebcbf09fc68>:0)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory,
    UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at <4330b7b9ef6d4dd780b09ebcbf09fc68>:0)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at <4330b7b9ef6d4dd780b09ebcbf09fc68>:0)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (UnityEditor.Il2Cpp.Il2CppBuildPipelineData data, System.String outputDirectory, System.String workingDirectory, System.Boolean platformS<message truncated>
     
  39. Shatrughna

    Shatrughna

    Joined:
    May 27, 2021
    Posts:
    6
    Build completed with a result of 'Failed' in 247 seconds (247138 ms)
    UnityEngine.GUIUtility:processEvent (int,intptr)
     
  40. Shatrughna

    Shatrughna

    Joined:
    May 27, 2021
    Posts:
    6
    UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002bf] in <4330b7b9ef6d4dd780b09ebcbf09fc68>:0
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in <4330b7b9ef6d4dd780b09ebcbf09fc68>:0
    UnityEngine.GUIUtility:processEvent (int,intptr)
     
  41. Shatrughna

    Shatrughna

    Joined:
    May 27, 2021
    Posts:
    6
    [Version and Build] Build failed! 00:04:07.1376081
    UnityEngine.Debug:LogError (object)
    Unity.Connect.Share.Editor.ShareBuildProcessor/<WaitUntilBuildFinishes>d__4:MoveNext () (at Karting Microgame/Library/PackageCache/com.unity.connect.share@2.0.3/Editor/ShareBuildProcessor.cs:55)
    Unity.EditorCoroutines.Editor.EditorCoroutine/YieldProcessor:MoveNext (System.Collections.IEnumerator) (at Karting Microgame/Library/PackageCache/com.unity.editorcoroutines@1.0.0/Editor/EditorCoroutine.cs:80)
    Unity.EditorCoroutines.Editor.EditorCoroutine:processIEnumeratorRecursive (System.Collections.IEnumerator) (at Karting
    Microgame/Library/PackageCache/com.unity.editorcoroutines@1.0.0/Editor/EditorCoroutine.cs:134)
    Unity.EditorCoroutines.Editor.EditorCoroutine:MoveNext () (at Karting Microgame/Library/PackageCache/com.unity.editorcoroutines@1.0.0/Editor/EditorCoroutine.cs:115)
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
     
  42. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,406
    It looks like this is the relevant part of the error message. I suspect that you should re-install Unity. This error indicates that something is wrong with the installation of Emscripten, the compiler for WebGL.

    On another note, I would recommend posting questions like this to the WebGL section of the forums - this is the Android section. That might help you get a better answer.
     
    Shatrughna likes this.
  43. Shatrughna

    Shatrughna

    Joined:
    May 27, 2021
    Posts:
    6
    I have installed my unity directly. I haven't used unity hub or download assistant because I t take too much time. Thank you sir . I will reinstall it .
     
  44. ironbitUnity

    ironbitUnity

    Joined:
    Jun 29, 2017
    Posts:
    11
    Hi Josh

    I'm having some issue with the IL2CPP accesing some JSON files
    My app download some assetbundles at runtime, with the Mono backend this work as intended, but when I change the back to IL2CPP the same build connecting with the same CMS to download the ABs dont work as intended. The new scenes are running, but a lot of things dindt work.

    This is what I got in the ADB log:
    11248 11273 I Unity : Operning from assetBundle 06-01 10:02:57.471
    11248 11273 I Unity : Innoactive.Creator.Core.Configuration.BaseRuntimeConfiguration:LoadCourse(String) 06-01 10:02:57.471
    11248 11273 I Unity : Innoactive.Creator.UX.InitCourseOnSceneLoad:InitTraining() 06-01 10:02:57.471
    11248 11273 I Unity : UnityEngine.Object:Instantiate(T) 06-01 10:02:57.471
    11248 11273 I Unity : Innoactive.Creator.UX.CourseControllerSetup:Setup() 06-01 10:02:57.471
    11248 11273 I Unity : 06-01 10:02:57.471
    11248 11273 I Unity : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39) 06-01 10:02:57.471
    11248 11273 I Unity : 06-01 10:02:57.640
    11248 11273 E Unity : Error when loading training course. JsonSerializationException, Error getting value from 'Steps' on 'Innoactive.Creator.Core.Serialization.ImprovedNewtonsoftJsonCourseSerializer+CourseWrapper'. 06-01 10:02:57.640
    11248 11273 E Unity : at Newtonsoft.Json.Serialization.ExpressionValueProvider.GetValue (System.Object target) [0x00000] in <00000000000000000000000000000000>:0 06-01 10:02:57.640
    11248 11273 E Unity : at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CalculatePropertyDetails (Newtonsoft.Json.Serialization.JsonProperty property, Newtonsoft.Json.JsonConverter& propertyConverter, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty, Newtonsoft.Json.JsonReader reader, System.Object target, System.Boolean& useExistingValue, System.Object& currentValue, Newtonsoft.Json.Serialization.JsonContract& propertyContract, System.Boolean& gottenCurrentValue, System.Boolean& ignoredValue) [0x00000] in <00000000000000000000000000000000>:0 06-01 10:02:57.640
    11248 11273 E Unity : at Newtonsoft.Json.Serialization.JsonSerializerInternalReade 06-01 10:02:57.702
    11248 11273 E Unity : NullReferenceException: Object reference not set to an instance of an object. 06-01 10:02:57.702
    11248 11273 E Unity : at Innoactive.Creator.UX.BaseCourseControllerMenu.FetchAvailableLocalizationsForTraining () [0x00000] in <00000000000000000000000000000000>:0 06-01 10:02:57.702
    11248 11273 E Unity : at Innoactive.Creator.UX.BaseCourseControllerMenu.GetSelectedLanguage () [0x00000] in <00000000000000000000000000000000>:0 06-01 10:02:57.702
    11248 11273 E Unity : at Innoactive.Creator.UX.CustomMenuController.SetupMenu () [0x00000] in <00000000000000000000000000000000>:0 06-01 10:02:57.702
    11248 11273 E Unity : at Innoactive.Creator.UX.CustomMenuController+<WaitTillActive>d__17.MoveNext () [0x00000] in <00000000000000000000000000000000>:0 06-01 10:02:57.702 11248 11273 E Unity : at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00000] in <00000000000000000000000000000000>:0 06-01 10:02:57.702 11248 11273 E Unity : 06-01 10:02:57.702
    11248 11273 E Unity : (Filename: currently not available on il2cpp Line: -1) 06-01 10:02:57.702 11248 11273 E Unity : 06-01 10:02:57.727
    11248 11273 E Unity : NullReferenceException: Object reference not set to an instance of an object. 06-01 10:02:57.727
    11248 11273 E Unity : at PaningZoom.ChangedActiveCamera () [0x00000] in <00000000000000000000000000000000>:0 06-01 10:02:57.727 11248 11273 E Unity : 06-01 10:02:57.727
    11248 11273 E Unity : (Filename: currently not available on il2cpp Line: -1) 06-01 10:02:57.727 11248 11273 E Unity :
     
  45. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,406
    This looks like a bit different error than some others in this thread. I suspect that managed code which is used via reflection is removed during the build process for IL2CPP. See the details about managed code stripping here: https://docs.unity3d.com/Manual/ManagedCodeStripping.html

    You may need to give the manage code stripping system some hints about what code to preserve via the link.xml file.
     
  46. gtlogy

    gtlogy

    Joined:
    May 24, 2022
    Posts:
    6
    Hello, I having this error please help me.
    Exception: C:\Program Files\Unity\Hub\Editor\2017.4.21f1\Editor\Data\il2cpp/build/il2cpp.exe did not run properly!
    UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:130)
    UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1 setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
    UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1 arguments, System.Action`1 setupStartInfo, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:336)
    UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (ICollection`1 userAssemblies, System.String outputDirectory, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:317)
    UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:160)
    UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean debugBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
    UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
    UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.BuildReporting.BuildReport report)
    UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args)
    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:272)
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  47. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,406
    It looks like this might be the same question asked here: https://forum.unity.com/threads/exception-il2cpp-exe-did-not-run-properly.659323/page-5#post-8232582

    I've replied on that other thread.