NodeCanvas Forums › Support › Unity 5 and WebGL
Hey,
I’m sure you’re already well aware of the new WebGL support in Unity5, but just out of interest do you have some idea of when it might be supported? Running my current project in U5 beta WebGL produces this error:
An error occured running the Unity content on this page. See your browser’s JavaScript console for more info. The error was:
uncaught exception: abort() at jsStackTrace@http://localhost:15332/Data/WebGL.js:989:13
stackTrace@http://localhost:15332/Data/WebGL.js:1006:22
abort@http://localhost:15332/Data/WebGL.js:3739286:25
nullFunc_ii@http://localhost:15332/Data/WebGL.js:14114:465
b120@http://localhost:15332/Data/WebGL.js:3733123:34
__ZN21InterfaceFuncInvoker0IP22mscorlib_System_ObjectE6InvokeEP10MethodInfoPv [void undefined<undefined?n?>?o? InterfaceFuncInvoker0<mscorlib_System_Object?*, undefined?6?>?k()]@http://localhost:15332/Data/WebGL.js:2409310:8
__Z73System_Core_System_Linq_Enumerable_m_First_mscorlib_System_Object_gsharedP22mscorlib_System_ObjectS0_P93System_Core_System_Core_System_Func_2_mscorlib_System_ObjectU002CU0020mscorlib_System_BooleaniPPv [System_Core_System_Linq_Enumerable_m_First_mscorlib_System_Object_gshared?0(mscorlib_System_Object?S?*)]@http://localhost:15332/Data/WebGL.js:3484706:8
__ZL65System_Core_System_Linq_Enumerable_m_First_mscorlib_System_ObjectP22mscorlib_System_ObjectS0_P93System_Core_System_Core_System_Func_2_mscorlib_System_ObjectU002CU0020mscorlib_System_Booleani [System_Core_System_Linq_Enumerable_m_First_mscorlib_System_Object?0(mscorlib_System_Object?S?*)]@http://localhost:15332/Data/WebGL.js:3484773:8
__Z82System_Core_System_Linq_Enumerable_m_FirstOrDefault_mscorlib_System_Object_gsharedP22mscorlib_System_ObjectS0_PPv [System_Core_System_Linq_Enumerable_m_FirstOrDefault_mscorlib_System_Object_gshared?0(mscorlib_System_Object?S?*)]@http://localhost:15332/Data/WebGL.js:3484681:9
__ZL74System_Core_System_Linq_Enumerable_m_FirstOrDefault_mscorlib_System_ObjectP22mscorlib_System_ObjectS0_ [System_Core_System_Linq_Enumerable_m_FirstOrDefault_mscorlib_System_Object?0(mscorlib_System_Object?S?*)]@http://localhost:15332/Data/WebGL.js:2409469:8
__Z80AssemblyU002DCSharpU002Dfirstpass_NodeCanvas_Variables_BBVariable_m_InitBBFieldsP22mscorlib_System_ObjectS0_ [AssemblyU002DCSharpU002Dfirstpass_NodeCanvas_Variables_BBVariable_m_InitBBFields?0(mscorlib_System_Object?S?*)]@http://localhost:15332/Data/WebGL.js:2409188:11
__Z64AssemblyU002DCSharpU002Dfirstpass_NodeCanvas_Task_m_InitBBFieldsP49AssemblyU002DCSharpU002Dfirstpass_NodeCanvas_Task [AssemblyU002DCSharpU002Dfirstpass_NodeCanvas_Task_m_InitBBFields(AssemblyU002DCSharpU002Dfirstpass_NodeCanvas_Task?*)]@http://localhost:15332/Data/WebGL.js:2431125:2
__Z57AssemblyU002DCSharpU002Dfirstpass_NodeCanvas_Task_m_AwakeP49AssemblyU002DCSharpU002Dfirstpass_NodeCanvas_Task [AssemblyU002DCSharpU002Dfirstpass_NodeCanvas_Task_m_Awake(AssemblyU002DCSharpU002Dfirstpass_NodeCanvas_Task?*)]@http://localhost:15332/Data/WebGL.js:2431108:2
__Z35RuntimeInvoker_mscorlib_System_VoidP10MethodInfoPvPS1_ [RuntimeInvoker_mscorlib_System_Void?1(void**, undefined?S?*)]@http://localhost:15332/Data/WebGL.js:3322282:2
__ZN6il2cpp2vm7Runtime6InvokeEP10MethodInfoPvPS4_PP12Il2CppObject [il2cpp::vm::Runtime::Invoke?4(void**, undefined?S?*)]@http://localhost:15332/Data/WebGL.js:82771:8
_il2cpp_runtime_invoke@http://localhost:15332/Data/WebGL.js:29187:8
__Z20il2cpp_invoke_method21ScriptingMethodIl2CppP15ScriptingObjectP18ScriptingArgumentsPP18ScriptingExceptionb [il2cpp_invoke_method?2()]@http://localhost:15332/Data/WebGL.js:1190615:9
__ZN19ScriptingInvocation6InvokeEPP18ScriptingExceptionb [ScriptingInvocation::Invoke(bool**)]@http://localhost:15332/Data/WebGL.js:1453504:9
__ZN19ScriptingInvocation6InvokeEPP18ScriptingException [ScriptingInvocation::Invoke(ScriptingException?**)]@http://localhost:15332/Data/WebGL.js:1453453:8
__ZN25ScriptingInvocationNoArgs13InvokeCheckedEv [ScriptingInvocationNoArgs::InvokeChecked()]@http://localhost:15332/Data/WebGL.js:1453768:8
__ZN13MonoBehaviour13AwakeFromLoadE17AwakeFromLoadMode [MonoBehaviour::AwakeFromLoad?1()]@http://localhost:15332/Data/WebGL.js:1446410:5
__ZN18AwakeFromLoadQueue28InvokePersistentManagerAwakeEPNS_4ItemEj17AwakeFromLoadMode [AwakeFromLoadQueue::InvokePersistentManagerAwake?1(AwakeFromLoadQueue::Item*, unsigned int)]@http://localhost:15332/Data/WebGL.js:1483720:5
__ZN18AwakeFromLoadQueue30PersistentManagerAwakeFromLoadEv [AwakeFromLoadQueue::PersistentManagerAwakeFromLoad()]@http://localhost:15332/Data/WebGL.js:1483547:3
__Z23CompletePreloadMainDataR18AwakeFromLoadQueue [CompletePreloadMainData(AwakeFromLoadQueue?&)]@http://localhost:15332/Data/WebGL.js:1376188:2
__ZN18LoadLevelOperation19IntegrateMainThreadEv [LoadLevelOperation::IntegrateMainThread()]@http://localhost:15332/Data/WebGL.js:1358164:3
__ZN14PreloadManager26UpdatePreloadingSingleStepEb [PreloadManager::UpdatePreloadingSingleStep(bool)]@http://localhost:15332/Data/WebGL.js:1356513:2
__ZN14PreloadManager35WaitForAllAsyncOperationsToCompleteEv [PreloadManager::WaitForAllAsyncOperationsToComplete()]@http://localhost:15332/Data/WebGL.js:1356536:3
__Z20PlayerLoadFirstLevelv [PlayerLoadFirstLevel()]@http://localhost:15332/Data/WebGL.js:1354955:3
_main@http://localhost:15332/Data/WebGL.js:2376844:2
asm._main@http://localhost:15332/Data/WebGL.js:3736663:10
callMain@http://localhost:15332/Data/WebGL.js:3739162:15
doRun@http://localhost:15332/Data/WebGL.js:3739219:7
run/<@http://localhost:15332/Data/WebGL.js:3739231:7
(Sorry I realise that call stack isn’t ideal, but the error is coming from somewhere within NodeCanvas)
Hello,
Thanks for the report. To be honest I didn’t have time to test it on WebGL, as I think it’s a bit soon to tell right now.
I will though take a look at it in the comming days.
Cheers!
Join us on Discord: https://discord.gg/97q2Rjh
Thanks that would be awesome