- Home /
Google VR had a fatal issue while loading
I got this error when I try to run a simple unity app with XR/VR settings enabled and cardboard on android (Galaxy S7).
Google VR Error [Cardboard]: Google VR had a fatal issue while loading. VR will not be available
logcat details:
01-19 09:38:21.213 1574 6611 I ActivityManager: Start proc 11240:com.google.vr.vrcore/u0a221 for content provider com.google.vr.vrcore/.settings.VrSettingsProvider 01-19 09:38:21.247 1574 3947 I ActivityManager: DSS on for com.google.vr.vrcore and scale is 1.0 01-19 09:38:21.348 1574 4057 W ActivityManager: Permission Denial: opening provider com.google.android.gsf.gservices.GservicesProvider from ProcessRecord{93dee0c 11240:com.google.vr.vrcore/u0a221} (pid=11240, uid=10221) requires com.google.android.providers.gsf.permission.READ_GSERVICES or com.google.android.providers.gsf.permission.WRITE_GSERVICES 01-19 09:38:21.350 1574 3918 W ActivityManager: Permission Denial: opening provider com.google.android.gsf.gservices.GservicesProvider from ProcessRecord{93dee0c 11240:com.google.vr.vrcore/u0a221} (pid=11240, uid=10221) requires com.google.android.providers.gsf.permission.READ_GSERVICES or com.google.android.providers.gsf.permission.WRITE_GSERVICES 01-19 09:38:21.365 1574 6613 W ActivityManager: Permission Denial: opening provider com.google.android.gsf.gservices.GservicesProvider from ProcessRecord{93dee0c 11240:com.google.vr.vrcore/u0a221} (pid=11240, uid=10221) requires com.google.android.providers.gsf.permission.READ_GSERVICES or com.google.android.providers.gsf.permission.WRITE_GSERVICES 01-19 09:38:21.366 11178 11178 E Unity : Error trying to call delegated method load. null 01-19 09:38:21.366 11178 11178 E Unity : Google VR Error [Cardboard]: Exception caught while loading GoogleVR. Attempt to invoke virtual method 'long java.lang.Long.longValue()' on a null object reference 01-19 09:38:21.366 11178 11201 E Unity : Google VR Error [Cardboard]: Google VR had a fatal issue while loading. VR will not be available. 01-19 09:38:21.377 11178 11178 E Unity : Error trying to call delegated method unload. null 01-19 09:38:21.389 11178 11178 E Unity : Error trying to call delegated method load. null 01-19 09:38:21.389 11178 11178 E Unity : Google VR Error [Cardboard]: Exception caught while loading GoogleVR. Attempt to invoke virtual method 'long java.lang.Long.longValue()' on a null object reference 01-19 09:38:21.390 11178 11201 E Unity : Google VR Error [Cardboard]: Google VR had a fatal issue while loading. VR will not be available. 01-19 09:38:21.391 11178 11178 E Unity : Error trying to call delegated method unload. null
Sorry I forget to put the environment detail: : Unity 2013.3.0p3, Galaxy S7 Android 7.0 Google VR Service 1.12.177372015
Answer by fredsa43 · Apr 01, 2018 at 12:57 AM
I believe the fixed versions of Unity are documented here: https://forum.unity.com/threads/for-people-targeting-cardboard-on-android-please-update-your-google-vr-sdk-to-1-12-or-later.520986/
In the mean time, you should be able to include the latest Google VR SDK for Unity (currently 1.130.1) in your project to get the Google VR SDK integration working again.
The Google VR SDK for Unity includes its own updated gvr.aar
that should fix this issue (https://docs.unity3d.com/Manual/VRDevices-GoogleVR.html documents how this overrides the Unity builtin version of this library).
Answer by jules_fpvr · Jan 22, 2018 at 06:49 PM
Just had the same issue, did you find a solution?
It turns out that my problem though very similar may have slightly different cause. The logcat output I was getting was:
GvrLayoutFactory: Dynamic library loading disabled, using built-in GvrLayout implementation.
No implementation found for boolean com.google.vr.ndk.base.GvrApi.nativeUsingShimLibrary() (tried Java_com_google_vr_ndk_base_GvrApi_nativeUsingShimLibrary and Java_com_google_vr_ndk_base_GvrApi_nativeUsingShimLibrary__)
Error trying to call delegated method load. null
Google VR Error [Cardboard]: Exception caught while loading GoogleVR. Attempt to invoke virtual method 'long java.lang.Long.longValue()' on a null object reference
Google VR Error [Cardboard]: Google VR had a fatal issue while loading. VR will not be available.
Error trying to call delegated method unload. null
WindowManager: Relayout Window{3518c0fd0 u0 com.focalpointvr.avprotest/com.unity3d.player.UnityPlayerActivity}: viewVisibility=0 req=1440x2560 WM.LayoutParams{(0,0)(fillxfill) sim=#20 ty=1 fl=#1810580 pfl=0x20000 fmt=-3 vsysui=0x1706 needsMenuKey=2 naviIconColor=0}
GvrLayoutFactory: Dynamic library loading disabled, using built-in GvrLayout implementation.
No implementation found for boolean com.google.vr.ndk.base.GvrApi.nativeUsingShimLibrary() (tried Java_com_google_vr_ndk_base_GvrApi_nativeUsingShimLibrary and Java_com_google_vr_ndk_base_GvrApi_nativeUsingShimLibrary__)
Error trying to call delegated method load. null
Google VR Error [Cardboard]: Exception caught while loading GoogleVR. Attempt to invoke virtual method 'long java.lang.Long.longValue()' on a null object reference
Google VR Error [Cardboard]: Google VR had a fatal issue while loading. VR will not be available.
Error trying to call delegated method unload. null
As it was working fine in the last few days I tried a whole bunch of things to step back in time (older Android SDK, Older code, Older Unity etc), and eventually discovered that it worked fine on Unity 2017.3.0p1 but not in p2 or p3. So something changed in p2 that produced my error.
I reported this as a bug: https://fogbugz.unity3d.com/default.asp?991127_jhl7ggsi3gon4ip4 and it has been reproduced by the QA team. Doesn't appear it's fixed in 2017.3.0p4 though I haven't retested yet.
Good luck with yours.
Jules
Nothing yet, I had this issue with 2017.3.0p2, and 2017.3.0p3 too, I try to make a simple project from scratch with just a cube and a camera on scene and the same issue, I think is something related between Unity and Google VR Services, but was working fine on Unity 2017.2
I've had this same app running with 2017.3.0p2 yesterday. I'vejust deleted the Library directory and doing a complete rebuild and that didn't fix it, so not a state problem.
Next things I'm going to try:1. Binary chop through my source code checkins from when it last worked. 2. Try 2017.3.pp2. 3. Check version of Google VR Services / Cardboard installed on phone and when they updated. 4. Hard rebooting S7 and clearing system cache
Hi, no solution yet, already delete and recreate library folder, factory reset on my galaxy S7, still the same error. Did you find something? Regards
$$anonymous$$ariano
Answer by dustinkerstein · Feb 24, 2018 at 05:04 AM
Same issue on 2017.3.1p1 and 2017.2.1p4 and 2017.1.3p1 - Cardboard devices are entirely broken, but Daydream devices are fine...
I can Confirm, 2017.3.1p1 still the same issue. I had a Google VR Service update few days ago on my android phone, and nothing happen, I sill think the fix should come from Unity. I think too is related about permissions, when switching to XR mode and Cardboard at first time the app should to ask for carboard permissions (or GVR service download if were not installed yet), but now is not checking/asking for nothing.
Your answer
Follow this Question
Related Questions
How to open a url in VR Browser from a Gear VR app? 1 Answer
Zenfone 2 and Unity Native VR 2 Answers
Android PicoVR EGL_BAD_SURFACE Error? 0 Answers
Connect OVRGearVrController to Scene 0 Answers
Unable to Build my Gear VR app 0 Answers