Skip to content
This repository has been archived by the owner on Nov 8, 2019. It is now read-only.

Error when I run the demo en Android device #1034

Open
sanylop opened this issue May 18, 2019 · 1 comment
Open

Error when I run the demo en Android device #1034

sanylop opened this issue May 18, 2019 · 1 comment

Comments

@sanylop
Copy link

sanylop commented May 18, 2019

SPECIFIC ISSUE ENCOUNTERED

When I run the demo "HelloVR" i can't view in double screen in my device and in Android Studio I have this messages:

2019-05-18 18:42:01.189 6564-6564/? E/Unity: Exception while trying to get method initialize. initialize [class android.app.Activity, class android.content.Context, class android.view.SurfaceView, boolean, class android.os.Handler]
2019-05-18 18:42:01.189 6564-6564/? E/Unity: Unable to create method: initialize
2019-05-18 18:42:01.189 6564-6564/? E/Unity: Google VR Error [null]: Exception while trying to intialize Unity Google VR Library. Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference
2019-05-18 18:42:01.189 6564-6564/? E/Unity: Google VR Error [null]: Unable to initialize GoogleVR library.
2019-05-18 18:42:01.189 6564-6564/? E/Unity: Unable to initialize Google VR subsystem.
2019-05-18 18:42:01.189 6564-6579/? E/GvrShimUnity: destroyShim uninitialized
2019-05-18 18:42:01.205 6564-6564/? E/Unity: Error trying to call delegated method unload. null
2019-05-18 18:42:01.205 6564-6564/? E/Unity: Exception while trying to get method initialize. initialize [class android.app.Activity, class android.content.Context, class android.view.SurfaceView, boolean, class android.os.Handler]
2019-05-18 18:42:01.205 6564-6564/? E/Unity: Unable to create method: initialize
2019-05-18 18:42:01.205 6564-6564/? E/Unity: Google VR Error [null]: Exception while trying to intialize Unity Google VR Library. Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference
2019-05-18 18:42:01.205 6564-6564/? E/Unity: Google VR Error [null]: Unable to initialize GoogleVR library.
2019-05-18 18:42:01.205 6564-6564/? E/Unity: Unable to initialize Google VR subsystem.
2019-05-18 18:42:01.205 6564-6579/? E/GvrShimUnity: destroyShim uninitialized
2019-05-18 18:42:01.221 6564-6564/? E/Unity: Error trying to call delegated method unload. null
2019-05-18 18:42:01.422 6564-6579/? E/GvrShimUnity: initShimWithContext gvr context pointer cannot be null
2019-05-18 18:42:01.435 6564-6579/? E/Unity: GvrShimUnity_initShimWithContext returned error.

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

2019-05-18 18:42:01.435 6564-6579/? E/GvrShimUnity: resumeShim shim uninitialized
2019-05-18 18:42:01.436 6564-6579/? E/Unity: GvrShimUnity_resumeShim returned error.

(Filename: ./Runtime/Export/Debug.bindings.h Line: 45)

2019-05-18 18:42:01.440 6564-6579/? E/Unity: VR is disabled

HARDWARE/SOFTWARE VERSIONS

  • Unity: 218.3.4f1
  • Google VR SDK for Unity: 1.200.0
  • Device manufacturer, model, and O/S: Samsung Galaxy S9
  • Device fingerprint:
    Use adb shell getprop ro.build.fingerprint
  • Device display metrics:
    Output of adb shell dumpsys display | grep mBaseDisplayInfo
  • Google VR Services:
    On Windows, use: adb shell pm dump com.google.vr.vrcore | findstr /i "packages: versionName"
    On macOS, use: adb shell pm dump com.google.vr.vrcore | egrep -i versionName\|packages:
  • Viewer manufacturer & model:
  • Link to Unity project that reproduces the issue:

STEPS TO REPRODUCE THE ISSUE

  1. Run demo "HelloVR" from Unity in my Android device
@rusmaxham
Copy link
Contributor

Do you have VR enabled in Player Settings > XR Settings with either Daydream or Cardboard VR SDKs added?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants