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

WebAssembly apps crash when exiting modal dialogs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.5.3, 6.6
    • 6.5.2
    • Quick: Widget
    • None
    • WebAssembly

    Description

      To reproduce:

      run the following code. Click anywhere outside the pink box to exit the dialog.

       

       

      import QtQuick
      import QtQuick.Templates as T
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
          T.Dialog {
              id: dialog
              anchors.centerIn: parent
              width: 300
              height: 300
              modal: true
              background: Rectangle {
                  width: 300
                  height: 300
                  color: "pink"
              }
              exit: Transition {
                  NumberAnimation { property: "opacity"; from: 1.0; to: 0.0; duration: 100 }
              }
              Component.onCompleted: open()
          }
      }
      

       

      If you comment out the `modal: true` part, or remove the exit opacity animation, it doesn't crash.

      I can reproduce this crash on my ubuntu 20.04 system, for both wasm single threaded and multithreaded builds. Does not crash on desktop builds.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            piwierci Piotr Wierciński
            daniel_mcinnes Daniel McInnes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes