According to the official OpenGL documentation,
glCleargeneratesGL_INVALID_VALUEif any bit other than the four defined bits is set in mask.
So, i would double check your glClear sentence. Can you post a few of your code so we can check it?
EDIT: AgainI believe you have more than one error in your code. First, looks like OpenGL ES is complaining about this glClear and it is causing a GL_INVALID_VALUE gl error. Then, regarding other error, having a look at the OpenGL ES documentation of eglGetConfigAttrib, you can see that
EGL_BAD_ATTRIBUTEis generated if attribute is not a valid frame buffer configuration attribute.
Can you post again the line where you use eglGetConfigAttrib? I would double check that attribute parameter and its value.