org.andengine.opengl.shader.exception.ShaderProgramCompileException

Reason: ERROR: 0:1: '' : Version number not supported by GL2 09-13 22:20:43.195: E/AndroidRuntime(1509): Source: 09-13 22:20:43.195: E/AndroidRuntime(1509): ########################## 09-13 22:20:43.195: E/AndroidRuntime(1509): uniform mat4 u_modelViewProjectionMatrix; 09-13 22:20:43.195: E/AndroidRuntime(1509): attribute vec4 a_position; 09-13 22:20:43.195: E/AndroidRuntime(1509): attribute vec2 a_textureCoordinates; 09-13 22:20:43.195: E/AndroidRuntime(1509): varying vec2 v_textureCoordinates; 09-13 22:20:43.195: E/AndroidRuntime(1509): void main() { 09-13 22:20:43.195: E/AndroidRuntime(1509): v_textureCoordinates = a_textureCoordinates; 09-13 22:20:43.195: E/AndroidRuntime(1509): gl_Position = u_modelViewProjectionMatrix * a_position; 09-13 22:20:43.195: E/AndroidRuntime(1509): } 09-13 22:20:43.195: E/AndroidRuntime(1509): ##########################

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • Reason: ERROR: 0:1: '' : Version number not supported by GL2 09-13 22:20:43.195: E/AndroidRuntime(1509): Source: 09-13 22:20:43.195: E/AndroidRuntime(1509): ########################## 09-13 22:20:43.195: E/AndroidRuntime(1509): uniform mat4
  • Stack trace

    • org.andengine.opengl.shader.exception.ShaderProgramCompileException: Reason: ERROR: 0:1: '' : Version number not supported by GL2 09-13 22:20:43.195: E/AndroidRuntime(1509): Source: 09-13 22:20:43.195: E/AndroidRuntime(1509): ########################## 09-13 22:20:43.195: E/AndroidRuntime(1509): uniform mat4 u_modelViewProjectionMatrix; 09-13 22:20:43.195: E/AndroidRuntime(1509): attribute vec4 a_position; 09-13 22:20:43.195: E/AndroidRuntime(1509): attribute vec2 a_textureCoordinates; 09-13 22:20:43.195: E/AndroidRuntime(1509): varying vec2 v_textureCoordinates; 09-13 22:20:43.195: E/AndroidRuntime(1509): void main() { 09-13 22:20:43.195: E/AndroidRuntime(1509): v_textureCoordinates = a_textureCoordinates; 09-13 22:20:43.195: E/AndroidRuntime(1509): gl_Position = u_modelViewProjectionMatrix * a_position; 09-13 22:20:43.195: E/AndroidRuntime(1509): } 09-13 22:20:43.195: E/AndroidRuntime(1509): ########################## at org.andengine.opengl.shader.ShaderProgram.compileShader(ShaderProgram.java:187) at org.andengine.opengl.shader.ShaderProgram.compile(ShaderProgram.java:143) at org.andengine.opengl.shader.ShaderProgram.bind(ShaderProgram.java:122) at org.andengine.opengl.shader.PositionTextureCoordinatesShaderProgram.bind(PositionTextureCoordinatesShaderProgram.java:86) at org.andengine.opengl.vbo.VertexBufferObject.bind(VertexBufferObject.java:162) at org.andengine.opengl.texture.TextureWarmUpVertexBufferObject.warmup(TextureWarmUpVertexBufferObject.java:97) at org.andengine.opengl.texture.TextureManager.updateTextures(TextureManager.java:257) at org.andengine.engine.Engine.onDrawFrame(Engine.java:613) at org.andengine.opengl.view.EngineRenderer.onDrawFrame(EngineRenderer.java:105) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1462) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.