googlevr / cardboard

Open source Cardboard SDK and samples
Other
1.49k stars 257 forks source link

Cardboard Freezes after Start-Up #477

Open mdejong166 opened 1 month ago

mdejong166 commented 1 month ago

SPECIFIC ISSUE ENCOUNTERED

I followed the quickstart-guide from Google to run the cardboard-app. After hitting build & run, the app starts on my Android Phone, the Unity Intro shows, the HelloCardboard-Scene shows up but the camera doesn't move and I only have one screen (instead of the two for the Cardboard-goggle).

Logcat shows the following errors:

  1. DllNotFoundException: Unable to load DLL 'GfxPluginCardboard'. Tried the load the following dynamic libraries: Unable to load dynamic library 'GfxPluginCardboard' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen failed: library "GfxPluginCardboard" not found at Google.XR.Cardboard.XRLoader.CardboardUnity_initializeAndroid (System.IntPtr context) [0x00000] in <00000000000000000000000000000000>:0 at Google.XR.Cardboard.XRLoader.CardboardSDKInitialize () [0x00000] in <00000000000000000000000000000000>:0 at Google.XR.Cardboard.XRLoader.Initialize () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.XR.Management.XRManagerSettings.InitializeLoaderSync () [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.XR.Management.XRGeneralSettings.InitXRSDK () [0x00000] in <00000000000000000000000000000000>:0

  2. [Plenty of those errors as long as the app is running:] Please initialize Cardboard XR loader before calling this function.

Adding an if-statement according to this to the CardboardStartup.cs on Api.UpdateScreenParams(); did not work.

SMARTPHONE (please complete the following information):

STEPS TO REPRODUCE THE ISSUE

  1. Follow the Quickstart-Guide
  2. Hit Build and Run

EXPECTED BEHAVIOR

I'd expect that when the app starts on my smartphone, I'd be able to look around by moving the smartphone. Also I'd expect the screen to be split in two to be compatible with the cardboard-goggle.

VERSIONS USED

Cardboard XR Plugin 1.26.0

If you are using Cardboard XR Plugin: I tried with Unity Versions:

LINK TO A REPOSITORY WITH CODE TO REPRODUCE THE BUG

https://github.com/googlevr/cardboard

SCREENSHOTS

image

ADDITIONAL CONTEXT

I really hope, I phrased this well. Thanks a lot in advance for reading and caring! :)

DARK-Shadw commented 4 weeks ago

Yes facing the same issue the vr works fine at the splash screen for unity but then it freezes if any fix is found please let me know. Also is it possible to try out an older version on cardboard?

lneumarkt commented 3 weeks ago

Thank you @mdejong166 and @DARK-Shadw for reaching out!

We’ve tried to replicate the problem using different Android devices. But unfortunately we couldn’t reproduce the bug.

In order to allow us to reproduce this issue, could you please answer the following items?

Thanks!

Mandelbrow commented 2 weeks ago

@mdejong166 Did you follow all steps in the Google Cardboard Quickstart?

For example this step: Navigate to Project Settings > XR Plug-in Management.

  1. Select Cardboard XR Plugin under Plug-in Providers.