Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.4.0
-
Samsung Galaxy Tab3 10.1 (P5210)
-
fd565ec6073c7e09cd76f23817ed940b73ef240f
Description
After update to new Android version (4.4.2), application fails to compile shader for Image element with antialias:true. Same application worked fine with previous android version (4.2.2) on the same device.
Application output:
W/Qt (10623): (null):0 ((null)): QOpenGLShader::link: "Link Error: Vertex shader is missing. W/Qt (10623): " W/Qt (10623): (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( pixelSize ): shader program is not linked W/Qt (10623): (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( qt_Matrix ): shader program is not linked W/Qt (10623): (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked W/Qt (10623): (null):0 ((null)): QOpenGLShader::compile(Vertex): Compile failed. W/Qt (10623): W/Qt (10623): (null):0 ((null)): *** Problematic Vertex shader source code *** W/Qt (10623): (null):0 ((null)): uniform highp vec2 pixelSize; W/Qt (10623): uniform highp mat4 qt_Matrix; W/Qt (10623): uniform lowp float opacity; W/Qt (10623): W/Qt (10623): attribute highp vec4 vertex; W/Qt (10623): attribute highp vec2 multiTexCoord; W/Qt (10623): attribute highp vec2 vertexOffset; W/Qt (10623): attribute highp vec2 texCoordOffset; W/Qt (10623): W/Qt (10623): varying highp vec2 texCoord; W/Qt (10623): varying lowp float vertexOpacity; W/Qt (10623): W/Qt (10623): attribute highp float _qt_order; W/Qt (10623): uniform highp float _qt_zRange; W/Qt (10623): void main() W/Qt (10623): { W/Qt (10623): highp vec4 pos = qt_Matrix * vertex; W/Qt (10623): gl_Position = pos; W/Qt (10623): texCoord = multiTexCoord; W/Qt (10623): W/Qt (10623): if (vertexOffset.x != 0.) { W/Qt (10623): highp vec4 delta = qt_Matrix[0] * vertexOffset.x; W/Qt (10623): highp vec2 dir = delta.xy * pos.w - pos.xy * delta.w; W/Qt (10623): highp vec2 ndir = .5 * pixelSize * normalize(dir / pixelSize); W/Qt (10623): dir -= ndir * delta.w * pos.w; W/Qt (10623): highp float numerator = dot(dir, ndir * pos.w * pos.w); W/Qt (10623): highp float scale = 0.0; W/Qt (10623): if (numerator < 0.0) W/Qt (10623): scale = 1.0; W/Qt (10623): else W/Qt (10623): scale = min(1.0, numerator / dot(dir, dir)); W/Qt (10623): gl_Position += scale * delta; W/Qt (10623): texCoord.x W/Qt (10623): (null):0 ((null)): *** W/Qt (10623): (null):0 ((null)): QOpenGLShader::link: "Link Error: Vertex shader is missing. W/Qt (10623): " W/Qt (10623): (null):0 ((null)): shader compilation failed: W/Qt (10623): "Link Error: Vertex shader is missing. W/Qt (10623): " W/Qt (10623): (null):0 ((null)): QOpenGLShader::link: "Link Error: Vertex shader is missing. W/Qt (10623): " W/Qt (10623): (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( pixelSize ): shader program is not linked W/Qt (10623): (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( qt_Matrix ): shader program is not linked W/Qt (10623): (null):0 ((null)): QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked
Attachments
Issue Links
- relates to
-
QTBUG-44169 `QOpenGLShader::compile(Vertex): Compile failed.` on embeded device
- Closed
- replaces
-
QTBUG-43998 Wanderer component causes crash on Galaxy Tab 3
- Closed