Search Unity

WebGL Getting errors When I try to run the build.

Discussion in 'Web' started by LockBros, Jan 27, 2017.

  1. LockBros

    LockBros

    Joined:
    Oct 8, 2014
    Posts:
    4
    Hi, I have seen a fewpeople with this problem and they seem to sort it out but never let people know how.

    From a build:

    An error occurred running the Unity content on this page. See your browser's JavaScript console for more info. The error was:An error occurred running the Unity content on this page. See your browser's JavaScript console for more info. The error was:
    uncaught exception: abort(129) at jsStackTrace (Web.js:1:19699)
    stackTrace (Web.js:1:19870)
    abort (Web.js:3:31308)
    odn (blob:26:1)
    Gyl (blob:4:1)
    H1l (blob:16:1)
    m7j (blob:4:1)
    him (blob:16:1)
    nlm (blob:16:1)
    kka (blob:7:1)
    jka (blob:7:1)
    W1b (blob:10:1)
    J1b (blob:10:1)
    $tc (blob:14:1)
    _tc (blob:14:1)
    n4a (blob:13:1)
    Dta (blob:7:1)
    qta (blob:7:1)
    C6m (blob:26:1)
    dynCall [Runtime.dynCall] (Web.js:1:7628)
    _emscripten_set_main_loop [_emscripten_set_main_loop/browserIterationFunc] (Web.js:1:39176)
    runIter [Browser.mainLoop.runIter] (Web.js:1:42268)
    Browser_mainLoop_runner (Web.js:1:40713)

    If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.





    And this is from a development build I made:

    An error occurred running the Unity content on this page. See your browser's JavaScript console for more info. The error was:
    uncaught exception: abort(129) at jsStackTrace (Builds.js:866:12)
    stackTrace (Builds.js:880:11)
    abort (Builds.js:19075:43)
    nullFunc_viii (Builds.js:14838:2)
    b129 (Builds.asm.js:2032575:1)
    VirtActionInvoker1<String_t*>::Invoke(unsigned int, void*, String_t*) [__ZN18VirtActionInvoker1IP8String_tE6InvokeEjPvS1_] (Builds.asm.js:1864670:1)
    _gameCEO_Update_m3847622025 (Builds.asm.js:1512472:1)
    RuntimeInvoker_Void_t1841601450(MethodInfo const*, void*, void**) [__Z31RuntimeInvoker_Void_t1841601450PK10MethodInfoPvPS2_] (Builds.asm.js:1981946:1)
    il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) [__ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException] (Builds.asm.js:1896137:1)
    _il2cpp_runtime_invoke (Builds.asm.js:1904001:1)
    scripting_method_invoke(ScriptingMethodIl2Cpp, Il2CppObject*, ScriptingArguments&, Il2CppException**, bool) [__Z23scripting_method_invoke21ScriptingMethodIl2CppP12Il2CppObjectR18ScriptingArgumentsPP15Il2CppExceptionb] (Builds.asm.js:1799375:1)
    ScriptingInvocation::Invoke(Il2CppException**, bool) [__ZN19ScriptingInvocation6InvokeEPP15Il2CppExceptionb] (Builds.asm.js:1353215:1)
    MonoBehaviour::CallUpdateMethod(int) [__ZN13MonoBehaviour16CallUpdateMethodEi] (Builds.asm.js:1263986:1)
    MonoBehaviour::Update() [__ZN13MonoBehaviour6UpdateEv] (Builds.asm.js:2023014:1)
    void BaseBehaviourManager::CommonUpdate<BehaviourManager>() [__ZN20BaseBehaviourManager12CommonUpdateI16BehaviourManagerEEvv] (Builds.asm.js:1006873:1)
    BehaviourManager::Update() [__ZN16BehaviourManager6UpdateEv] (Builds.asm.js:1780070:1)
    InitPlayerLoopCallbacks()::UpdateScriptRunBehaviourUpdatestruct::Forward() [__ZZ23InitPlayerLoopCallbacksvEN36UpdateScriptRunBehaviourUpdatestruct7ForwardEv] (Builds.asm.js:1960286:1)
    PlayerLoop() [__Z10PlayerLoopv] (Builds.asm.js:583448:1)
    MainLoop() [__ZL8MainLoopv] (Builds.asm.js:1389439:1)
    dynCall_v (Builds.asm.js:2037100:1)
    dynCall [Runtime.dynCall] (Builds.js:306:11)
    _emscripten_set_main_loop [_emscripten_set_main_loop/browserIterationFunc] (Builds.js:1986:4)
    runIter [Browser.mainLoop.runIter] (Builds.js:2088:5)
    Browser_mainLoop_runner (Builds.js:2024:3)


    Thanks for any help!
     
  2. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Have you solved this problem?
    If not, you could try the latest patch and if that still does not fix it, it would be good if you could submit a bug report with a repro project.
     
  3. LockBros

    LockBros

    Joined:
    Oct 8, 2014
    Posts:
    4

    Thanks for the reply.

    What is the best way to find the latest patch?

    I will make a bug report later tonight.
     
  4. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    patch releases.
     
  5. aidanwardman

    aidanwardman

    Joined:
    Feb 2, 2017
    Posts:
    4
    I had this same issue, was solved by one of these 2 methods:
    - Refresh Page
    - Rebuild webGL files

    hope this helps
     
  6. LockBros

    LockBros

    Joined:
    Oct 8, 2014
    Posts:
    4
    Apologizes, only just got round to having another look at this.

    On the patch notes it days "Please be aware that you cannot build and release a Web Player game with a patch release, as the runtime will not be updated with patch versions." Would this not be an issue if I used a patch? or is Web Player different to WebGL?
     
  7. LockBros

    LockBros

    Joined:
    Oct 8, 2014
    Posts:
    4
    Thanks for the reply, my emails didn't tell me you had added a comment so I did not know you had replied. How would I go about rebuilding the WebGL files? Is it just the process of deleting a couple of the files in the project?
     
  8. Calvin2274

    Calvin2274

    Joined:
    Sep 11, 2014
    Posts:
    17
    I am facing the same issue even updated unity to latest patch.
    It run perfect without any errors or exception in editor but happen in WebGL.

    Unity Version : 5.6.2p4
    Platform : macOS 10.12.6
    Browser :
    • Google Chrome : Version 59.0.3071.115 (Official Build) (64-bit)
    • Firefox : 54.0.1 (64-bit)
    ============ LOG ==============
    Invoking error handler due to
    uncaught exception: abort(129) at jsStackTrace (WebGLBuild.asm.framework.unityweb:1154:12)
    stackTrace (WebGLBuild.asm.framework.unityweb:1168:11)
    abort (WebGLBuild.asm.framework.unityweb:20954:43)
    nullFunc_vii (WebGLBuild.asm.framework.unityweb:15445:2)
    b129 (WebGLBuild.asm.code.unityweb:3739272:1)
    _TMP_Text_set_text_m3123307528 (WebGLBuild.asm.code.unityweb:3285291:1)
    _ClanUpgradeLevelView_UpdateClanLevel_m88051566 (WebGLBuild.asm.code.unityweb:3336703:1)
    _ClanUpgradeLevelController_OnClanLevelUpdated_m2501129314 (WebGLBuild.asm.code.unityweb:3571241:1)
    _Action_1_Invoke_m976644918_gshared (WebGLBuild.asm.code.unityweb:3054226:1)
    _ClanLevelInfo_UpdateCurrentLevel_m2076429740 (WebGLBuild.asm.code.unityweb:3349431:1)
    _ClanInfoPD_UpdateLevel_m3977151507 (WebGLBuild.asm.code.unityweb:3471912:1)
    _ClansService_OnReceivedClanLevel_m494451135 (WebGLBuild.asm.code.unityweb:3577558:1)
    __Z44RuntimeInvoker_Void_t1841601450_Il2CppObjectPK10MethodInfoPvPS2_ (WebGLBuild.asm.code.unityweb:3561996:1)
    dynCall_iiii (WebGLBuild.asm.code.unityweb:3634780:1)
    invoke_iiii (WebGLBuild.asm.framework.unityweb:17722:10)
    __ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException (WebGLBuild.asm.code.unityweb:2938467:1)
    __ZN6il2cpp2vm7Runtime17InvokeConvertArgsEPK10MethodInfoPvPP12Il2CppObjectiPP15Il2CppException (WebGLBuild.asm.code.unityweb:1241312:1)
    __ZN6il2cpp2vm7Runtime11InvokeArrayEPK10MethodInfoPvP11Il2CppArrayPP15Il2CppException (WebGLBuild.asm.code.unityweb:3137441:1)
    __ZN6il2cpp6icalls8mscorlib6System10Reflection10MonoMethod14InternalInvokeEP22Il2CppReflectionMethodP12Il2CppObjectP11Il2CppArrayPS8_ (WebGLBuild.asm.code.unityweb:1940132:1)
    dynCall_iiiii (WebGLBuild.asm.code.unityweb:3596601:1)
    invoke_iiiii (WebGLBuild.asm.framework.unityweb:16458:10)
    _MonoMethod_Invoke_m3376991795 (WebGLBuild.asm.code.unityweb:1268789:1)
    _MethodBase_Invoke_m1075809207 (WebGLBuild.asm.code.unityweb:3506550:1)
    dynCall_iiiii (WebGLBuild.asm.code.unityweb:3596601:1)
    invoke_iiiii (WebGLBuild.asm.framework.unityweb:16458:10)
    _PacketListenerMethod_Invoke_m3172497232 (WebGLBuild.asm.code.unityweb:2567742:1)
    dynCall_viii (WebGLBuild.asm.code.unityweb:3649076:1)
    invoke_viii (WebGLBuild.asm.framework.unityweb:17474:3)
    _APacketReceivedService_ExecutePacket_m258532215 (WebGLBuild.asm.code.unityweb:953794:1)
    _DefaultPacketReceivedService_BeginPacketExecution_m4271800823 (WebGLBuild.asm.code.unityweb:2977917:1)
    _DefaultPacketReceivedService_ExecuteReceivedPackets_m3496229397 (WebGLBuild.asm.code.unityweb:2517564:1)
    _DefaultPacketReceivedService_ExecuteReceivedPacketTask_m3014612019 (WebGLBuild.asm.code.unityweb:3553270:1)
    _APacketReceivedService_OnUpdate_m1455664691 (WebGLBuild.asm.code.unityweb:3554457:1)
    __Z60RuntimeInvoker_Void_t1841601450_UnityUpdateEvent_t2852580092PK10MethodInfoPvPS2_ (WebGLBuild.asm.code.unityweb:3213508:1)
    dynCall_iiii (WebGLBuild.asm.code.unityweb:3634780:1)
    invoke_iiii (WebGLBuild.asm.framework.unityweb:17722:10)
    __ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException (WebGLBuild.asm.code.unityweb:2938467:1)
    __ZN6il2cpp2vm7Runtime17InvokeConvertArgsEPK10MethodInfoPvPP12Il2CppObjectiPP15Il2CppException (WebGLBuild.asm.code.unityweb:1241312:1)
    __ZN6il2cpp2vm7Runtime11InvokeArrayEPK10MethodInfoPvP11Il2CppArrayPP15Il2CppException (WebGLBuild.asm.code.unityweb:3137441:1)
    __ZN6il2cpp6icalls8mscorlib6System10Reflection10MonoMethod14InternalInvokeEP22Il2CppReflectionMethodP12Il2CppObjectP11Il2CppArrayPS8_ (WebGLBuild.asm.code.unityweb:1940132:1)
    dynCall_iiiii (WebGLBuild.asm.code.unityweb:3596601:1)
    invoke_iiiii (WebGLBuild.asm.framework.unityweb:16458:10)
    _MonoMethod_Invoke_m3376991795 (WebGLBuild.asm.code.unityweb:1268789:1)
    _MethodBase_Invoke_m1075809207 (WebGLBuild.asm.code.unityweb:3506550:1)
    dynCall_iiiii (WebGLBuild.asm.code.unityweb:3596601:1)
    invoke_iiiii (WebGLBuild.asm.framework.unityweb:16458:10)
    _EventDispatcher_BroadcastEvent_m1789789036 (WebGLBuild.asm.code.unityweb:928501:1)
    _UnityEventDispatcherComponent_Update_m1397138478 (WebGLBuild.asm.code.unityweb:3133234:1)
    __Z31RuntimeInvoker_Void_t1841601450PK10MethodInfoPvPS2_ (WebGLBuild.asm.code.unityweb:3602992:1)
    dynCall_iiii (WebGLBuild.asm.code.unityweb:3634780:1)
    invoke_iiii (WebGLBuild.asm.framework.unityweb:17722:10)
    __ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException (WebGLBuild.asm.code.unityweb:2938467:1)
    _il2cpp_runtime_invoke (WebGLBuild.asm.code.unityweb:3410813:1)
    __Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb (WebGLBuild.asm.code.unityweb:3141214:1)
    __ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb (WebGLBuild.asm.code.unityweb:2014439:1)
    __ZN13MonoBehaviour16CallUpdateMethodEi (WebGLBuild.asm.code.unityweb:1757404:1)
    __ZN13MonoBehaviour6UpdateEv (WebGLBuild.asm.code.unityweb:3714297:1)
    __ZN20BaseBehaviourManager12CommonUpdateI16BehaviourManagerEEvv (WebGLBuild.asm.code.unityweb:1641469:1)
    __ZN16BehaviourManager6UpdateEv (WebGLBuild.asm.code.unityweb:3114967:1)
    __ZZ23InitPlayerLoopCallbacksvEN36UpdateScriptRunBehaviourUpdatestruct7ForwardEv (WebGLBuild.asm.code.unityweb:3555680:1)
    __Z10PlayerLoopv (WebGLBuild.asm.code.unityweb:915350:1)
    __ZL8MainLoopv (WebGLBuild.asm.code.unityweb:2292724:1)
    dynCall_v (WebGLBuild.asm.code.unityweb:3739546:1)
    browserIterationFunc (WebGLBuild.asm.framework.unityweb:2176:4)
    runIter (WebGLBuild.asm.framework.unityweb:2278:5)
    Browser_mainLoop_runner (WebGLBuild.asm.framework.unityweb:2214:3)
    UnityLoader.js:523:7​
     
  9. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Did this ever run on WebGL with an older version of Unity?
     
  10. unity_ypJxcbzm-zflKQ

    unity_ypJxcbzm-zflKQ

    Joined:
    Sep 18, 2017
    Posts:
    1
    @Marco-Trivellato I have same error in newest version (2017.1.1p2). Is any solution?

    System: MacOS (10.13 Beta)
    Browser: Chrome (Version 62.0.3202.18)
     
    Last edited: Sep 18, 2017
  11. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    A few months have past so I assume the issue was resolved by the user.
    What's your problem, could you post a callstack?
     
  12. Aiursrage2k

    Aiursrage2k

    Joined:
    Nov 1, 2009
    Posts:
    4,835
    I am having the same issue. If you try to load a texture from the local host its causes a problem works fine on firefox though, not google chrome which is S***