GSYVideoPlayer icon indicating copy to clipboard operation
GSYVideoPlayer copied to clipboard

紧急

Open mahmoudelfeel opened this issue 8 years ago • 6 comments

Fatal Exception: java.lang.RuntimeException: glDrawArrays: glError 1282 at com.shuyu.gsyvideoplayer.render.glrender.GSYVideoGLViewBaseRender.checkGlError(Unknown Source) at com.shuyu.gsyvideoplayer.render.glrender.GSYVideoGLViewSimpleRender.initPointerAndDraw(Unknown Source) at com.shuyu.gsyvideoplayer.render.glrender.GSYVideoGLViewSimpleRender.onDrawFrame(Unknown Source) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1582) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1267)

HUAWEI Mate 8 Api 24

当玩家加载时点击退出活动

mahmoudelfeel avatar Jan 09 '18 18:01 mahmoudelfeel

不理解,demo复现?

CarGuo avatar Jan 10 '18 00:01 CarGuo

对不起,我不会说中文 i am using your demo app on ( DetailFilterActivity ) to load this video from youtube

https://redirector.googlevideo.com/videoplayback?sparams=dur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cexpire&itag=22&initcwndbps=162500&signature=8EB1B38AE8597F405959D3AE6385770DC56B7C1E.1DB74296F0BE55E34E7C5FD907CC43D67F7B634E&mm=31&mn=sn-n4v7sn76&ipbits=0&ratebypass=yes&ip=2600%3A3c01%3A%3Af03c%3A91ff%3Afe24%3Ab564&key=yt6&requiressl=yes&source=youtube&lmt=1515480634999944&dur=344.630&expire=1515625919&mime=video%2Fmp4&mt=1515604238&pl=64&mv=m&id=o-AAMaAYEsL1e1oZm9YXuphN5m10uXDum7RRvKvPL5XzJk&ei=X0lWWpeUC8iw-wPl-4Yw&ms=au

it kept loading on HUAWEI Mate 8 it works on other mobiles but on HUAWEI Mate 8 it doesn't work

the crash happened when i pressed the back button while it was loading

the crash happend because of this

protected void checkGlError(String op) { int error; while ((error = GLES20.glGetError()) != GLES20.GL_NO_ERROR) { Debuger.printfError(op + ": glError " + error); throw new RuntimeException(op + ": glError " + error); } }

mahmoudelfeel avatar Jan 10 '18 17:01 mahmoudelfeel

sorry, i don't have this device.

you can try again by demo in dev branch.

where to call checkGLError leads to this error

CarGuo avatar Jan 11 '18 01:01 CarGuo

okay it happened on another device too with the same log

Cant you just avoid making a crash with your method and just log the error ?

mahmoudelfeel avatar Jan 11 '18 12:01 mahmoudelfeel

so easy, you can extend GSYVideoGLViewSimpleRender.class and override checkGlError. then detailPlayer.setCustomGLRenderer(mGSYVideoGLViewCustomRender); like demo

CarGuo avatar Jan 11 '18 12:01 CarGuo

Thank you !

mahmoudelfeel avatar Jan 12 '18 18:01 mahmoudelfeel