Thursday, 15 January 2015

Android TextureView OpenGLRenderer﹕ GL_INVALID_OPERATION -



Android TextureView OpenGLRenderer﹕ GL_INVALID_OPERATION -

i have 2 fragments has textureview show photographic camera preview or play video.

after using app while, playing screens, error in logcat

openglrenderer﹕ gl_invalid_operation

i release fragments, members set null.

@override public void ondestroyview() { logg.debug(tag, "ondestroyview"); super.ondestroyview(); if (mmediaplayer != null) { mmediaplayer.stop(); mmediaplayer.release(); mmediaplayer = null; } nextbutton = null; pausebutton = null; backbutton = null; playbutton = null; fronttextview = null; backtextview = null; surface = null; videoview = null; }

and see whole view become weird...

what missing?

your screenshot shows situation when scheme opengl context corrupted / broken. please check on thread release resouces. glcontext should destroyed same thread allocated. in case setsurface/setdisplay calls made wrong thread.

if have stable , easy steps reproduce can seek capture gl log using tracer opengl es, slows application a lot during capturing

android android-camera android-mediaplayer textureview

No comments:

Post a Comment