Forum Discussion
rwblodgett
4 years agoProtege
Black screen on start on Quest 2 (Unity)
I am now using Unity 2019.4.36, recently updated from Unity 2019.4.23. I rebuilt my Quest 2 project and deployed to the device and now it launches a black screen.
Trying to unravel what has changed/not changed.
I'm using Android API 30. Is this the correct version?
I upgraded the Oculus XR plugin in package manager to 1.12.0 and still doesn't work. I was on 1.11.2.
I tried building with Vulkan instead of OpenGLES3, but still doesn't work.
I have tried toggling a few other settings like "Low Overhead Mode", but still doesn't work.
I have tried toggling Multithreaded mode, but still doesn't work.
Quest OS updated in the meantime as well to now include the Meta logo on startup instead of Oculus logo, but still no luck.
I do notice this obscure opengl error when not using Vulkan. With Vulkan, no error.
Quest OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_OPERATION: Operation illegal in current state (Filename: ./Runtime/GfxDevice/opengles/GfxDeviceGLES.cpp Line: 444)
Okay, I figured it out.
The OpenGL error was not related.
It turns out I had a setting "Default Orientation" set to "Portrait" in the Player / Other Settings options in Unity.
Apparently between Unity 2019.4.23 and later versions, this setting was made to affect the Quest build. This causes the RESOLUTION requested of Quest to be FLIPPED. And therefore completely screwed up and displays as a black screen. (You have to force restart the Quest to get it back to normal).
Instead if you choose "Auto Rotation" as the default orientation, then everything launches fine!
4 Replies
- rwblodgettProtege
Okay, I figured it out.
The OpenGL error was not related.
It turns out I had a setting "Default Orientation" set to "Portrait" in the Player / Other Settings options in Unity.
Apparently between Unity 2019.4.23 and later versions, this setting was made to affect the Quest build. This causes the RESOLUTION requested of Quest to be FLIPPED. And therefore completely screwed up and displays as a black screen. (You have to force restart the Quest to get it back to normal).
Instead if you choose "Auto Rotation" as the default orientation, then everything launches fine!
- darkveins_Protege
Great find. For me, it only froze the second time I ran it. I wish I had found your post earlier...I changed every single Player Setting until it worked.
I'd say this is mostly a bug on the part of Quest. I don't suppose anyone knows if there's some logcat tag where Quest actually tells you about errors like this?
- virtualosusHonored Guest
Got caught by this today!! Thanks for the solve π
- Radicals27Honored Guest
You bloody legend!! Thank you!!
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 3 months ago
- 7 months ago
- 4 months ago