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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question On play, Unity Editor not responding

Discussion in 'VR' started by iknowmyself, May 12, 2022.

  1. iknowmyself

    iknowmyself

    Joined:
    May 9, 2022
    Posts:
    8
    Hello,

    I have a scene that uses the OVRPlayerController and LocalAvatar so that we can have an oculus rift connected. When I click play, it works. However, the next time I click play it freezes. I know that the OVRPlayerController is the cause because when I disable it, the issue does not persist. I have also removed all custom scripts that I had attached to OVRPlayerController or any of its children.

    If anyone knows a good way to debug this, it would be very helpful.

    Version information:
    Unity 2019.3.4
    Oculus Integration Version 39.0
     
  2. yagizayer

    yagizayer

    Joined:
    Jul 29, 2018
    Posts:
    4
    Hi i have same bug with Oculus Quest 2

    problem is :
    ezgif.com-gif-maker.gif

    at that moment i see this :

    upload_2022-5-15_18-1-25.png

    made some experimentation with the problem:
    first of all, i recently format my pc, so there was no cache about unity or oculus integration package.
    after some tries i had some results :
    - with an empty scene and only OVR camera rig => bug occurs
    - empty scene + OVR camera BUT removed OVR manager from it => bug doesnt occurs
    - empty scene + OVR camera + removed ovr manager + after few seconds creating OVR manager => bug doesnt occurs

    with this setup i started implementing interactions when i tried, interactions were working and i can grab a cube with controllers, just for caution i tried replaying the scene without changing anything, bug occured again

    so i made some experiments with this setup too and saw that bug only occurs when i use grab button on controller, not even need to use it on cube, if i use grab button, i cant play second time, and editor stucks on "Application.reload".

    by the way, just to be clear, i waited approx.12 mins once, nothing changes.
     
  3. iknowmyself

    iknowmyself

    Joined:
    May 9, 2022
    Posts:
    8

    Hi! Thank you so much, I experimented a little as well. I think it might be something with Windows 11? I'm not sure if you are also on Windows 11? But to get the bug not to occur, I would:
    1. Play the scene the first time (works)
    2. Disable OVRPlayerController and play the scene without the OVRPlayerController (works)
    3. Re-Enable the OVRPlayerController and play the scene again

    Repeat steps 2 and 3. I don't really know why this occurs.

    Thanks for the answer!
     
  4. yagizayer

    yagizayer

    Joined:
    Jul 29, 2018
    Posts:
    4
    For the future readers, when i upgraded Unity to 2021.3.3, problem solved
     
  5. b1gry4n

    b1gry4n

    Joined:
    Sep 11, 2013
    Posts:
    146
    Anyone running into this issue...

    if you have multiple scenes and your project references those scenes or loads them at runtime, make sure you have them checked in the build settings "scenes in build". if they arent checked unity will hang and appear to freeze on play.