On play, Unity Editor not responding

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

Hi i have same bug with Oculus Quest 2

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

at that moment i see this :

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.

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!

For the future readers, when i upgraded Unity to 2021.3.3, problem solved

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.