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

QtWebEngineCore::initialise creates an OpenGL Context too early

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.6.1
    • 5.5.1, 5.6.0
    • WebEngine
    • None
    • 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
        For Gerrit Dashboard: QTBUG-52539
        # Subject Branch Project Status CR V

        Activity

          People

            jbornema Joerg Bornemann
            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