Shader compilation failed
-
Qt Champions 2016wrote on 13 Aug 2016, 03:33 last edited by A Former User 10 Sept 2016, 13:40
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/151202298Since 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/151401382Thx.
-
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.