Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

LWRP, Android, Oculus, get OPENGL NATIVE PLUG-IN ERROR

Discussion in 'Shaders' started by linojon, Sep 22, 2018.

  1. linojon

    linojon

    Joined:
    Aug 25, 2014
    Posts:
    111
    Hello, given the following steps
    * created a new unity project,
    * imported the Oculus Utilties, target Android and Oculus SDK (Go),
    * open the GearVController example scene
    * setup for LWRP
    * player settings include OpenGLES3 api, .NET 4.x/Standard 2.0, IL2CPP, ARMv7
    * XR settings: VR enabled, Oculus, Single pass
    * Build and run

    The logcat has the follow errors (dozens if not hundreds of times)

    09-22 12:21:17.951 E/Unity (17300): OPENGL NATIVE PLUG-IN ERROR: GL_INVALID_OPERATION: Operation illegal in current state
    09-22 12:21:17.951 E/Unity (17300):
    09-22 12:21:17.951 E/Unity (17300): (Filename: /Users/builduser/buildslave/unity/build/Runtime/GfxDevice/opengles/GfxDeviceGLES.cpp Line: 340)

    I've tried this in 2018.2.9f1 and 2019.3.0b2
    Is this a unity bug, or a setting i should change, and/or safe to just ignore it?
     
  2. wilkens

    wilkens

    Joined:
    Feb 3, 2014
    Posts:
    5
    Same here in my VR project
     
  3. stenfeio

    stenfeio

    Joined:
    Jan 18, 2015
    Posts:
    13
    @linojon, ever figure out what the issue causing the error is? I'm getting this when I'm loading prefabs from AssetBundles.
     
  4. FlorianBernard

    FlorianBernard

    Joined:
    Jun 9, 2015
    Posts:
    106
    Same errors here with the exact same config as @linojon (except Unity 2018.3.6).
    Any update on this guys?
     
  5. SahilSinghAVR

    SahilSinghAVR

    Joined:
    Jun 14, 2019
    Posts:
    1
    Experiencing this in 2019.1.9f1, any body has any idea why does this show up
     
  6. rtorresbonetff

    rtorresbonetff

    Joined:
    Jan 3, 2019
    Posts:
    6
    We also have this and it ruins the framerate
     
  7. MSFX

    MSFX

    Joined:
    Sep 3, 2009
    Posts:
    115
    also getting this in 2018.3 Quest project, would love to know why?
     
  8. wilkens

    wilkens

    Joined:
    Feb 3, 2014
    Posts:
    5
    11 month later, Unity 2019.2 and using Oculus Quest. Still getting the same error. It seems nobody is interested in solving this bug
     
  9. LucasRizzotto

    LucasRizzotto

    Joined:
    Dec 11, 2015
    Posts:
    12
    Same here. Has anyone found a solution?
     
  10. GlitchInTheMatrix

    GlitchInTheMatrix

    Joined:
    Apr 12, 2010
    Posts:
    285
    No solution about this yet?
     
  11. KuantikoStudio

    KuantikoStudio

    Joined:
    Apr 2, 2019
    Posts:
    5
    I was having the same issue since I moved my project to Unity 2019.2. I just realized that for some reason the "Stereo Rendering Mode" (at XR Settings) changed to "Multiview", switching it back to "Single Pass" solved the problem.

    In my case, I'm building for Oculus (Android).

    I hope helps anybody else.
     
  12. wirelessdreamer

    wirelessdreamer

    Joined:
    Apr 13, 2016
    Posts:
    119
    Has anyone made any progress on this? I'm seeing it in 2019.3.14f1
     
  13. stenfeio

    stenfeio

    Joined:
    Jan 18, 2015
    Posts:
    13
    Unfortunately on my end, ended up moving away from URP (LWRP). Seemed like it was main cause of issue for me.
     
unityunity