Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unity Cardboard XR Package Fails Initialization - logcat reveals a missing DLL error #488

Open
Leli1024 opened this issue Jan 23, 2025 · 1 comment

Comments

@Leli1024
Copy link

Hi,

So I'm using Unity 2022.2.0f1 and I'm using the latest version of the Cardboard XR Plugin and the code fails at the following line, I've tried everything including targeting different architectures

        Debug.Log("Initializing XR...");
        yield return XRGeneralSettings.Instance.Manager.InitializeLoader(); //Line where it's failing

        if (XRGeneralSettings.Instance.Manager.activeLoader == null)
        {
            Debug.LogError("Initializing XR Failed."); //If statement leads to here
        }
        else
        {
            Debug.Log("XR initialized.");

            Debug.Log("Starting XR...");
            XRGeneralSettings.Instance.Manager.StartSubsystems();
            Debug.Log("XR started.");

            SceneManager.LoadScene("RandomGame");
        }
        Debug.Log(XRGeneralSettings.Instance);
        Debug.Log(XRGeneralSettings.Instance.Manager);

Furthermore I get the following error on Logcat. I've tried to include the GFX aar file via the link.xml file however this did not work

01-23 11:48:21.413  1318  1347 I Unity   : Initializing XR...
01-23 11:48:21.417  1318  1347 E Unity   : DllNotFoundException: GfxPluginCardboard assembly:<unknown assembly> type:<unknown type> member:(null)
01-23 11:48:21.417  1318  1347 E Unity   :   at (wrapper managed-to-native) Google.XR.Cardboard.XRLoader.CardboardUnity_initializeAndroid(intptr)
01-23 11:48:21.417  1318  1347 E Unity   :   at Google.XR.Cardboard.XRLoader.CardboardSDKInitialize () [0x0002a] in <958d26e4323d4663af3cb088e09a4121>:0 
01-23 11:48:21.417  1318  1347 E Unity   :   at Google.XR.Cardboard.XRLoader.Initialize () [0x00000] in <958d26e4323d4663af3cb088e09a4121>:0 
01-23 11:48:21.417  1318  1347 E Unity   :   at UnityEngine.XR.Management.XRManagerSettings+<InitializeLoader>d__24.MoveNext () [0x0007e] in <0bee07df36d6466b8480cf5b165508c2>:0 
01-23 11:48:21.417  1318  1347 E Unity   :   at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <6545c77c885546489ebffd8fa98ea4ba>:0 
01-23 11:48:21.417  1318  1347 E Unity   : UnityEngine.MonoBehaviour:StartCoroutineManaged2(MonoBehaviour, IEnumerator)
01-23 11:48:21.417  1318  1347 E Unity   : UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
@rjcausarano
Copy link

Thanks for reporting this issue.
After closer inspection I’ve noticed that you reported that this is happening on Unity 2022.2.0f1 which is not an LTS version of Unity.

Are you able to reproduce this issue on Unity 2022.3.45f1?

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

No branches or pull requests

2 participants