Exception: C:\Unity\Hub\Editors\2020.1.7f1\Editor\Data\il2cpp/build/deploy/netcoreapp3.0/il2cpp.exe did not run properly!
Hello, im having this problem while trying to build my project to WebGL with standard settings in unity 2020.1.7f1.
ive tryed a couple of things but nothing worked. anyone know the awnser?
error:
Exception: C:\Unity\Hub\Editors\2020.1.7f1\Editor\Data\il2cpp/build/deploy/netcoreapp3.0/il2cpp.exe did not run properly!
Failed running "C:\Unity\Hub\Editors\2020.1.7f1\Editor\Data\il2cpp/build/deploy/netcoreapp3.0/il2cpp.exe" --convert-to-cpp --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="WebGL" --architecture="EmscriptenJavaScript" --configuration="Release" --outputpath="C:\ragdoll\Assets /../Temp/StagingArea/Data\Native\build.bc" --cachedirectory="C:\ragdoll\Assets\..\Library/il2cpp_cache" --compiler-flags="-Oz -DIL2CPP_EXCEPTION_DISABLED=1 " --baselib-directory="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\Variations\nondevelopment" --avoid-dynamic-library-copy --emit-method-map --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AccessibilityModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AIModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AndroidJNIModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AnimationModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AssetBundleModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_AudioModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ClothModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_CoreModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_CrashReportingModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_DirectorModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_DSPGraphModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_GameCenterModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_GridModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_HotReloadModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ImageConversionModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_IMGUIModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_InputLegacyModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_InputModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_JSONSerializeModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_LocalizationModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ParticleSystemModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_PerformanceReportingModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_Physics2DModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_PhysicsModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ProfilerModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_ScreenCaptureModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SharedInternalsModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SpriteMaskModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SpriteShapeModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_StreamingModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SubstanceModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_SubsystemsModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TerrainPhysicsModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextCoreModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TextRenderingModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TilemapModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_TLSModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIElementsModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIElementsNativeModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UIModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UmbraModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UNETModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityAnalyticsModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityConnectModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityTestProtocolModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestAssetBundleModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestAudioModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestTextureModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_UnityWebRequestWWWModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VehiclesModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VFXModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VideoModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_VRModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_WebGLModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_WindModule_Dynamic.bc" --additional-libraries="C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/PlaybackEngines/WebGLSupport\BuildTools\lib\modules\WebGLSupport_XRModule_Dynamic.bc" --profiler-report --map-file-parser=C:/Unity/Hub/Editors/2020.1.7f1/Editor/Data/Tools/MapFileParser/MapFileParser.exe --directory=C:/ragdoll/Temp/StagingArea/Data/Managed --generatedcppdir=C:/ragdoll/Temp/StagingArea/Data/il2cppOutput
stdout:
Running il2cpp.exe in server GC mode.
Building build.bc with EmscriptenToolChain
Output directory: C:\ragdoll\Temp\StagingArea\Data\Native
Cache directory: C:\ragdoll\Library\il2cpp_cache
il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\ragdoll\Temp\StagingArea\Data\il2cppOutput\Destruction.cpp:10585:57: error: no matching function for call to 'GUIElement_GetScreenRect_m43729F4404918D98607B28ECF83458C669A7CBD4'
Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878 L_8 = GUIElement_GetScreenRect_m43729F4404918D98607B28ECF83458C669A7CBD4(L_6, L_7, /*hidden argument*/NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\ragdoll\Temp\StagingArea\Data\il2cppOutput\Destruction.cpp:5768:84: note: candidate function not viable: no known conversion from 'GUITexture_t804803F0948E46CF8CAF71AB6B6FDC8F4F21B868 *' to 'GUIElement_t5D1B75EAE9CF2EBB73B81F359E1C9C151D85F583 *' for 1st argument
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878 GUIElement_GetScreenRect_m43729F4404918D98607B28ECF83458C669A7CBD4 (GUIElement_t5D1B75EAE9CF2EBB73B81F359E1C9C151D85F583 * __this, Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * p0, const RuntimeMethod* method);
^
1 error generated.
ERROR:root:compiler frontend failed to generate LLVM bitcode, halting
Invocation was: Executable: "C:\Unity\Hub\Editors\2020.1.7f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe"
Arguments: -E "C:\Unity\Hub\Editors\2020.1.7f1\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:\Unity\Hub\Editors\2020.1.7f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Unity\Hub\Editors\2020.1.7f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Unity\Hub\Editors\2020.1.7f1\Editor\Data\il2cpp\external\bdwgc\include" -I"C:\Unity\Hub\Editors\2020.1.7f1\Editor\Data\il2cpp\external\xxHash" -I"C:\Unity\Hub\Editors\2020.1.7f1\Editor\Data\il2cpp\external\baselib\Include" -I"C:\Unity\Hub\Editors\2020.1.7f1\Editor\Data\il2cpp\external\baselib\Platforms\WebGL\Include" -I"C:\Unity\Hub\Editors\2020.1.7f1\Editor\Data\il2cpp\libil2cpp\pch" -I"C:\ragdoll\Temp\StagingArea\Data\il2cppOutput" "C:\ragdoll\Temp\StagingArea\Data\il2cppOutput\Destruction.cpp" -o "C:\ragdoll\Library\il2cpp_cache\E7422ABFE3851DD3DE70460F10B39A43.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)
at il2cpp.Program.DoRun(String[] args, RuntimePlatform platform, BuildingOptions buildingOptions)
at il2cpp.Program.Run(String[] args, Boolean setInvariantCulture)
at il2cpp.Program.Main(String[] args)
stderr:
Unhandled exception. Unity.IL2CPP.Building.BuilderFailedException: C:\ragdoll\Temp\StagingArea\Data\il2cppOutput\Destruction.cpp:10585:57: error: no matching function for call to 'GUIElement_GetScreenRect_m43729F4404918D98607B28ECF83458C669A7CBD4'
Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878 L_8 = GUIElement_GetScreenRect_m43729F4404918D98607B28ECF83458C669A7CBD4(L_6, L_7, /*hidden argument*/NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C:\ragdoll\Temp\StagingArea\Data\il2cppOutput\Destruction.cpp:5768:84: note: candidate function not viable: no known conversion from 'GUITexture_t804803F0948E46CF8CAF71AB6B6FDC8F4F21B868 *' to 'GUIElement_t5D1B75EAE9CF2EBB73B81F359E1C9C151D85F583 *' for 1st argument
IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Rect_t7D9187DB6339DBA5741C09B6CCEF2F54F1966878 GUIElement_GetScreenRect_m43729F4404918D98607B28ECF83458C669A7CBD4 (GUIElement_t5D1B75EAE9CF2EBB73B81F359E1C9C151D85F583 * __this, Camera_tC44E094BAB53AFC8A014C6F9CFCE11F4FC38006C * p0, const RuntimeMethod* method);
^
1 error generated.
ERROR:root:compiler frontend failed to generate LLVM bitcode, halting
Invocation was: Executable: "C:\Unity\Hub\Editors\2020.1.7f1\Editor\Data\PlaybackEngines\WebGLSupport\BuildTools\Emscripten_Win\python\2.7.5.3_64bit\python.exe"
Arguments: -E "C:\Unity\Hub\Editors\2020.1.7f1\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:\Unity\Hub\Editors\2020.1.7f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Unity\Hub\Editors\2020.1.7f1\Editor\Data\il2cpp\libil2cpp" -I"C:\Unity\Hub\Editors\2020.1.7f1\Editor\Data\il2cpp\external\bdwgc\include" -I"C:\Unity\Hub\Editors\2020.1.7f1\Editor\Data\il2cpp\external\xxHash" -I"C:\Unity\Hub\Editors\2020.1.7f1\Editor\Data\il2cpp\external\baselib\Include" -I"C:\Unity\Hub\Editors\2020.1.7f1\Editor\Data\il2cpp\external\baselib\Platforms\WebGL\Include" -I"C:\Unity\Hub\Editors\2020.1.7f1\Editor\Data\il2cpp\libil2cpp\pch" -I"C:\ragdoll\Temp\StagingArea\Data\il2cppOutput" "C:\ragdoll\Temp\StagingArea\Data\il2cppOutput\Destruction.cpp" -o "C:\ragdoll\Library\il2cpp_cache\E7422ABFE3851DD3DE70460F10B39A43.o"<message truncated>
This looks like a bug in IL2CPP, or it might caused by invalid IL code. Are you able to submit a bug report with this project?
I have no idea how to bug report and what is invalid IL code?
Instructions for bug reporting are here: https://unity3d.com/unity/qa/bug-reporting
Invalid IL code means that the .NET DLL file in the project has some how been corrupted. That could happen in a number of ways. In this case, it looks like there is a file named Destruction.dll in the project which is the source of this issue.
I just want to know if there is any way of getting it to work real quick. would switching to a different device work because reinstalling EVERYTHING doesn't work apparently...
I'm not sure there is a quick fix. If the Destruction.dll file is not necessary, maybe you could try to remove it. Other than that, I'm not sure.
Answer by shadow_tm · Oct 06, 2020 at 09:58 AM
Hi! I have same issue.
Hi, are you still having this issue? the problem i had was with some assets i downloaded that ware fucking it up.
just check if Destruction.ccp is in your error. if it is then i can further help you. otherwise you wuld have to look further!