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

QtWebEngineCore::initialise creates an OpenGL Context too early

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.5.1, 5.6.0
    • Fix Version/s: 5.6.1
    • Component/s: WebEngine
    • Labels:
      None
    • Commits:
      78ff3973c8745d8e12a0e71bd37dea47be954741

      Description

      QtWebEngineCore::initialise creates a OpenGL Context. This creates two problems:
      1) The context maybe will not be uses as no WebEngine component is instantiate at all.
      2) Headless applications, that uses QCoreApplications, will crash.

      The second case can happen when an headless app loads an library that uses QtWebEngine.

      Moving the initialisation of the context to when it is really required will solve case 2 and do a better use of resources (case 1)

        Attachments

        1. console.pro
          0.1 kB
        2. main.cpp
          0.1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            jbornema Joerg Bornemann
            Reporter:
            dasloop David
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes