5

I'm using CAMERA2 API and meanwhile developing an application without any errors the application will run superbly. But after recording some chunks of clips it shows above mentioned error.

This is my approach,

1.Open the camera using cameraManager class and then set video preview into texture field

  1. After we started to record video it will break according to given time and instantly it will start record again and it will continuously create chunks of videos until user stopped the recording

Without any issues, it creates many(around 200-300) camera sessions. But suddenly it occurs below error. I've given some times to set up the camera sessions and release those sessions using Timer class and TimerSchdule class.

I've read this, and here, and here for extract what are the exactly happens. Thought needs some further help.

What I want to know is

  1. What is this error says?

  2. generally, why those errors occur in

EDIT :

error --->>>>

10-11 12:20:58.966 27862-27988/? E/CameraDeviceGLThread-0: Received exception on GL render thread: 
                                                           java.lang.IllegalStateException: glDrawArrays: GLES20 error: 0x505
                                                               at android.hardware.camera2.legacy.SurfaceTextureRenderer.checkGlError(SurfaceTextureRenderer.java:537)
                                                               at android.hardware.camera2.legacy.SurfaceTextureRenderer.drawFrame(SurfaceTextureRenderer.java:346)
                                                               at android.hardware.camera2.legacy.SurfaceTextureRenderer.drawIntoSurfaces(SurfaceTextureRenderer.java:726)
                                                               at android.hardware.camera2.legacy.GLThreadManager$1.handleMessage(GLThreadManager.java:105)
E J Chathuranga
  • 927
  • 12
  • 27
  • 1
    Without psychic powers, not sure we can help. What is the actual error you are getting? Please see: https://stackoverflow.com/help/mcve – solidpixel Sep 29 '17 at 13:37
  • 1
    @solidpixel yeah sure. The log also saying same error know. That's why I didn't add error log. Mainly I wanted to know why these errors appear. Thanks for your time. Hope much helps – E J Chathuranga Oct 11 '17 at 06:57
  • https://stackoverflow.com/questions/25735888/got-opengl-error-0x505-while-texture-cache-statistic-is-low – Ben.Slama.Jihed Oct 30 '18 at 09:19

0 Answers0