Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

[2018.1.0b7] WebGL builds fail to start

Discussion in '2018.1 Beta' started by ufmsp, Feb 21, 2018.

  1. ufmsp

    ufmsp

    Joined:
    Oct 3, 2017
    Posts:
    11
    We've been testing WebGL builds in Unity 2018.1.0b7, as well as some of the earlier beta version of 2018.1.

    Unfortunately we've been unable to get WebGL builds to start (we're upgrading from 2017.1.1 in which WebGL works fine). We see the "Made with Unity" logo, but after that fades away we always get the following error in the browser (tested both with Chrome, Firefox and Edge on Windows):


    An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:
    uncaught exception: abort("To use dlopen, you need to use Emscripten's linking support, see https://github.com/kripken/emscripten/wiki/Linking") at jsStackTrace (v46.wasm.framework.unityweb:1578:13)
    stackTrace (v46.wasm.framework.unityweb:1595:12)
    abort (v46.wasm.framework.unityweb:21689:44)
    _dlopen (v46.wasm.framework.unityweb:8094:7)
    wasm-function[80887] (v46.wasm.framework.unityweb:27185008:1)
    wasm-function[80886] (v46.wasm.framework.unityweb:27184845:1)
    wasm-function[81502] (v46.wasm.framework.unityweb:27278396:1)
    wasm-function[80465] (v46.wasm.framework.unityweb:27115898:1)
    wasm-function[51610] (v46.wasm.framework.unityweb:19866735:1)
    wasm-function[58948] (v46.wasm.framework.unityweb:21442089:1)
    wasm-function[84490] (v46.wasm.framework.unityweb:28106400:1)
    UnityLoader["7298f290aca9efaed189d79a6c1cfef8"]/dynCall_iiiiii [Module.dynCall_iiiiii] (v46.wasm.framework.unityweb:21287:69)
    invoke_iiiiii (v46.wasm.framework.unityweb:17677:12)
    wasm-function[58947] (v46.wasm.framework.unityweb:21441644:1)
    wasm-function[58946] (v46.wasm.framework.unityweb:21441054:1)
    wasm-function[84411] (v46.wasm.framework.unityweb:28103612:1)
    UnityLoader["7298f290aca9efaed189d79a6c1cfef8"]/dynCall_iiiii [Module.dynCall_iiiii] (v46.wasm.framework.unityweb:21208:67)
    invoke_iiiii (v46.wasm.framework.unityweb:16966:12)
    wasm-function[58942] (v46.wasm.framework.unityweb:21439455:1)
    wasm-function[58941] (v46.wasm.framework.unityweb:21438491:1)
    wasm-function[58978] (v46.wasm.framework.unityweb:21457387:1)
    wasm-function[68278] (v46.wasm.framework.unityweb:23551416:1)
    wasm-function[38084] (v46.wasm.framework.unityweb:16587499:1)
    wasm-function[30924] (v46.wasm.framework.unityweb:14935928:1)
    wasm-function[84411] (v46.wasm.framework.unityweb:28103612:1)
    UnityLoader["7298f290aca9efaed189d79a6c1cfef8"]/dynCall_iiiii [Module.dynCall_iiiii] (v46.wasm.framework.unityweb:21208:67)
    invoke_iiiii (v46.wasm.framework.unityweb:16966:12)
    wasm-function[79750] (v46.wasm.framework.unityweb:27005422:1)
    wasm-function[80096] (v46.wasm.framework.unityweb:27055365:1)
    wasm-function[5614] (v46.wasm.framework.unityweb:2596059:1)
    wasm-function[5612] (v46.wasm.framework.unityweb:2595393:1)
    wasm-function[7344] (v46.wasm.framework.unityweb:3068248:1)
    wasm-function[7338] (v46.wasm.framework.unityweb:3067252:1)
    wasm-function[11120] (v46.wasm.framework.unityweb:4800312:1)
    wasm-function[8335] (v46.wasm.framework.unityweb:3559966:1)
    wasm-function[12022] (v46.wasm.framework.unityweb:5138715:1)
    wasm-function[11242] (v46.wasm.framework.unityweb:4846215:1)
    wasm-function[11242] (v46.wasm.framework.unityweb:4846236:1)
    wasm-function[11238] (v46.wasm.framework.unityweb:4845607:1)
    wasm-function[11226] (v46.wasm.framework.unityweb:4838995:1)
    wasm-function[84580] (v46.wasm.framework.unityweb:28109348:1)
    UnityLoader["7298f290aca9efaed189d79a6c1cfef8"]/dynCall_v [Module.dynCall_v] (v46.wasm.framework.unityweb:21377:59)
    browserIterationFunc (v46.wasm.framework.unityweb:2707:11)
    runIter (v46.wasm.framework.unityweb:2824:13)
    Browser_mainLoop_runner (v46.wasm.framework.unityweb:2762:9)



    I've been testing both production and development builds, have tried to disable compression, have tested with all different Linker Targets, but I always get the error above. We're using the "Experimental 4.x" scripting runtime backend, but this works fine in 2017.1.1.

    Is there a way to get WebGL builds working, or do we have to wait for an updated version of Unity 2018?

    Thanks a lot in advance for all help.


    Kind regards,
    Uffe Flarup
     
  2. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    Hi, could you try with a Development build, with WebAssembly disabled and post the callstack here?
     
  3. ufmsp

    ufmsp

    Joined:
    Oct 3, 2017
    Posts:
    11
    An error occurred running the Unity content on this page. See your browser JavaScript console for more info. The error was:
    uncaught exception: abort("To use dlopen, you need to use Emscripten's linking support, see https://github.com/kripken/emscripten/wiki/Linking") at jsStackTrace (v47.asm.framework.unityweb:1156:12)
    stackTrace (v47.asm.framework.unityweb:1170:11)
    abort (v47.asm.framework.unityweb:21608:43)
    _dlopen (v47.asm.framework.unityweb:8348:2)
    __ZN6il2cpp2os13LibraryLoader18LoadDynamicLibraryERKNS_5utils10StringViewIcEEi (v47.asm.code.unityweb:2824508:1)
    __ZN6il2cpp2os13LibraryLoader18LoadDynamicLibraryERKNS_5utils10StringViewIcEE (v47.asm.code.unityweb:4520857:1)
    __ZN6il2cpp2vm13LibraryLoader11LoadLibraryENS_5utils10StringViewIcEE (v47.asm.code.unityweb:4002624:1)
    __ZN6il2cpp2vm14PlatformInvoke7ResolveERK16PInvokeArguments (v47.asm.code.unityweb:1136657:1)
    __Z30il2cpp_codegen_resolve_pinvokeIPFiPcPhiELj5ELj9EET_RAT0__KcRAT1__S5_20Il2CppCallConvention13Il2CppCharSetib (v47.asm.code.unityweb:3862700:1)
    _TimeZoneInfo_readlink_m1025948713 (v47.asm.code.unityweb:3742091:1)
    dynCall_iiiiii (v47.asm.code.unityweb:4495635:1)
    invoke_iiiiii (v47.asm.framework.unityweb:17014:10)
    _TimeZoneInfo_readlink_m78344037 (v47.asm.code.unityweb:2658652:1)
    _TimeZoneInfo_TryGetNameFromPath_m239609890 (v47.asm.code.unityweb:2429689:1)
    dynCall_iiiii (v47.asm.code.unityweb:4538322:1)
    invoke_iiiii (v47.asm.framework.unityweb:16574:10)
    _TimeZoneInfo_CreateLocal_m701291163 (v47.asm.code.unityweb:1442564:1)
    _TimeZoneInfo_get_Local_m2495540097 (v47.asm.code.unityweb:3676958:1)
    _TimeZoneInfo_GetDateTimeNowUtcOffsetFromUtc_m3893949862 (v47.asm.code.unityweb:3825574:1)
    _DateTime_get_Now_m1277138875 (v47.asm.code.unityweb:2853478:1)
    _Reporter_Start_m3678372556 (v47.asm.code.unityweb:3675163:1)
    __Z31RuntimeInvoker_Void_t1185182177PFvvEPK10MethodInfoPvPS4_ (v47.asm.code.unityweb:4534538:1)
    dynCall_iiiii (v47.asm.code.unityweb:4538322:1)
    invoke_iiiii (v47.asm.framework.unityweb:16574:10)
    __ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException (v47.asm.code.unityweb:3754192:1)
    _il2cpp_runtime_invoke (v47.asm.code.unityweb:4296361:1)
    __Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb (v47.asm.code.unityweb:3993949:1)
    __ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb (v47.asm.code.unityweb:2844249:1)
    __ZN13MonoBehaviour30InvokeMethodOrCoroutineCheckedE18ScriptingMethodPtr18ScriptingObjectPtrP21ScriptingExceptionPtr (v47.asm.code.unityweb:822202:1)
    __ZN13MonoBehaviour30InvokeMethodOrCoroutineCheckedE18ScriptingMethodPtr18ScriptingObjectPtr (v47.asm.code.unityweb:2794797:1)
    __ZN13MonoBehaviour16DelayedStartCallEP6ObjectPv (v47.asm.code.unityweb:3418456:1)
    __ZN18DelayedCallManager6UpdateEi (v47.asm.code.unityweb:1480047:1)
    __ZZ23InitPlayerLoopCallbacksvEN50EarlyUpdateScriptRunDelayedStartupFrameRegistrator7ForwardEv (v47.asm.code.unityweb:3775983:1)
    __Z17ExecutePlayerLoopP22NativePlayerLoopSystem (v47.asm.code.unityweb:2618604:1)
    __Z17ExecutePlayerLoopP22NativePlayerLoopSystem (v47.asm.code.unityweb:2618575:1)
    __Z10PlayerLoopv (v47.asm.code.unityweb:2848813:1)
    __ZL8MainLoopv (v47.asm.code.unityweb:2448043:1)
    dynCall_v (v47.asm.code.unityweb:4695089:1)
    browserIterationFunc (v47.asm.framework.unityweb:2787:4)
    runIter (v47.asm.framework.unityweb:2889:5)
    Browser_mainLoop_runner (v47.asm.framework.unityweb:2825:3)
     
  4. ufmsp

    ufmsp

    Joined:
    Oct 3, 2017
    Posts:
    11
    In case it's any help, here's some additional info from Player Settings that maybe relevant:

    Scripting Runtime Version : Experimental .NET 4.x (it works when using Unity 2017.1)
    Scripting Backend : Default
    Api Compatibility Level : .NET 4.x
    Strip Engine Code : off

    Memory Size : 1024 (when using Unity 2017.1 it sufficient with 512 though)
    Enable Exception : Explicitly Thrown Exceptions Only
    Compression : Disabled
    Name Files As Hashes : off
    Data Caching : off
    Debug Symbols : on
    Linker Target : Asm

    If you need any additional information or I should test with some other settings, please let know.


    Kind regards,
    Uffe Flarup
     
  5. Marco-Trivellato

    Marco-Trivellato

    Unity Technologies

    Joined:
    Jul 9, 2013
    Posts:
    1,654
    I believe the fix for this problem will be included in one the next Beta.
     
  6. gboulard

    gboulard

    Joined:
    Nov 28, 2012
    Posts:
    21
    still got problem with DateTime.Now() in 2018.1.0b9 (supposed to have a "stable" 4.6 .NET support)


     
  7. ufmsp

    ufmsp

    Joined:
    Oct 3, 2017
    Posts:
    11
    We're also still having the problem in 2018.1.0b9.

    Will test again when beta 10 is out.
     
  8. gboulard

    gboulard

    Joined:
    Nov 28, 2012
    Posts:
    21