Search Issue Tracker

Won't Fix

Votes

9

Found in [Package]

1.1.5

Issue ID

1213553

Regression

Yes

[Oculus XR SDK] Error spamming to logs on Quest: OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_OPERATION: Operation illegal in current

Package: Oculus XR Plugin

-

After running the graphics tests (and during) I'm seeing a lot of an error being spammed to the log.

1-21 09:23:58.475 22244 22296 D Unity : [XR] Failed to BeginFrame on display.
01-21 09:23:58.478 22244 22296 E Unity : OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_OPERATION: Operation illegal in current state
01-21 09:23:58.478 22244 22296 E Unity : (Filename: ./Runtime/GfxDevice/opengles/GfxDeviceGLES.cpp Line: 352)

The first error is spammed the entire time the tests are running while the last two lines seem to only come up once the test ends.

JJ said the BeginFrame error has been fixed in master xr sdk. But the OpenGL error might be new but it only repros after a test run it seems.

  1. Resolution Note:

    Shader should be updated to support multiview if reasonable, otherwise the feature should be removed from the project.

Comments (5)

  1. JPLee

    Dec 09, 2020 23:09

    "Shader should be updated to support multiview if reasonable"
    Could we possible be informed of which shader is causing the issue ?
    How does the code know that the shader isn't correct for multipass?
    It would be lovely for it to tell us .

  2. wirelessdreamer

    Aug 04, 2020 20:13

    this issues has been posted about, and not acted on for years, fyi:
    https://forum.unity.com/threads/lwrp-android-oculus-get-opengl-native-plug-in-error.559456/

  3. AzurySimon

    Mar 04, 2020 08:48

    I am seeing the same error on my Windows Build in the Player.log file. Judging by the amount of errors in the log file I would say I am getting that error every frame.
    VR itself works, so I don't know what actually causes this.

    I am however getting one error in the beginning that looks like this in the log:
    [XR] Failed to BeginFrame on display.XRTextureManager::SetupRenderTextureFromXRRequest (id: 1 col: 000001215A37A418 d: 000001215A37C7D8)

    After that its just:
    [XR] Failed to BeginFrame on display.[XR] Failed to BeginFrame on display.[XR] Failed to Beg [.....]
    Over and over again.

  4. nemesis92

    Feb 21, 2020 13:46

    I have the same error printed about once per frame Working on an Android Platform too (Oculus Quest). Visible only from adb logcat when running on the device, the problem is not visible while running in the Editor.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.