Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Not implemented icall: NativeMethods::CloseProcess (webGL/il2cpp)

Discussion in 'Editor & General Support' started by SergOBW, Oct 7, 2023.

  1. SergOBW

    SergOBW

    Joined:
    Oct 24, 2022
    Posts:
    1
    When I make a build under webGl, I have the game first starts and functions as it should, but then if you reload the page starts to throw an error. Has anyone already encountered this problem ?

    WebGlBuilds.framework.js:10332 Not implemented icall: NativeMethods::CloseProcess
    at il2cpp::icalls::System::Microsoft::Win32::NativeMethods::CloseProcess(long) (WebGlBuilds.wasm:wasm-function[117689]:0x40029ff)
    at GC_call_with_alloc_lock (WebGlBuilds.wasm:wasm-function[1114]:0x1391cc)
    at http://localhost:9279/Build/WebGlBuilds.framework.js:1036:20
    at invoke_ii (WebGlBuilds.framework.js:16551:10)
    at NativeMethods_CloseProcess_mC58317B5182D4057EB1D65C8ABD2A3AE5A6D00D4 (WebGlBuilds.wasm:wasm-function[118205]:0x4049225)
    at dynCall_iii (WebGlBuilds.wasm:wasm-function[232947]:0x73e878b)
    at http://localhost:9279/Build/WebGlBuilds.framework.js:1036:20
    at invoke_iii (WebGlBuilds.framework.js:16573:10)
    at SafeProcessHandle_ReleaseHandle_m9026551EED6D5751BCBB3F413986A339E0DFE258 (WebGlBuilds.wasm:wasm-function[118207]:0x40493f3)
    at il2cpp::utils::FinallyHelper<SafeHandle_DangerousReleaseInternal_m1B36ED7C3E0A04CFA3E50FC69B0071ED045D42E9::$_3, false>::~FinallyHelper() (WebGlBuilds.wasm:wasm-function[151498]:0x4e5b7e3)
    at GC_call_with_alloc_lock (WebGlBuilds.wasm:wasm-function[1114]:0x1391cc)
    at http://localhost:9279/Build/WebGlBuilds.framework.js:1036:20
    at invoke_ii (WebGlBuilds.framework.js:16551:10)
    at SafeHandle_DangerousReleaseInternal_m1B36ED7C3E0A04CFA3E50FC69B0071ED045D42E9 (WebGlBuilds.wasm:wasm-function[151459]:0x4e58b0d)
    at dynCall_viii (WebGlBuilds.wasm:wasm-function[232958]:0x73e8828)
    at http://localhost:9279/Build/WebGlBuilds.framework.js:1036:20
    at invoke_viii (WebGlBuilds.framework.js:16595:3)
    at SafeHandle_InternalFinalize_mDF3C9566A9B10C9B8F1CD4D1E5D16015A1EB3CE2 (WebGlBuilds.wasm:wasm-function[151495]:0x4e5b41f)
    at dynCall_vii (WebGlBuilds.wasm:wasm-function[232949]:0x73e87ac)
    at http://localhost:9279/Build/WebGlBuilds.framework.js:1036:20
    at invoke_vii (WebGlBuilds.framework.js:16562:3)
    at SafeHandle_Dispose_m8B7AAA8CF9D5AD35412BCFB00EAD048EBC1C3514 (WebGlBuilds.wasm:wasm-function[151493]:0x4e5b0be)
    at VirtualActionInvoker1<AddingNewEventArgs_tEC40338DEDF3AC333B90EB75744CF5C4C9A0EE4A*>::Invoke(unsigned short, Il2CppObject*, AddingNewEventArgs_tEC40338DEDF3AC333B90EB75744CF5C4C9A0EE4A*) (WebGlBuilds.wasm:wasm-function[4269]:0x27b6a8)
    at dynCall_viii (WebGlBuilds.wasm:wasm-function[232958]:0x73e8828)
    at http://localhost:9279/Build/WebGlBuilds.framework.js:1036:20
    at invoke_viii (WebGlBuilds.framework.js:16595:3)
    at SafeHandle_Finalize_m37C72FD2FE3D87E32CB41FAA2FC1C6B03510337B (WebGlBuilds.wasm:wasm-function[151486]:0x4e5ab0a)
    at RuntimeInvoker_TrueVoid_t4861ACF8F4594C3437BB48B6E56783494B843915(void (WebGlBuilds.wasm:wasm-function[204379]:0x6647a12)
    at il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**) (WebGlBuilds.wasm:wasm-function[207878]:0x668f2d6)
    at dynCall_iiii (WebGlBuilds.wasm:wasm-function[232950]:0x73e87ba)
    at http://localhost:9279/Build/WebGlBuilds.framework.js:1036:20
    at invoke_iiii (WebGlBuilds.framework.js:16617:10)
    at il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) (WebGlBuilds.wasm:wasm-function[207856]:0x668e863)
    at il2cpp::gc::GarbageCollector::RunFinalizer(void*, void*) (WebGlBuilds.wasm:wasm-function[2594]:0x17d712)
    at GC_invoke_finalizers (WebGlBuilds.wasm:wasm-function[1079]:0x1375d1)
    at GC_notify_or_invoke_finalizers (WebGlBuilds.wasm:wasm-function[1036]:0x133a9a)
    at GC_gcollect (WebGlBuilds.wasm:wasm-function[1080]:0x137668)
    at LoadSceneOperation::playerLoadSceneFromThread() (WebGlBuilds.wasm:wasm-function[210568]:0x67185c2)
    at LoadSceneOperation::IntegrateMainThread() (WebGlBuilds.wasm:wasm-function[210566]:0x671797e)
    at PreloadManager::UpdatePreloadingSingleStep(PreloadManager::UpdatePreloadingFlags, int) (WebGlBuilds.wasm:wasm-function[210581]:0x67198d1)
    at PreloadManager::WaitForAllAsyncOperationsToComplete() (WebGlBuilds.wasm:wasm-function[210582]:0x6719a0b)
    at PlayerStartFirstScene(bool) (WebGlBuilds.wasm:wasm-function[229454]:0x72c6cda)
    at main (WebGlBuilds.wasm:wasm-function[227334]:0x71ae954)
    at http://localhost:9279/Build/WebGlBuilds.framework.js:1036:20
    at callMain (WebGlBuilds.framework.js:23235:13)
    at doRun (WebGlBuilds.framework.js:23278:21)
     
  2. maksimov

    maksimov

    Joined:
    Nov 19, 2012
    Posts:
    3
    I have exactly the same problem.
     
  3. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,749
    Almost nothing in System.Diagnostics has been implemented in IL2CPP. There's a blog post or something somewhere (googling) exactly wasn't ported.