googlevr / gvr-unity-sdk

Google VR SDK for Unity
http://developers.google.com/vr/unity/
Other
2.71k stars 1.1k forks source link

GvrShimUnity_getControllerConnectionStatus returned error during GoogleVR SDK Upgrade on existing project #1045

Closed adammpkins closed 4 years ago

adammpkins commented 4 years ago

SPECIFIC ISSUE ENCOUNTERED

App fails with latest version of unity editor with

E/Unity: GvrShimUnity_getControllerConnectionStatus returned error. Gvr.Internal.AndroidNativeShimControllerProvider:ReadState(ControllerState, Int32) GvrControllerInputDevice:Update() GvrControllerInput:Update()

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

Repeating in the logs

HARDWARE/SOFTWARE VERSIONS

STEPS TO REPRODUCE THE ISSUE

  1. Remove old SDK plugin directory from Assets
  2. Re-import the new googlevr SDK asset
  3. Toggle XRSettings.enabled = true
  4. Application shows a single view with a reticle which would not respond to movements
  5. Receive "GvrShimUnity_getControllerConnectionStatus returned error." throughout logcat

WORKAROUNDS (IF ANY)

ADDITIONAL COMMENTS

adammpkins commented 4 years ago

Resolved by the inclusion of the GoogleVR package in the Package Manager. For other users confused by this (because it's not in the documentation, quickstart or otherwise), you must include the GoogleVR package in the Package Manager IN ADDITION to the asset package you download from the releases page. It's not one or the other. The asset package will not function without the package manager package.

rusmaxham commented 4 years ago

There is a Unity 2019.x issue where the GoogleVR Package Manager package is not automatically included when upgrading a Daydream project. Disabling and re-enabling VR Support will automatically add the required Package Manager dependencies.