WebGL Cardboard VR (GVR) errors
I am trying to build a scene using WebGL with Google GVR viewer script attached to my camera.
If I build without the GVR enabled my scene loads in browser, however with the GVR viewer enabled I am getting the following output:
An error occured running the Unity content on this page. See your browser JavaScript console for more info. The error was: uncaught exception: abort(98) at jsStackTrace (WebVR.asm.framework.unityweb:1076:12) stackTrace (WebVR.asm.framework.unityweb:1090:11) abort (WebVR.asm.framework.unityweb:426923:43) nullFunc_viii (WebVR.asm.framework.unityweb:28173:2) b98 (WebVR.asm.framework.unityweb:418983:2) ftCall_viii (blob:6039:10) mftCall_viii (blob:660052:2) GvrViewer_OnApplicationFocus_m1457710762 (blob:530206:2) mftCall_viii (blob:660049:3) Z48RuntimeInvoker_Void_t1841601450_SByte_t454417549PK10MethodInfoPvPS2 (blob:680432:2) __Z48RuntimeInvoker_Void_t1841601450_SByte_t454417549PK10MethodInfoPvPS2_ [asm.__Z48RuntimeInvoker_Void_t1841601450_SByte_t454417549PK10MethodInfoPvPS2_] (blob:765715:10) ftCall_iiii (blob:6379:10) invoke_iiii (blob:6366:11) __ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException (blob:492376:8) _il2cpp_runtime_invoke (blob:641207:9) _il2cpp_runtime_invoke [asm._il2cpp_runtime_invoke] (blob:798577:10) il2cpp_runtime_invoke (WebVR.asm.framework.unityweb:11411:9) Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb (WebVR.asm.code.unityweb:2514326:1) ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb (WebVR.asm.code.unityweb:1788407:1) ZN13MonoBehaviour19HandleNotificationsEPviR11MessageData (WebVR.asm.code.unityweb:912533:1) mftCall_viii (WebVR.asm.code.unityweb:2645761:1) ZN16MessageForwarder13HandleMessageEPviR11MessageData (WebVR.asm.code.unityweb:2565726:1) ZN10GameObject14SendMessageAnyERK17MessageIdentifierR11MessageData (WebVR.asm.code.unityweb:2317631:1) Z21SendMessageToEveryoneRK17MessageIdentifier11MessageData (WebVR.asm.code.unityweb:1716043:1) Z14SetPlayerFocusb (WebVR.asm.code.unityweb:2519543:1) Z13FocusCallbackiPK20EmscriptenFocusEventPv (WebVR.asm.code.unityweb:2612805:1) a5b471bfc7db186e90fe6f422e0d97b9 [UnityLoader.a5b471bfc7db186e90fe6f422e0d97b9/asm._Z13FocusCallbackiPK20EmscriptenFocusEventPv] (WebVR.asm.framework.unityweb:91805:9) ftCall_iiii (WebVR.asm.framework.unityweb:30498:9) a5b471bfc7db186e90fe6f422e0d97b9 [UnityLoader.a5b471bfc7db186e90fe6f422e0d97b9/Runtime.dynCall] (WebVR.asm.framework.unityweb:444:11) a5b471bfc7db186e90fe6f422e0d97b9 [UnityLoader.a5b471bfc7db186e90fe6f422e0d97b9/JSEvents.registerFocusEventCallback/handlerFunc] (WebVR.asm.framework.unityweb:7373:23) jsEventHandler (WebVR.asm.framework.unityweb:7156:4) _pthread_getspecific (WebVR.asm.framework.unityweb:9249:1) pthread_getspecific (blob:910:10) ZN6il2cpp2os20ThreadLocalValueImpl8GetValueEPPv (blob:705837:20) ZN6il2cpp2os16ThreadLocalValue8GetValueEPPv (blob:703127:9) ZN6il2cpp2vm11MethodStack17GetStackFramesRawEv (blob:615926:8) ZN6il2cpp2vm10StackTrace14GetStackFramesEv (blob:721652:9) ZN6il2cpp6icalls8mscorlib6System11Diagnostics10StackFrame14get_frame_infoEibPP22Il2CppReflectionMethodPiS8_PP12Il2CppStringS8_S8 (blob:381156:7) StackFramector_m743151936 (blob:615519:2) StackTrace_init_frames_m3304642995 (blob:321789:3) StackTracector_m1811467992 (blob:705627:2) StackTraceUtility_ExtractStringFromExceptionInternal_m2568950546 (blob:172145:2) mftCall_viiiii (blob:636990:3) Z86RuntimeInvoker_Void_t1841601450_Il2CppObject_StringU26_t638738783_StringU26_t638738783PK10MethodInfoPvPS2 (blob:647242:2) Z86RuntimeInvoker_Void_t1841601450_Il2CppObject_StringU26_t638738783_StringU26_t638738783PK10MethodInfoPvPS2 [asm.Z86RuntimeInvoker_Void_t1841601450_Il2CppObject_StringU26_t638738783_StringU26_t638738783PK10MethodInfoPvPS2] (blob:768901:10) ftCall_iiii (blob:6379:10) invoke_iiii (blob:6366:11) _ZN6il2cpp2vm7Runtime6InvokeEPK10MethodInfoPvPS5_PP15Il2CppException (blob:492376:8) _il2cpp_runtime_invoke (blob:641207:9) _il2cpp_runtime_invoke [asm._il2cpp_runtime_invoke] (blob:798577:10) il2cpp_runtime_invoke (WebVR.asm.framework.unityweb:11411:9) Z23scripting_method_invoke18ScriptingMethodPtr18ScriptingObjectPtrR18ScriptingArgumentsP21ScriptingExceptionPtrb (WebVR.asm.code.unityweb:2514326:1) ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb (WebVR.asm.code.unityweb:1788407:1) Z30scripting_stack_trace_info_for21ScriptingExceptionPtrR14StackTraceInfo (WebVR.asm.code.unityweb:1124388:1) ZN9Scripting12LogExceptionE21ScriptingExceptionPtriPKc (WebVR.asm.code.unityweb:1524015:1) ZN19ScriptingInvocation6InvokeEP21ScriptingExceptionPtrb (WebVR.asm.code.unityweb:1788423:1) ZN19ScriptingInvocation13InvokeCheckedEP21ScriptingExceptionPtr (WebVR.asm.code.unityweb:2388406:1) ZN13MonoBehaviour9CallAwakeEv (WebVR.asm.code.unityweb:1618022:1) ZN13MonoBehaviour12AddToManagerEv (WebVR.asm.code.unityweb:1580218:1) mftCall_vi (WebVR.asm.code.unityweb:2674836:1) ZN9Behaviour13AwakeFromLoadE17AwakeFromLoadMode (WebVR.asm.code.unityweb:2497550:1) ZN13MonoBehaviour13AwakeFromLoadE17AwakeFromLoadMode (WebVR.asm.code.unityweb:1120327:1) mftCall_vii (WebVR.asm.code.unityweb:2660519:1) ZN18AwakeFromLoadQueue28InvokePersistentManagerAwakeEPNS_4ItemEj17AwakeFromLoadMode (WebVR.asm.code.unityweb:1734990:1) ZN18AwakeFromLoadQueue30PersistentManagerAwakeFromLoadEv (WebVR.asm.code.unityweb:2316207:1) ZN18LoadSceneOperation21CompleteAwakeSequenceEv (WebVR.asm.code.unityweb:2072110:1) ZN18LoadSceneOperation25PlayerLoadSceneFromThreadEv (WebVR.asm.code.unityweb:849018:1) ZN18LoadSceneOperation19IntegrateMainThreadEv (WebVR.asm.code.unityweb:1549867:1) mftCall_vi (WebVR.asm.code.unityweb:2674836:1) ZN14PreloadManager26UpdatePreloadingSingleStepENS_21UpdatePreloadingFlagsEi (WebVR.asm.code.unityweb:1255027:1) ZN14PreloadManager35WaitForAllAsyncOperationsToCompleteEv (WebVR.asm.code.unityweb:2387368:1) ZN19RuntimeSceneManager9LoadSceneERKN4core12basic_stringIcNS0_20StringStorageDefaultIcEEEES6_S6_RK9UnityGUIDiNS_11LoadingModeE (WebVR.asm.code.unityweb:2390977:1) Z21PlayerStartFirstSceneb (WebVR.asm.code.unityweb:1022123:1) _Z20PlayerLoadFirstSceneb (WebVR.asm.code.unityweb:2119441:1) _main (WebVR.asm.code.unityweb:877593:1) a5b471bfc7db186e90fe6f422e0d97b9 [UnityLoader.a5b471bfc7db186e90fe6f422e0d97b9/asm._main] (WebVR.asm.framework.unityweb:189065:9) callMain (WebVR.asm.framework.unityweb:426835:13) doRun (WebVR.asm.framework.unityweb:426872:40) run (WebVR.asm.framework.unityweb:426884:3) runCaller (WebVR.asm.framework.unityweb:426812:28) removeRunDependency (WebVR.asm.framework.unityweb:1427:4) UnityLoader<.processDataJob@http://localhost:8080/webvr/Build/UnityLoader.js:1:3858 UnityLoader<.Job.schedule/a.callback@http://localhost:8080/webvr/Build/UnityLoader.js:1:16201
Has anyone encountered this issue and is there a work around or solution?
Any help is really appreciated!!
Answer by yuliwei · Aug 19, 2017 at 05:14 PM
I have the same issue as you.
If We ignore the GoogleGvr it gets deployed using Webgl ....but When I am Using GoogleGvr Its Getting the Same Error