r/oculusdev • u/KilThrall • Sep 10 '21
Unity editor crashing after playmode with Quest 2 with oculus link
Edit: the problem was with my project, so I guess something in it is causing the crash. Thank you all for the help!
It's basically that, whenever I try to use the play mode on the Unity editor with the Quest 2 directly connected, after I finish using the play mode (and therefore, stop it), it crashes.It happens all the time and the Unity editor can't recognize the reason for the crash.Also, during runtime it works just fine, it's only after ending the play mode that it crashes.
Does anyone know why this might be? Or maybe have a potential idea on how to fix it?
2
u/spyboy70 Sep 10 '21 edited Sep 10 '21
Steps to check
2
u/JUSSI81 Sep 10 '21
I did this https://developer.oculus.com/documentation/unity/unity-gs-overview/ and Unity and Quest 2 have worked very well.
What version of Unity you use? I use 2020.3.0f for Quest 2 development and it works very well. I tried some 2021 version too, but it had some problems and I can't remember what it had excactly. I only remember I went back to 2020.3.
This may be a long shot but have you tweaked settings with ODT (Oculus Debug Tool)? I was stupid and changed Encode Bitrate to 500Mbps and after that my Quest 2 started dropping frames and sound started snapping when I used it with PC. Lowering it back to default or 300Mbps solved that problem.
I have also disabled Guardian and Hand Tracking.
2
u/Sunglok Sep 16 '21
I have a same problems.
Can you tell me how fix it?
I use Oculus Integration. and OVRRig.
I think OVR Rig has a problem. but I don't know exactly
2
u/cooljkaz Sep 24 '21
I'm having the same problem. Just started a few days ago... not sure what changed. I assume if I start over with a clean project it might work, but that's not really feasible since I've put hundreds of hours into my game. If anyone is reading this and found a way to resolve it, please share!
Things I have done:
Empty scene in current game, fail.
Moved my Unity version from LTS to the latest official release, no bueno.
Breakpoints at ondestroy events, crash.
Quitting game on Quest before stopping in Unity, boom.
Disconnecting Quest all together, then stop game in Unity, kerplunk.
1
u/Wimachtendink Sep 10 '21
Are you using OVR Camera Rig? or unity's XRRig?
2
u/skidvis Sep 25 '21
It has to do with Unity's lack of support for OpenXR.
This video shows how to get around it: https://youtu.be/dU4HPEWKG4g