Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Shader compilation failed

Shader compilation failed

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 1.6k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • benlauB Offline
    benlauB Offline
    benlau
    Qt Champions 2016
    wrote on last edited by A Former User
    #1

    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.

    1 Reply Last reply
    0
    • benlauB Offline
      benlauB Offline
      benlau
      Qt Champions 2016
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved