Search Unity

[Solved] Missing function Init() WebGL build error when loading

Discussion in 'Web' started by KuroPhoenix7, Sep 8, 2017.

  1. KuroPhoenix7

    KuroPhoenix7

    Joined:
    Jun 16, 2016
    Posts:
    3
    Hi, I am getting following error

    UnityLoader.js:1 missing function: Init
    printErr @ UnityLoader.js:1
    UnityLoader.js:1 -1
    UnityLoader.js:1 -1
    printErr @ UnityLoader.js:1
    UnityLoader.js:1 Invoking error handler due to
    Uncaught abort(-1) at Error
    at jsStackTrace (WaitASecondWithLevels.asm.framework.unityweb:2:27465)
    at stackTrace (WaitASecondWithLevels.asm.framework.unityweb:2:27636)
    at abort (WaitASecondWithLevels.asm.framework.unityweb:4:29991)
    at _Init (WaitASecondWithLevels.asm.framework.unityweb:2:287648)
    at NXj [Array.NXj] (WaitASecondWithLevels.asm.code.unityweb:6:804985)
    at Hpi [Array.Hpi] (WaitASecondWithLevels.asm.code.unityweb:4:666488)
    at Lck [Object.Lck] (WaitASecondWithLevels.asm.code.unityweb:6:1014648)
    at invoke_iiii (WaitASecondWithLevels.asm.framework.unityweb:2:345789)
    at V8c (WaitASecondWithLevels.asm.code.unityweb:16:135940)
    at dcd (WaitASecondWithLevels.asm.code.unityweb:16:165251)
    at k6 (WaitASecondWithLevels.asm.code.unityweb:7:728258)
    at i6 (WaitASecondWithLevels.asm.code.unityweb:7:727156)
    at M$a (WaitASecondWithLevels.asm.code.unityweb:15:648255)
    at L$a (WaitASecondWithLevels.asm.code.unityweb:15:646982)
    at bKb [Array.bKb] (WaitASecondWithLevels.asm.code.unityweb:11:619480)
    at yub [Array.yub] (WaitASecondWithLevels.asm.code.unityweb:12:976509)
    at aWa [Array.aWa] (WaitASecondWithLevels.asm.code.unityweb:15:335935)
    at Nia (WaitASecondWithLevels.asm.code.unityweb:14:54408)
    at Aia [Array.Aia] (WaitASecondWithLevels.asm.code.unityweb:14:43863)
    at rck [Object.rck] (WaitASecondWithLevels.asm.code.unityweb:6:1012445)
    at browserIterationFunc (WaitASecondWithLevels.asm.framework.unityweb:2:48020)
    at runIter [Object.runIter] (WaitASecondWithLevels.asm.framework.unityweb:2:51093)
    at Browser_mainLoop_runner (WaitASecondWithLevels.asm.framework.unityweb:2:49555)
    If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.
    blob:http://localhost:49658/e1e16101-e16d-4795-99ba-f57651b9c53c:2 Uncaught abort(-1) at Error
    at jsStackTrace (blob:http://localhost:49658/e1e16101-e16d-4795-99ba-f57651b9c53c:2:27465)
    at stackTrace (blob:http://localhost:49658/e1e16101-e16d-4795-99ba-f57651b9c53c:2:27636)
    at abort (blob:http://localhost:49658/e1e16101-e16d-4795-99ba-f57651b9c53c:4:29991)
    at _Init (blob:http://localhost:49658/e1e16101-e16d-4795-99ba-f57651b9c53c:2:287648)
    at Array.NXj (blob:http://localhost:49658/e252df79-385c-4834-8f3d-6cd39eeee402:6:804985)
    at Array.Hpi (blob:http://localhost:49658/e252df79-385c-4834-8f3d-6cd39eeee402:4:666488)
    at Object.Lck [as dynCall_iiii] (blob:http://localhost:49658/e252df79-385c-4834-8f3d-6cd39eeee402:6:1014648)
    at invoke_iiii (blob:http://localhost:49658/e1e16101-e16d-4795-99ba-f57651b9c53c:2:345789)
    at V8c (blob:http://localhost:49658/e252df79-385c-4834-8f3d-6cd39eeee402:16:135940)
    at dcd (blob:http://localhost:49658/e252df79-385c-4834-8f3d-6cd39eeee402:16:165251)
    at k6 (blob:http://localhost:49658/e252df79-385c-4834-8f3d-6cd39eeee402:7:728258)
    at i6 (blob:http://localhost:49658/e252df79-385c-4834-8f3d-6cd39eeee402:7:727156)
    at M$a (blob:http://localhost:49658/e252df79-385c-4834-8f3d-6cd39eeee402:15:648255)
    at L$a (blob:http://localhost:49658/e252df79-385c-4834-8f3d-6cd39eeee402:15:646982)
    at Array.bKb (blob:http://localhost:49658/e252df79-385c-4834-8f3d-6cd39eeee402:11:619480)
    at Array.yub (blob:http://localhost:49658/e252df79-385c-4834-8f3d-6cd39eeee402:12:976509)
    at Array.aWa (blob:http://localhost:49658/e252df79-385c-4834-8f3d-6cd39eeee402:15:335935)
    at Nia (blob:http://localhost:49658/e252df79-385c-4834-8f3d-6cd39eeee402:14:54408)
    at Array.Aia (blob:http://localhost:49658/e252df79-385c-4834-8f3d-6cd39eeee402:14:43863)
    at Object.rck [as dynCall_v] (blob:http://localhost:49658/e252df79-385c-4834-8f3d-6cd39eeee402:6:1012445)
    at browserIterationFunc (blob:http://localhost:49658/e1e16101-e16d-4795-99ba-f57651b9c53c:2:48020)
    at Object.runIter (blob:http://localhost:49658/e1e16101-e16d-4795-99ba-f57651b9c53c:2:51093)
    at Browser_mainLoop_runner (blob:http://localhost:49658/e1e16101-e16d-4795-99ba-f57651b9c53c:2:49555)
    If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.


    Any idea how to fix this. Thank you
     
  2. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    try to post a development build stacktrace.
     
  3. KuroPhoenix7

    KuroPhoenix7

    Joined:
    Jun 16, 2016
    Posts:
    3
    Hi @Marco-Trivellato

    I am posting developer stacktrace below also I am using Unity 5.6.0p3.

    UnityLoader.js:234 run() called, but dependencies remain, so not running
    printErr @ UnityLoader.js:234
    UnityLoader.js:234 pre-main prep time: 137 ms
    printErr @ UnityLoader.js:234
    blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:8297 PlayerConnection initialized from (debug = 0)

    blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:8297 PlayerConnection disabled - listening mode not supported

    blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:8297 Initialize engine version: 5.6.0p3 (f8dcc233883f)

    UnityLoader.js:233 Creating WebGL 2.0 context.
    blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:8297 Renderer: WebKit WebGL

    blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:8297 Vendor: WebKit

    blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:8297 Version: OpenGL ES 3.0 (WebGL 2.0 (OpenGL ES 3.0 Chromium))

    blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:8297 GLES: 3

    blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:8297 EXT_color_buffer_float GL_EXT_color_buffer_float EXT_disjoint_timer_query_webgl2 GL_EXT_disjoint_timer_query_webgl2 EXT_texture_filter_anisotropic GL_EXT_texture_filter_anisotropic OES_texture_float_linear GL_OES_texture_float_linear WEBGL_compressed_texture_s3tc GL_WEBGL_compressed_texture_s3tc WEBGL_compressed_texture_s3tc_srgb GL_WEBGL_compressed_texture_s3tc_srgb WEBGL_debug_renderer_info GL_WEBGL_debug_renderer_info WEBGL_debug_shaders GL_WEBGL_debug_shaders WEBGL_lose_context GL_WEBGL_lose_context

    blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:8297 OPENGL LOG: Creating OpenGL ES 3.0 graphics device ; Context level <OpenGL ES 3.0> ; Context handle 1

    blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:8297 UnloadTime: 8.335000 ms

    blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:6164 warning: 2 FS.syncfs operations in flight at once, probably just doing extra work
    UnityLoader.js:234 missing function: Init
    printErr @ UnityLoader.js:234
    UnityLoader.js:233 -1
    UnityLoader.js:234 -1
    printErr @ UnityLoader.js:234
    UnityLoader.js:522 Invoking error handler due to
    Uncaught abort(-1) at Error
    at jsStackTrace (WaitASecondWithLevels.asm.framework.unityweb:1154:12)
    at stackTrace (WaitASecondWithLevels.asm.framework.unityweb:1168:11)
    at abort (WaitASecondWithLevels.asm.framework.unityweb:18933:43)
    at _Init (WaitASecondWithLevels.asm.framework.unityweb:12315:2)
    at _MainGameManager_Start_m2918188517 [Array._MainGameManager_Start_m2918188517] (WaitASecondWithLevels.asm.code.unityweb:1376367:2)
    at __Z31RuntimeInvoker_Void_t1841601450PK10MethodInfoPvPS2_ [Array.__Z31RuntimeInvoker_Void_t1841601450PK10MethodInfoPvPS2_] (WaitASecondWithLevels.asm.code.unityweb:1359581:44)
    at dynCall_iiii [Object.dynCall_iiii] (WaitASecondWithLevels.asm.code.unityweb:1369746:39)
    at invoke_iiii (WaitASecondWithLevels.asm.framework.unityweb:16152:32)
    at __ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException (WaitASecondWithLevels.asm.code.unityweb:1127628:8)
    at _il2cpp_runtime_invoke (WaitASecondWithLevels.asm.code.unityweb:1292542:9)
    at __Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb (WaitASecondWithLevels.asm.code.unityweb:1196282:8)
    at __ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb (WaitASecondWithLevels.asm.code.unityweb:764697:7)
    at __ZN13MonoBehaviour30InvokeMethodOrCoroutineCheckedE18ScriptingMethodPtr18ScriptingObjectPtrP21ScriptingExceptionPtr (WaitASecondWithLevels.asm.code.unityweb:198539:9)
    at __ZN13MonoBehaviour30InvokeMethodOrCoroutineCheckedE18ScriptingMethodPtr18ScriptingObjectPtr (WaitASecondWithLevels.asm.code.unityweb:753547:7)
    at __ZN13MonoBehaviour16DelayedStartCallEP6ObjectPv [Array.__ZN13MonoBehaviour16DelayedStartCallEP6ObjectPv] (WaitASecondWithLevels.asm.code.unityweb:960361:2)
    at __ZN18DelayedCallManager6UpdateEi [Array.__ZN18DelayedCallManager6UpdateEi] (WaitASecondWithLevels.asm.code.unityweb:390679:63)
    at __ZZ23InitPlayerLoopCallbacksvEN45EarlyUpdateScriptRunDelayedStartupFramestruct7ForwardEv [Array.__ZZ23InitPlayerLoopCallbacksvEN45EarlyUpdateScriptRunDelayedStartupFramestruct7ForwardEv] (WaitASecondWithLevels.asm.code.unityweb:1332608:69)
    at __Z10PlayerLoopv (WaitASecondWithLevels.asm.code.unityweb:289802:40)
    at __ZL8MainLoopv [Array.__ZL8MainLoopv] (WaitASecondWithLevels.asm.code.unityweb:884250:3)
    at dynCall_v [Object.dynCall_v] (WaitASecondWithLevels.asm.code.unityweb:1404050:28)
    at browserIterationFunc (WaitASecondWithLevels.asm.framework.unityweb:2385:23)
    at runIter [Object.runIter] (WaitASecondWithLevels.asm.framework.unityweb:2487:5)
    at Browser_mainLoop_runner (WaitASecondWithLevels.asm.framework.unityweb:2423:20)
    blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:2493 Uncaught abort(-1) at Error
    at jsStackTrace (blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:1154:12)
    at stackTrace (blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:1168:11)
    at abort (blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:18933:43)
    at _Init (blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:12315:2)
    at Array._MainGameManager_Start_m2918188517 (blob:http://localhost:55580/c14acd48-efa6-4ce8-a67a-e43ffa16bcf1:1376367:2)
    at Array.__Z31RuntimeInvoker_Void_t1841601450PK10MethodInfoPvPS2_ [RuntimeInvoker_Void_t1841601450(MethodInfo const*, void*, void**)] (blob:http://localhost:55580/c14acd48-efa6-4ce8-a67a-e43ffa16bcf1:1359581:44)
    at Object.dynCall_iiii (blob:http://localhost:55580/c14acd48-efa6-4ce8-a67a-e43ffa16bcf1:1369746:39)
    at invoke_iiii (blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:16152:32)
    at __ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException [il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**)] (blob:http://localhost:55580/c14acd48-efa6-4ce8-a67a-e43ffa16bcf1:1127628:8)
    at _il2cpp_runtime_invoke (blob:http://localhost:55580/c14acd48-efa6-4ce8-a67a-e43ffa16bcf1:1292542:9)
    at __Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb [scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool)] (blob:http://localhost:55580/c14acd48-efa6-4ce8-a67a-e43ffa16bcf1:1196282:8)
    at __ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb [ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool)] (blob:http://localhost:55580/c14acd48-efa6-4ce8-a67a-e43ffa16bcf1:764697:7)
    at __ZN13MonoBehaviour30InvokeMethodOrCoroutineCheckedE18ScriptingMethodPtr18ScriptingObjectPtrP21ScriptingExceptionPtr [MonoBehaviour::InvokeMethodOrCoroutineChecked(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingExceptionPtr*)] (blob:http://localhost:55580/c14acd48-efa6-4ce8-a67a-e43ffa16bcf1:198539:9)
    at __ZN13MonoBehaviour30InvokeMethodOrCoroutineCheckedE18ScriptingMethodPtr18ScriptingObjectPtr [MonoBehaviour::InvokeMethodOrCoroutineChecked(ScriptingMethodPtr, ScriptingObjectPtr)] (blob:http://localhost:55580/c14acd48-efa6-4ce8-a67a-e43ffa16bcf1:753547:7)
    at Array.__ZN13MonoBehaviour16DelayedStartCallEP6ObjectPv [MonoBehaviour::DelayedStartCall(Object*, void*)] (blob:http://localhost:55580/c14acd48-efa6-4ce8-a67a-e43ffa16bcf1:960361:2)
    at Array.__ZN18DelayedCallManager6UpdateEi [DelayedCallManager::Update(int)] (blob:http://localhost:55580/c14acd48-efa6-4ce8-a67a-e43ffa16bcf1:390679:63)
    at Array.__ZZ23InitPlayerLoopCallbacksvEN45EarlyUpdateScriptRunDelayedStartupFramestruct7ForwardEv [InitPlayerLoopCallbacks()::EarlyUpdateScriptRunDelayedStartupFramestruct::Forward()] (blob:http://localhost:55580/c14acd48-efa6-4ce8-a67a-e43ffa16bcf1:1332608:69)
    at __Z10PlayerLoopv [PlayerLoop()] (blob:http://localhost:55580/c14acd48-efa6-4ce8-a67a-e43ffa16bcf1:289802:40)
    at Array.__ZL8MainLoopv [MainLoop()] (blob:http://localhost:55580/c14acd48-efa6-4ce8-a67a-e43ffa16bcf1:884250:3)
    at Object.dynCall_v (blob:http://localhost:55580/c14acd48-efa6-4ce8-a67a-e43ffa16bcf1:1404050:28)
    at browserIterationFunc (blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:2385:23)
    at Object.runIter (blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:2487:5)
    at Browser_mainLoop_runner (blob:http://localhost:55580/6577c4b2-16a1-4dcb-b47f-6012ed7f1d55:2423:20)

    I hope this helps. Thank you.
     
  4. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    could you open WaitASecondWithLevels.asm.framework.unityweb and take a look at the _Init function? is that something from your code? what does that do?
     
    KuroPhoenix7 likes this.
  5. KuroPhoenix7

    KuroPhoenix7

    Joined:
    Jun 16, 2016
    Posts:
    3
    Thank you @Marco-Trivellato for reply. I found the problem. Actually I have created custom plugin to contact with LRS. Plugin was missing inside the project and I was calling it through wrapper. Problem solved after adding the plugin inside project again.