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

[REG 5.3.2->5.4] Windows: opengl assert when closing QML main window when QML windows are aggregated in a QtObject

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.4.0 RC
    • 5.4.0 Beta
    • GUI: OpenGL
    • None
    • PC + Windows 7 / Desktop GL or Dynamic GL-both, 32 bits + OpenGL 3.1 video card
    • b5fb59fc5fa8d180daa1cb95f12238657a53bbc2 (qtdeclarative/5.4.0, 10.11.2014, 5.4 RC)

    Description

      Steps:

      • Compile the attached project.
      • Run the executable and close the window
      • Assert appears with
        ASSERT: "context" in file opengl\qopenglfunctions.cpp, line 209
        Invalid parameter passed to C runtime function.
        Invalid parameter passed to C runtime function.
        

      I have attached the backtrace and opengl extensions.

      Notes:

      • It does not happen with Qt 5.3.2.
      • The bug disappears when removing in MainWindow.qml the code
        ConfigurationTab {}
        
      • The bug disappears when removing in main.qml the code
            property var splash: Window {
                visible: false
                modality: Qt.ApplicationModal
                flags: Qt.SplashScreen
                width: 300
                height: 200
                color: "grey"
            }
        
      • the bug disappears when changing QApplication for QGuiApplication

      QML code looks like:

      ....
      QtObject {
          id : mainQtObject
          property var window: MainWindow {
              visible: true
          }
          property var splash: Window {
              visible: false
      ...
          }
      }
      

      Attachments

        1. apptestmodal.zip
          3 kB
        2. opengl_extensions.txt
          5 kB
        3. qtbug4221_purify.txt
          72 kB
        4. qtbug42213_logs.txt
          8 kB
        5. qtbug42213_purify.tasks
          61 kB
        6. qtbug42213_qtbase_diag.diff
          3 kB
        7. qtbug42213_qtbase_diag53.diff
          2 kB
        8. qtbug42213_qtdeclarative_diag.diff
          5 kB
        9. qtbug42213_qtdeclarative_diag53.diff
          5 kB
        10. qtbug42213_stack.tasks
          1 kB
        11. qtbug42213_stack.txt
          17 kB
        12. qtbug42213.zip
          3 kB
        13. thread1_bt.txt
          3 kB

        Issue Links

          For Gerrit Dashboard: QTBUG-42213
          # Subject Branch Project Status CR V

          Activity

            People

              lagocs Laszlo Agocs
              agroyer Anthony Groyer
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes