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

QGLShader errors with "version required and missing"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.15.6
    • GUI: OpenGL
    • None
    • MAC-OS
    • macOS

    Description

      We were first using Qt5.12.7 and this error did not occur then. Now after moving to Qt5.15.6, We are seeing the below error. There is no major code change except fixing some deprecations.
      Error Logs

      2021-12-03 12:57:04.215255[...]Vertex shader for simpleShaderProg (MainVertexShader & PositionOnlyVertexShader) failed to compile
      2021-12-03 12:57:04.215364[...]QGLShader::compile(Fragment): ERROR: 0:1: '' :  #version required and missing.
      2021-12-03 12:57:04.215374[...]Fragment shader for simpleShaderProg (MainFragmentShader & ShockingPinkSrcFragmentShader) failed to compile
      2021-12-03 12:57:04.215756[...]QGLShader::link: "ERROR: One or more attached shaders not successfully compiled\n"
      2021-12-03 12:57:04.215782[...]Errors linking simple shader: ERROR: One or more attached shaders not successfully compiled
      2021-12-03 12:57:04.215911[...]QGLShader::compile(Vertex): ERROR: 0:1: '' :  #version required and missing.ERROR: 0:5: 'attribute' : syntax error: syntax error
      2021-12-03 12:57:04.215926[...]Vertex shader for blitShaderProg (MainWithTexCoordsVertexShader & UntransformedPositionVertexShader) failed to compile
      2021-12-03 12:57:04.216041[...]QGLShader::compile(Fragment): ERROR: 0:1: '' :  #version required and missing.ERROR: 0:11: 'varying' : syntax error: syntax error
      2021-12-03 12:57:04.216052[...]Fragment shader for blitShaderProg (MainFragmentShader & ImageSrcFragmentShader) failed to compile
      2021-12-03 12:57:04.216268[...]QGLShader::link: "ERROR: One or more attached shaders not successfully compiled\n"
      2021-12-03 12:57:04.244419[...]Errors linking blit shader: ERROR: One or more attached shaders not successfully compiled
      

      Attachments

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

        Activity

          People

            masoodkl masoodkl
            masoodkl masoodkl
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes