Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Shader compilation failed


  • Qt Champions 2016

    Hello,

    What was missed in an Ubuntu/Linux environment may cause "shader compilation failed"? Any method to debug shader problem?

    I have a QML library that use Travis as build server. It works well until few days ago. All test cases involving GUI complains "shader compilation failed" and "shader program is not linked". Then the test program crash finally.

    Part of the log:

    QWARN  : QuickAndroidTests::runExample() QOpenGLShader::compile(Vertex): failed
    QWARN  : QuickAndroidTests::runExample() QOpenGLShader::compile(Fragment): failed
    QWARN  : QuickAndroidTests::runExample() shader compilation failed: 
    ""
    QWARN  : QuickAndroidTests::runExample() QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
    QWARN  : QuickAndroidTests::runExample() QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked
    QWARN  : QuickAndroidTests::runExample() QOpenGLShader::compile(Vertex): failed
    QWARN  : QuickAndroidTests::runExample() QOpenGLShader::compile(Fragment): failed
    QWARN  : QuickAndroidTests::runExample() shader compilation failed:
    

    Full Log:
    https://travis-ci.org/benlau/quickandroid/builds/151202298

    Since I didn't modify the logic / configuration environment. I think there has something changed in travis build server. I have confirmed that xvfb and mesa are installed. Then I have tried to change the options of xvfb to enable OpenGL but the result is same.

    I have no idea what may cause this problem. Any advise for finding out the problem?

    Log with glxinfo
    https://travis-ci.org/benlau/quickandroid/builds/151401382

    Thx.


  • Qt Champions 2016

    After I added a doc to the repo, the problem was gone. Absolutely no idea what happen. May be travis has changed their environment again.


Log in to reply