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

QOpenGLWidget occasionally crashes when displayed in a QTabWidget

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.5.0
    • 5.4.0
    • GUI: OpenGL
    • None
    • Windows 7 x64
      Qt v5.4.0 using ANGLE (Qt::AA_UseOpenGLES == true)
      win32-msvc2012

    Description

      When displaying a widget derived from QOpenGLWidget inside a tab of
      QTabWidget, the application occasionally crashes when showing the tab
      containing the QOpenGLWidget's child. The application freezes the moment
      the corresponding tab bar is clicked.

      Here is a summary of pre-conditions of the described behaviour:

      1.) The QOpenGLWidget uses QPainter::beginNativePainting.
      2.) The QOpenGLWidget uses QStaticText with aggressive caching.
      3.) The QOpenGLWidget is inserted into the QTabWidget but not initially
      shown.

      Attached you will find a stack trace taken while a crash occured.

      Attachments

        1. p3d_test_2_trace.txt
          5 kB
        2. p3d_test_2.zip
          34 kB
        3. p3d_test.zip
          34 kB
        4. QOpenGLWidget_trace.txt
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            omarhawk Carsten Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes