Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-58715

[Android]: When using the emulator with OpenGL enabled it has problems with the shaders used in Qt Quick

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 5.8.0
    • Fix Version/s: None
    • Component/s: QPA
    • Platform/s:
      Android

      Description

      [Android]: When using the emulator with OpenGL enabled it has problems with the shaders used in Qt Quick. This happens with any Qt Quick based example. The following is the output that is given:

      Starting remote process.I art     : Not late-enabling -Xcheck:jni (already on)
      I art     : Late-enabling JIT
      I art     : JIT created with code_cache_capacity=2MB compile_threshold=1000
      W System  : ClassLoader referenced unknown path:
      W linker  : /data/app/org.qtproject.example.testquick-1/lib/arm/libQt5Network.so: unused DT entry: type 0x1d arg 0x131f2
      W linker  : /data/app/org.qtproject.example.testquick-1/lib/arm/libQt5Network.so: unsupported flags DT_FLAGS_1=0x81
      W linker  : /data/app/org.qtproject.example.testquick-1/lib/arm/libQt5Qml.so: unused DT entry: type 0x1d arg 0x34545
      W linker  : /data/app/org.qtproject.example.testquick-1/lib/arm/libQt5Qml.so: unsupported flags DT_FLAGS_1=0x81
      W linker  : /data/app/org.qtproject.example.testquick-1/lib/arm/libQt5Gui.so: unused DT entry: type 0x1d arg 0x534cf
      W linker  : /data/app/org.qtproject.example.testquick-1/lib/arm/libQt5Gui.so: unsupported flags DT_FLAGS_1=0x81
      W linker  : /data/app/org.qtproject.example.testquick-1/lib/arm/libQt5Quick.so: unused DT entry: type 0x1d arg 0x46bc9
      W linker  : /data/app/org.qtproject.example.testquick-1/lib/arm/libQt5Quick.so: unsupported flags DT_FLAGS_1=0x81
      W linker  : /data/app/org.qtproject.example.testquick-1/lib/arm/libQt5QuickParticles.so: unused DT entry: type 0x1d arg 0x5466
      W linker  : /data/app/org.qtproject.example.testquick-1/lib/arm/libQt5QuickParticles.so: unsupported flags DT_FLAGS_1=0x81
      W linker  : /data/data/org.qtproject.example.testquick/qt-reserved-files/plugins/platforms/android/libqtforandroid.so: unused DT entry: type 0x1d arg 0x94a3
      W linker  : /data/data/org.qtproject.example.testquick/qt-reserved-files/plugins/platforms/android/libqtforandroid.so: unsupported flags DT_FLAGS_1=0x81
      I Qt      : qt start
      W linker  : /data/data/org.qtproject.example.testquick/qt-reserved-files/plugins/bearer/libqandroidbearer.so: unused DT entry: type 0x1d arg 0x1712
      W linker  : /data/data/org.qtproject.example.testquick/qt-reserved-files/plugins/bearer/libqandroidbearer.so: unsupported flags DT_FLAGS_1=0x81
      W art     : Suspending all threads took: 12.122ms
      I art     : Background sticky concurrent mark sweep GC freed 2753(500KB) AllocSpace objects, 5(108KB) LOS objects, 21% free, 2MB/3MB, paused 13.763ms total 127.263ms
      I art     : Background partial concurrent mark sweep GC freed 4849(658KB) AllocSpace objects, 8(168KB) LOS objects, 24% free, 2MB/3MB, paused 1.178ms total 118.243ms
      W linker  : /data/app/org.qtproject.example.testquick-1/lib/arm/libtestquick.so: unused DT entry: type 0x1d arg 0x519
      D         : (null):0 ((null)): QML debugging is enabled. Only use this in a safe environment.
      D OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
      D         : HostConnection::get() New Host Connection established 0xae4b7460, tid 1498
      D         : HostConnection::get() New Host Connection established 0xae4b7530, tid 1516
      I OpenGLRenderer: Initialized EGL, version 1.4
      W EGL_emulation: eglSurfaceAttrib not implemented
      W OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xacc3afc0, error=EGL_SUCCESS
      W linker  : /data/data/org.qtproject.example.testquick/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so: unused DT entry: type 0x1d arg 0x4de
      W linker  : /data/data/org.qtproject.example.testquick/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so: unsupported flags DT_FLAGS_1=0x81
      W linker  : /data/data/org.qtproject.example.testquick/qt-reserved-files/qml/QtQuick/Window.2/libwindowplugin.so: unused DT entry: type 0x1d arg 0x4b2
      W linker  : /data/data/org.qtproject.example.testquick/qt-reserved-files/qml/QtQuick/Window.2/libwindowplugin.so: unsupported flags DT_FLAGS_1=0x81
      D         : HostConnection::get() New Host Connection established 0xa39bd430, tid 1517
      D         : HostConnection::get() New Host Connection established 0xa39bd5d0, tid 1519
      I art     : Background sticky concurrent mark sweep GC freed 3457(395KB) AllocSpace objects, 2(36KB) LOS objects, 19% free, 2MB/3MB, paused 1.107ms total 138.765ms
      W libtestquick.so: (null):0 ((null)): QOpenGLShader::compile(Vertex): ERROR: Valid GLSL but not GLSL ES
      W libtestquick.so: (null):0 ((null)): *** Problematic Vertex shader source code ***
      W libtestquick.so: #define lowp
      W libtestquick.so: #define mediump
      W libtestquick.so: #define highp
      W libtestquick.so: #line 1
      W libtestquick.so: attribute highp vec4 vertexCoord;
      W libtestquick.so: attribute highp vec4 vertexColor;
      02-08 12:21:17.835  1498  1519 W libtestquick.so:
      W libtestquick.so: uniform highp mat4 matrix;
      W libtestquick.so: uniform highp float opacity;
      02-08 12:21:17.835  1498  1519 W libtestquick.so:
      W libtestquick.so: varying lowp vec4 color;
      02-08 12:21:17.835  1498  1519 W libtestquick.so:
      W libtestquick.so: attribute highp float _qt_order;
      W libtestquick.so: uniform highp float _qt_zRange;
      W libtestquick.so: void main()
      W libtestquick.so: {
      W libtestquick.so:     gl_Position = matrix * vertexCoord;
      W libtestquick.so:     color = vertexColor * opacity;
      W libtestquick.so:     gl_Position.z = (gl_Position.z * _qt_zRange + _qt_order) * gl_Position.w;
      W libtestquick.so: }
      W libtestquick.so: ***
      W libtestquick.so: (null):0 ((null)): QOpenGLShader::compile(Fragment): ERROR: Valid GLSL but not GLSL ES
      W libtestquick.so: (null):0 ((null)): *** Problematic Fragment shader source code ***
      W libtestquick.so: #define lowp
      W libtestquick.so: #define mediump
      W libtestquick.so: #define highp
      W libtestquick.so: #line 1
      W libtestquick.so: varying lowp vec4 color;
      02-08 12:21:17.838  1498  1519 W libtestquick.so:
      W libtestquick.so: void main()
      W libtestquick.so: {
      W libtestquick.so:     gl_FragColor = color;
      W libtestquick.so: }
      W libtestquick.so: ***
      W libtestquick.so: (null):0 ((null)): shader compilation failed:
      W libtestquick.so: ""
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(matrix): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(opacity): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShader::compile(Vertex): ERROR: Valid GLSL but not GLSL ES
      W libtestquick.so: (null):0 ((null)): *** Problematic Vertex shader source code ***
      W libtestquick.so: #define lowp
      W libtestquick.so: #define mediump
      W libtestquick.so: #define highp
      W libtestquick.so: #line 1
      W libtestquick.so: uniform highp mat4 matrix;
      W libtestquick.so: uniform highp vec2 textureScale;
      02-08 12:21:17.843  1498  1519 W libtestquick.so:
      W libtestquick.so: attribute highp vec4 vCoord;
      W libtestquick.so: attribute highp vec2 tCoord;
      02-08 12:21:17.843  1498  1519 W libtestquick.so:
      W libtestquick.so: varying highp vec2 sampleCoord;
      02-08 12:21:17.843  1498  1519 W libtestquick.so:
      W libtestquick.so: attribute highp float _qt_order;
      W libtestquick.so: uniform highp float _qt_zRange;
      W libtestquick.so: void main()
      W libtestquick.so: {
      W libtestquick.so:      sampleCoord = tCoord * textureScale;
      W libtestquick.so:      gl_Position = matrix * vCoord;
      W libtestquick.so:     gl_Position.z = (gl_Position.z * _qt_zRange + _qt_order) * gl_Position.w;
      W libtestquick.so: }
      W libtestquick.so: ***
      W libtestquick.so: (null):0 ((null)): QOpenGLShader::compile(Fragment): ERROR: Valid GLSL but not GLSL ES
      W libtestquick.so: (null):0 ((null)): *** Problematic Fragment shader source code ***
      W libtestquick.so: #define lowp
      W libtestquick.so: #define mediump
      W libtestquick.so: #define highp
      W libtestquick.so: #line 1
      W libtestquick.so: varying highp vec2 sampleCoord;
      02-08 12:21:17.845  1498  1519 W libtestquick.so:
      W libtestquick.so: uniform mediump sampler2D _qt_texture;
      W libtestquick.so: uniform lowp vec4 color;
      W libtestquick.so: uniform mediump float alphaMin;
      W libtestquick.so: uniform mediump float alphaMax;
      02-08 12:21:17.845  1498  1519 W libtestquick.so:
      W libtestquick.so: void main()
      W libtestquick.so: {
      W libtestquick.so:     gl_FragColor = color * smoothstep(alphaMin,
      W libtestquick.so:                                       alphaMax,
      W libtestquick.so:                                       texture2D(_qt_texture, sampleCoord).a);
      W libtestquick.so: }
      W libtestquick.so: ***
      W libtestquick.so: (null):0 ((null)): shader compilation failed:
      W libtestquick.so: ""
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(matrix): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(textureScale): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(color): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(alphaMin): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(alphaMax): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShader::compile(Vertex): ERROR: Valid GLSL but not GLSL ES
      W libtestquick.so: (null):0 ((null)): *** Problematic Vertex shader source code ***
      W libtestquick.so: #define lowp
      W libtestquick.so: #define mediump
      W libtestquick.so: #define highp
      W libtestquick.so: #line 1
      W libtestquick.so: attribute highp vec4 vertexCoord;
      W libtestquick.so: attribute highp vec4 vertexColor;
      02-08 12:21:17.905  1498  1519 W libtestquick.so:
      W libtestquick.so: uniform highp mat4 matrix;
      W libtestquick.so: uniform highp float opacity;
      02-08 12:21:17.905  1498  1519 W libtestquick.so:
      W libtestquick.so: varying lowp vec4 color;
      02-08 12:21:17.905  1498  1519 W libtestquick.so:
      W libtestquick.so: attribute highp float _qt_order;
      W libtestquick.so: uniform highp float _qt_zRange;
      W libtestquick.so: void main()
      W libtestquick.so: {
      W libtestquick.so:     gl_Position = matrix * vertexCoord;
      W libtestquick.so:     color = vertexColor * opacity;
      W libtestquick.so:     gl_Position.z = (gl_Position.z * _qt_zRange + _qt_order) * gl_Position.w;
      W libtestquick.so: }
      W libtestquick.so: ***
      W libtestquick.so: (null):0 ((null)): QOpenGLShader::compile(Fragment): ERROR: Valid GLSL but not GLSL ES
      W libtestquick.so: (null):0 ((null)): *** Problematic Fragment shader source code ***
      W libtestquick.so: #define lowp
      W libtestquick.so: #define mediump
      W libtestquick.so: #define highp
      W libtestquick.so: #line 1
      W libtestquick.so: varying lowp vec4 color;
      02-08 12:21:17.918  1498  1519 W libtestquick.so:
      W libtestquick.so: void main()
      W libtestquick.so: {
      W libtestquick.so:     gl_FragColor = color;
      W libtestquick.so: }
      W libtestquick.so: ***
      W libtestquick.so: (null):0 ((null)): shader compilation failed:
      W libtestquick.so: ""
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(matrix): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(opacity): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShader::compile(Vertex): ERROR: Valid GLSL but not GLSL ES
      W libtestquick.so: (null):0 ((null)): *** Problematic Vertex shader source code ***
      W libtestquick.so: #define lowp
      W libtestquick.so: #define mediump
      W libtestquick.so: #define highp
      W libtestquick.so: #line 1
      W libtestquick.so: uniform highp mat4 matrix;
      W libtestquick.so: uniform highp vec2 textureScale;
      02-08 12:21:17.923  1498  1519 W libtestquick.so:
      W libtestquick.so: attribute highp vec4 vCoord;
      W libtestquick.so: attribute highp vec2 tCoord;
      02-08 12:21:17.923  1498  1519 W libtestquick.so:
      W libtestquick.so: varying highp vec2 sampleCoord;
      02-08 12:21:17.923  1498  1519 W libtestquick.so:
      W libtestquick.so: attribute highp float _qt_order;
      W libtestquick.so: uniform highp float _qt_zRange;
      W libtestquick.so: void main()
      W libtestquick.so: {
      W libtestquick.so:      sampleCoord = tCoord * textureScale;
      W libtestquick.so:      gl_Position = matrix * vCoord;
      W libtestquick.so:     gl_Position.z = (gl_Position.z * _qt_zRange + _qt_order) * gl_Position.w;
      W libtestquick.so: }
      W libtestquick.so: ***
      W libtestquick.so: (null):0 ((null)): QOpenGLShader::compile(Fragment): ERROR: Valid GLSL but not GLSL ES
      W libtestquick.so: (null):0 ((null)): *** Problematic Fragment shader source code ***
      W libtestquick.so: #define lowp
      W libtestquick.so: #define mediump
      W libtestquick.so: #define highp
      W libtestquick.so: #line 1
      W libtestquick.so: varying highp vec2 sampleCoord;
      02-08 12:21:17.927  1498  1519 W libtestquick.so:
      W libtestquick.so: uniform mediump sampler2D _qt_texture;
      W libtestquick.so: uniform lowp vec4 color;
      W libtestquick.so: uniform mediump float alphaMin;
      W libtestquick.so: uniform mediump float alphaMax;
      02-08 12:21:17.927  1498  1519 W libtestquick.so:
      W libtestquick.so: void main()
      W libtestquick.so: {
      W libtestquick.so:     gl_FragColor = color * smoothstep(alphaMin,
      W libtestquick.so:                                       alphaMax,
      W libtestquick.so:                                       texture2D(_qt_texture, sampleCoord).a);
      W libtestquick.so: }
      W libtestquick.so: ***
      W libtestquick.so: (null):0 ((null)): shader compilation failed:
      W libtestquick.so: ""
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(matrix): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(textureScale): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(color): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(alphaMin): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(alphaMax): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShader::compile(Vertex): ERROR: Valid GLSL but not GLSL ES
      W libtestquick.so: (null):0 ((null)): *** Problematic Vertex shader source code ***
      W libtestquick.so: #define lowp
      W libtestquick.so: #define mediump
      W libtestquick.so: #define highp
      W libtestquick.so: #line 1
      W libtestquick.so: attribute highp vec4 vertexCoord;
      W libtestquick.so: attribute highp vec4 vertexColor;
      02-08 12:21:17.956  1498  1519 W libtestquick.so:
      W libtestquick.so: uniform highp mat4 matrix;
      W libtestquick.so: uniform highp float opacity;
      02-08 12:21:17.956  1498  1519 W libtestquick.so:
      W libtestquick.so: varying lowp vec4 color;
      02-08 12:21:17.956  1498  1519 W libtestquick.so:
      W libtestquick.so: attribute highp float _qt_order;
      W libtestquick.so: uniform highp float _qt_zRange;
      W libtestquick.so: void main()
      W libtestquick.so: {
      W libtestquick.so:     gl_Position = matrix * vertexCoord;
      W libtestquick.so:     color = vertexColor * opacity;
      W libtestquick.so:     gl_Position.z = (gl_Position.z * _qt_zRange + _qt_order) * gl_Position.w;
      W libtestquick.so: }
      W libtestquick.so: ***
      W libtestquick.so: (null):0 ((null)): QOpenGLShader::compile(Fragment): ERROR: Valid GLSL but not GLSL ES
      W libtestquick.so: (null):0 ((null)): *** Problematic Fragment shader source code ***
      W libtestquick.so: #define lowp
      W libtestquick.so: #define mediump
      W libtestquick.so: #define highp
      W libtestquick.so: #line 1
      W libtestquick.so: varying lowp vec4 color;
      02-08 12:21:17.959  1498  1519 W libtestquick.so:
      W libtestquick.so: void main()
      W libtestquick.so: {
      W libtestquick.so:     gl_FragColor = color;
      W libtestquick.so: }
      W libtestquick.so: ***
      W libtestquick.so: (null):0 ((null)): shader compilation failed:
      W libtestquick.so: ""
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(matrix): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(opacity): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShader::compile(Vertex): ERROR: Valid GLSL but not GLSL ES
      W libtestquick.so: (null):0 ((null)): *** Problematic Vertex shader source code ***
      W libtestquick.so: #define lowp
      W libtestquick.so: #define mediump
      W libtestquick.so: #define highp
      W libtestquick.so: #line 1
      W libtestquick.so: uniform highp mat4 matrix;
      W libtestquick.so: uniform highp vec2 textureScale;
      02-08 12:21:17.964  1498  1519 W libtestquick.so:
      W libtestquick.so: attribute highp vec4 vCoord;
      W libtestquick.so: attribute highp vec2 tCoord;
      02-08 12:21:17.964  1498  1519 W libtestquick.so:
      W libtestquick.so: varying highp vec2 sampleCoord;
      02-08 12:21:17.964  1498  1519 W libtestquick.so:
      W libtestquick.so: attribute highp float _qt_order;
      W libtestquick.so: uniform highp float _qt_zRange;
      W libtestquick.so: void main()
      W libtestquick.so: {
      W libtestquick.so:      sampleCoord = tCoord * textureScale;
      W libtestquick.so:      gl_Position = matrix * vCoord;
      W libtestquick.so:     gl_Position.z = (gl_Position.z * _qt_zRange + _qt_order) * gl_Position.w;
      W libtestquick.so: }
      W libtestquick.so: ***
      W libtestquick.so: (null):0 ((null)): QOpenGLShader::compile(Fragment): ERROR: Valid GLSL but not GLSL ES
      W libtestquick.so: (null):0 ((null)): *** Problematic Fragment shader source code ***
      W libtestquick.so: #define lowp
      W libtestquick.so: #define mediump
      W libtestquick.so: #define highp
      W libtestquick.so: #line 1
      W libtestquick.so: varying highp vec2 sampleCoord;
      02-08 12:21:17.967  1498  1519 W libtestquick.so:
      W libtestquick.so: uniform mediump sampler2D _qt_texture;
      W libtestquick.so: uniform lowp vec4 color;
      W libtestquick.so: uniform mediump float alphaMin;
      W libtestquick.so: uniform mediump float alphaMax;
      02-08 12:21:17.967  1498  1519 W libtestquick.so:
      W libtestquick.so: void main()
      W libtestquick.so: {
      W libtestquick.so:     gl_FragColor = color * smoothstep(alphaMin,
      W libtestquick.so:                                       alphaMax,
      W libtestquick.so:                                       texture2D(_qt_texture, sampleCoord).a);
      W libtestquick.so: }
      W libtestquick.so: ***
      W libtestquick.so: (null):0 ((null)): shader compilation failed:
      W libtestquick.so: ""
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(matrix): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(textureScale): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(color): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(alphaMin): shader program is not linked
      W libtestquick.so: (null):0 ((null)): QOpenGLShaderProgram::uniformLocation(alphaMax): shader program is not linked
      
      
      "org.qtproject.example.testquick" terminated.
      

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              esabraha Eskil Abrahamsen Blomfeldt
              Reporter:
              andysh Andy Shaw
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes