Forum Discussion
JustZht
10 years agoHonored Guest
Right eye freezes on Android 6.0 Marshmallow (Galaxy S6 Edge)
Hi everyone, I am using Unity 5.3.4p1 with EasyWebViewTexture for Android, everything was fine when testing my app on Android 5.x, but after I upgrade my galaxy s6 edge to Android 6.0 right eye alway...
vrdaveb
10 years agoOculus Staff
This looks like our bug:
04-21 19:52:18.541 11106-11136/com.Raven.WebViewDebug E/libEGL: eglMakeCurrent:1056 error 3002 (EGL_BAD_ACCESS)
04-21 19:52:18.641 11106-11136/com.Raven.WebViewDebug E/Unity: [EGL] Unable to acquire context: EGL_BAD_ACCESS: EGL cannot access a requested resource (for example a context is bound in another thread).
UnityEngine.Texture:GetNativeTextureID()
EasyWebViewCtrl:Start() (at /Users/Fincher/Desktop/WebViewDebug/Assets/EasyWebViewTexture/Scripts/EasyWebViewCtrl.cs:73)
04-21 19:52:18.641 11106-11136/com.Raven.WebViewDebug E/libEGL: call to OpenGL ES API with no current context (logged once per thread)
04-21 19:52:18.641 11106-11190/com.Raven.WebViewDebug E/libEGL: eglMakeCurrent:1056 error 3002 (EGL_BAD_ACCESS)
04-21 19:52:18.641 11106-11190/com.Raven.WebViewDebug E/Unity: [EGL] Unable to acquire context: EGL_BAD_ACCESS: EGL cannot access a requested resource (for example a context is bound in another thread).
(Filename: ./Runtime/GfxDevice/egl/WindowContextEGL.cpp Line: 205)
It's due to the way we manage GLES contexts and surfaces in VRAPI 1.0.0 and earlier. Unity normally has a context current on the windowsurface, but we make it current on a trivial pixel buffer and make our TimeWarp context current on the windowsurface when in VR mode. With the current code, it looks like you would need to exit VR mode before getting the native texture pointer. Unfortunately, there isn't an easy way to do that. You might be able to make the call in Awake if you set your script to run first (see http://docs.unity3d.com/Manual/class-ScriptExecution.html).
Within the next month, we are planning to rework our context management to remove this hazard.
Within the next month, we are planning to rework our context management to remove this hazard.
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
- 9 months ago
- 3 years ago
- 3 months ago