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

WebEngine shows only black or transparent window

    XMLWordPrintable

Details

    Description

      Black or transparent browser window was reproduced on AMD Radeon based GPU when using OpenGL 4.0.

      Output from application with --log-level=1 (error 0x502 seems to be GL_INVALID_OPERATION):

      ARB::createContext: wglCreateContextAttribsARB() failed (GL error code: 0x502)
      for format: QSurfaceFormat(version 4.0, options QFlags(0x4), depthBufferSize
      24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize
      -1, stencilBufferSize 8, samples -1, swapBehavior 0, swapInterval 0, profile
      2), shared context: 0x10002 ()
      GDI::createContext: wglShareLists() failed. ()
      [0818/093140:ERROR:scoped_ole_initializer.cc(20)] Multiple OleInitialize() calls for thread 7812
      [0818/093145:ERROR:process_win.cc(135)] Unable to terminate process: Access is denied. (0x5)
      composeAndFlush: makeCurrent() failed
      composeAndFlush: makeCurrent() failed
      composeAndFlush: makeCurrent() failed
      composeAndFlush: makeCurrent() failed
      composeAndFlush: makeCurrent() failed
      composeAndFlush: makeCurrent() failed
      composeAndFlush: makeCurrent() failed
      composeAndFlush: makeCurrent() failed
      [0818/093242:ERROR:process_win.cc(135)] Unable to terminate process: Access is denied. (0x5)
      

      This was used to set up OpenGL 4.0:

      QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts);
      QSurfaceFormat format;
      format.setVersion(4, 0);
      format.setProfile(QSurfaceFormat::CompatibilityProfile);
      format.setDepthBufferSize(24);
      format.setStencilBufferSize(8);
      format.setSwapInterval(0);
      format.setOption(QSurfaceFormat::DeprecatedFunctions, true);
      QSurfaceFormat::setDefaultFormat(format);
      

      Attachments

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

        Activity

          People

            qt_webengine_team Qt WebEngine Team
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes