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

QWebEngineView->render() throws nullptr exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.15
    • WebEngine
    • None
    • Windows 11 21H2, Windows 10, cmake version 3.22.22040401-MSVC_2, CLion 2022.1.3 (IDE), Visual Studio 2022 (IDE)
    • Windows

      Having a Qt 5.15.5 that was built for x86, Windows, QWebEngineView and QGraphicsScene (used for off-screen rendering)
      Rendering a QWebEngineView by render() method, and everything works-as-designed.
      But, in some undefined scenarios, it throws some nullpointer exception within QOpenGLFunctions::glReadPixels: a pixels is nullptr.
      I think that's may be a some strange bug that should be fixed, passing some screenshots of exception points
      Point first: calling QGraphicsScene render() method

       

      And then the point where exception happens

       

      There's a full traceback:

       

      And a proof that pixels pointer is nullptr

       

      An important note: the problem occurs not all the time, but maybe once in 35-40 minutes, for sure.

        1. image-2022-10-10-21-59-32-764.png
          424 kB
          continue
        2. image-2022-10-10-22-00-04-007.png
          424 kB
          continue
        3. image-2022-10-10-22-00-15-183.png
          315 kB
          continue
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            allan.jensen Allan Sandfeld Jensen
            northn Andrew Norton
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes