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 device index out of range #1024

Closed zet23t closed 5 years ago

zet23t commented 5 years ago

SPECIFIC ISSUE ENCOUNTERED

App doesn't start when built with latest Unity version (2019.1.0f2). Logcat repeats the same error continously:

04-22 21:25:04.905 28138 28155 E GvrShimUnity: getControllerConnectionStatus device index out of range
04-22 21:25:04.905 28138 28155 E Unity   : GvrShimUnity_getControllerConnectionStatus returned error.
04-22 21:25:04.905 28138 28155 E Unity   :
04-22 21:25:04.905 28138 28155 E Unity   : (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 48)

HARDWARE/SOFTWARE VERSIONS

STEPS TO REPRODUCE THE ISSUE

  1. Build an app with given SDK & Unity version
  2. Try to start the app

WORKAROUNDS (IF ANY)

ADDITIONAL COMMENTS

rusmaxham commented 5 years ago

This is a known issue with Unity 2019.1. Unity is working on a fix.

rusmaxham commented 5 years ago

This should be fixed with com.unity.xr.googlevr.android package version 1.18.4 from Unity.

adammpkins commented 4 years ago

@rusmaxham Am I missing something? Is 1.18.4 in the package manager equivalent to the 1.2 release the original poster mentioned? Running into this same bug with 2019.1.12f1 and sdk release v1.200.1

Need functionality from the <1.2 release as 64 bit support is required this week.

rusmaxham commented 4 years ago

There was an issue with how Unity builds with the Cardboard/Daydream SDK and the GoogleVR SDK for Unity that was resolved in com.unity.xr.googlevr.android@1.18.4. It is separate from the GoogleVR SDK for Unity v1.200 which contains 64 bit support. com.unity.xr.googlevr.android is a package released by Unity. GoogleVR SDK for Unity is a unitypackage released by Google. Both are needed for 64 bit build support.

renanmgs commented 4 years ago

Still getting this error even with com.unity.xr.googlevr.android@1.18.4 image

diegodias commented 4 years ago

Still getting this error even with com.unity.xr.googlevr.android@1.18.4 image

Getting exactly the same error