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

Windows/ANGLE:, QML/QtQuick2 app silently fails and end up with empty windows

    XMLWordPrintable

Details

    Description

      I have been trying to deploy a QML/QtQuick2 app on Windows for a few weeks now. A lot of users come back with issues because when starting the app the frame window appears but the window is empty. After tracking down the issues it seems the problem comes from a graphic card driver not up-to-date leading ANGLE to not properly initialize and nothing to appear.

      When looking in the log I see a lot of warnings indicating that something is wrong and known by Qt. I think these errors should be caught and returned/transmitted to the user. This way it would be possible to catch the issue on startup and display proper help info/messages to users.

      Example of warnings:

      Warning: static QWindowsEGLStaticContext* QWindowsEGLStaticContext::create(): Could not initialize egl display: error 12289
      
      Warning: QOpenGLFunctions created with non-current context 
      Warning: QSGMaterialShader: Shader compilation failed:
      Warning: "" 
      Warning: QOpenGLShaderProgram::uniformLocation( qt_Matrix ): shader program is not linked 
      Warning: QOpenGLFunctions created with non-current context 
      Warning: QSGMaterialShader: Shader compilation failed:
      Warning: "" 
      Warning: QOpenGLShaderProgram::uniformLocation( qt_Matrix ): shader program is not linked 
      Warning: QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked 
      Warning: QOpenGLFunctions created with non-current context 
      Warning: QSGMaterialShader: Shader compilation failed:
      Warning: "" 
      Warning: QOpenGLShaderProgram::uniformLocation( pixelSize ): shader program is not linked 
      Warning: QOpenGLShaderProgram::uniformLocation( qt_Matrix ): shader program is not linked 
      Warning: QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked 
      Warning: QOpenGLFunctions created with non-current context 
      Warning: QSGMaterialShader: Shader compilation failed:
      Warning: "" 
      Warning: QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked 
      Warning: QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked 
      Warning: QOpenGLShaderProgram::uniformLocation( pixelSize ): shader program is not linked 
      Warning: QOpenGLFunctions created with non-current context 
      Warning: QSGMaterialShader: Shader compilation failed:
      Warning: "" 
      Warning: QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked 
      Warning: QOpenGLShaderProgram::uniformLocation( textureScale ): shader program is not linked 
      Warning: QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked 
      Warning: QOpenGLShaderProgram::uniformLocation( alphaMin ): shader program is not linked 
      Warning: QOpenGLShaderProgram::uniformLocation( alphaMax ): shader program is not linked 
      

      Attachments

        Issue Links

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

          Activity

            People

              lagocs Laszlo Agocs
              koopajah Remi J.
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes