Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug quest 2 apk black screen

Discussion in '2023.3 Alpha' started by nukadelic, Sep 6, 2023.

  1. nukadelic

    nukadelic

    Joined:
    Aug 5, 2017
    Posts:
    65
    - running app in editor seems fine [ plugin : open-xr or oculus ]
    - building vulkan apk [ plugin : oculus with app space wrap ] and starting app will log :


    AndroidPlayer "Oculus_Quest" XRGeneral Settings awakening...
    AndroidPlayer "Oculus_Quest" NullReferenceException: Object reference not set to an instance of an object.
    AndroidPlayer "Oculus_Quest" NullReferenceException: Object reference not set to an instance of an object.
    AndroidPlayer "Oculus_Quest" NullReferenceException: Object reference not set to an instance of an object.
    AndroidPlayer "Oculus_Quest" NullReferenceException: Object reference not set to an instance of an object.
    ...


    building apk with xr plugin target open-xr will show similar error log and occasionally this line

    AndroidPlayer "Oculus_Quest 2@ADB:1WMHH833DY1046:0" DllNotFoundException: Unable to load DLL 'OVRPlugin'. Tried the load the following dynamic libraries: Unable to load dynamic library 'OVRPlugin' because of 'Failed to open the requested dynamic library (0x06000000) dlerror() = dlopen failed: library "OVRPlugin" not found
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,393
    Did you update oculus integration and the oculus xr plugin as well?
    Is this in a blank project?
     
  3. nukadelic

    nukadelic

    Joined:
    Aug 5, 2017
    Posts:
    65
    That was an attempt when upgrading existing project, but on an empty project it won't even build :
    ( apk target platform oculus ) *

    -
    Asset has disappeared while building player to 'globalgamemanagers.assets' - path '', instancedID '-2472'
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
    -
    Error building Player: 2 errors
    -
    Build completed with a result of 'Failed' in 20 seconds (19625 ms)
    3 errors
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)


    Entering play mode with oculus link seems to work fine.
    Guess ill just stick to what works for now until the editor is at its stable version
     
    DevDunk likes this.