Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Oculus Quest freezes on loading

Discussion in 'VR' started by ehsan_d, Jun 27, 2019.

  1. ehsan_d

    ehsan_d

    Joined:
    Feb 10, 2019
    Posts:
    4
    Hi

    I built a test app from ready scene of Oculus Sample Frameworks. But app got frozen in loading page of Oculus Quest.
    My Unity version is 2018.1.2f1
     
  2. DiscoFever

    DiscoFever

    Joined:
    Nov 16, 2014
    Posts:
    254
    Did you remove VULKAN rendering ?
     
  3. Schneider21

    Schneider21

    Joined:
    Feb 6, 2014
    Posts:
    2,886
    I had encountered this before, and the cause was a NullRef exception that was being triggered each from, locking the execution of the app.

    It's really touch to find these kind of things from running just on the device. You can use logcat to check the Android logs and see if that shows you anything.
     
    gjf likes this.
  4. ehsan_d

    ehsan_d

    Joined:
    Feb 10, 2019
    Posts:
    4
    Yes I did
     
  5. ehsan_d

    ehsan_d

    Joined:
    Feb 10, 2019
    Posts:
    4
    logcat shows that app run and counts FPS but in quest display frozen loading dots.

    Code (CSharp):
    1. I VrApi   : APP NAME = VRTest
    2. I VrApi   : APP VERSION = 0.1 versionCode 1 internalVersionName <none>
    3. I VrApi   : APP VR TYPE = vr_only
    4. I VrApi   : APP PACKAGE NAME = com.Company.VRTest
    5. I VrApi   : APP ACTIVITY CLASS = com.unity3d.player.UnityPlayerActivity
    6. I VrApi   : ovrModeParms::VRAPI_MODE_FLAG_ALLOW_POWER_SAVE = 1
    7. I VrApi   : ovrModeParms::VRAPI_MODE_FLAG_RESET_WINDOW_FULLSCREEN = 1
    8. I VrApi   : ovrModeParms::VRAPI_MODE_FLAG_NATIVE_WINDOW = 1
    9. I VrApi   : ovrModeParms::VRAPI_MODE_FLAG_FRONT_BUFFER_PROTECTED = 0
    10. I VrApi   : ovrModeParms::VRAPI_MODE_FLAG_FRONT_BUFFER_565 = 0
    11. I VrApi   : ovrModeParms::VRAPI_MODE_FLAG_FRONT_BUFFER_SRGB = 0
    12. I VrApi   : ovrModeParms::VRAPI_MODE_FLAG_CREATE_CONTEXT_NO_ERROR = 0
    13. I VrApi   : HMD sensor attached.
    14. I VrApi   : ovr_GetDisplayRefreshRate: display refresh rate = 72.00 Hz for display 0
    15. I VrApi   : OVR::Stats thread started
    16. I VrApi   : System brightness = 255
    17. D VrApi   : VrApi::isWifiConnected exception: Make sure android.permission.ACCESS_NETWORK_STATE is set in the manifest.
    18. I VrApi   : Set brightness to 255
    19. I VrApi   : Set DND mode to false
    20. D VrApi   : targetSDKVersion 28
    21. I VrApi   : System DND mode = false
    22. .
    23. .
    24. .
    25. I VrApi   : FPS=72,Prd=44ms,Tear=0,Early=65,Stale=0,VSnc=1,Lat=1,Fov=0,CPU4/GPU=2/2,1651/414MHz,OC=FF,TA=0/0/0,SP=N/N/N,Mem=1804MHz,Free=2027MB,PSM=0,PLS=0,Temp=34.0C/0.0C,TW=0.00ms,App=9.39ms,GD=2.44ms
    when I play in Unity editor, a warning message shows on Unity console said
    "Virtual Reality SDK Oculus failed to initialize.
    Will attempt to enable None instead."
     
    Last edited: Jun 30, 2019
  6. s4wolf64

    s4wolf64

    Joined:
    Dec 5, 2014
    Posts:
    4
    solution???