Hello,
I ended up creating very basic example after fighting with shaders in my current project. They work some times and some times not. In this example I try to compile a simple shader, but obviously compilation fails. App logs don't contain any useful information except for that compilation failed. Perhaps I'm missing something. Could somebody point me on what I'm doing wrong?
class KanvasApp(App):
  def build(self):
    simple = Shader(source='simple.glsl')
    if not simple.success:
      raise Exception("Simple shader didn't compile.")
    root = BoxLayout(orientation='vertical')
    return root
if __name__ == "__main__":
  KanvasApp().run()
simple.glsl contents:
---VERTEX SHADER--- // vertex shader starts here
#ifdef GL_ES
  precision highp float;
#endif
/* Outputs to the fragment shader */
varying vec4 frag_color;
varying vec2 tex_coord0;
/* vertex attributes */
attribute vec2 Â Â vPosition;
attribute vec2 Â Â vTexCoords0;
/* uniform variables */
uniform mat4 Â Â Â modelview_mat;
uniform mat4 Â Â Â projection_mat;
uniform vec4 Â Â Â color;
uniform float    opacity;
void main() {
 gl_Position = projection_mat * modelview_mat * vec4(vPosition.xyz, 1.0);
}
---FRAGMENT SHADER--- // fragment shader starts here
#ifdef GL_ES
  precision highp float;
#endif
/* Outputs from the vertex shader */
varying vec4 frag_color;
varying vec2 tex_coord0;
/* uniform texture samplers */
uniform sampler2D texture0;
void main(void)
{
  gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);
}
App start logs:
[INFO        ] [Logger    ] Record log in /home/alex/.kivy/logs/kivy_14-12-04_59.txt
[INFO Â Â Â Â Â Â Â ] Kivy v1.9.0-dev
[INFO        ] [Python    ] v3.4.2 (default, Oct  8 2014, 13:44:52)
[GCC 4.9.1 20140903 (prerelease)]
[INFO        ] [Factory   ] 172 symbols loaded
[INFO        ] [Image    ] Providers: img_tex, img_dds, img_pygame, img_pil, img_gif (img_sdl2, img_ffpyplayer ignored)
[INFO        ] [Shader    ] Read <simple.glsl>
[ERROR       ] [Shader    ] <vertex> failed to compile (gl:0)
[ERROR       ] [Shader    ] <fragment> failed to compile (gl:0)
 Traceback (most recent call last):
  File "/home/alex/{cut off}/main.py", line 16, in <module>
   KanvasApp().run()
  File "/usr/lib/python3.4/site-packages/kivy/app.py", line 799, in run
   root = self.build()
  File "/home/alex/{cut off}/main.py", line 10, in build
   raise Exception("Simple shader didn't compile.")
 Exception: Simple shader didn't compile.
Process finished with exit code 1
This very minimalistic project is attached.
Best regards,
Alex.