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

REG->6.7: QWebEngineView Crashes with OpenGL Rendering and QtDesigner Crashes with QWebEngineView

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 6.7
    • WebEngine
    • None
    • PySide6 6.7
      Windows 11 (PC) Python 3.11.6,
      Windows 10 (Laptop) Python 3.10.6
    • Windows
    • 7fac1a489 (118-based)

    Description

      Steps to reproduce:

      • set QSG_RHI_BACKEND=gl
      • Run C++ simple browser example
      • Observe crash(es)

      For Qt Designer, a crash occurs when dropping a QWebEngineView onto the form
      since it forces GL ("Qt Designer: Enable the QWebEngineView, QQuickWidget plugins on Windows" qttools/89fef3e0671d6ff270e9b400f0d8696a46994453 https://codereview.qt-project.org/c/qt/qttools/+/392687 ).

      Original report (Qt for Python)

      In PySide6 version 6.7, utilizing QWebEngineView with OpenGL rendering (os.environ['QSG_RHI_BACKEND'] = 'opengl') leads to an immediate program termination, exiting with error code 1. This issue does not occur in version (<=6.6.3).

      Additionally, Qt Designer in PySide6 6.7 crashes when attempting to load UI files that contain the QWebEngineView component or when interacting with the component option of QWebEngineView within the designer.

      I tried to reproduce the problem on WSL Ubuntu and it didn't happen.

      Reproduce:
      Here is the Python code snippet to reproduce the issue:

      import os
      import sys
      from PySide6.QtWidgets import QApplication
      from PySide6.QtWebEngineWidgets import QWebEngineView
      
      if __name__ == '__main__':
          os.environ['QSG_RHI_BACKEND'] = 'opengl'
          app = QApplication()
          view = QWebEngineView()
          view.setUrl("https://www.youtube.com/")
          view.show()
          sys.exit(app.exec()) 

       

      Attachments

        1. CMakeLists.txt
          0.4 kB
        2. main.cpp
          0.3 kB
        3. pyside2691_stack.txt
          62 kB

        Issue Links

          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
              eefkenc KenC Neko
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes