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

WebAssembly apps crash when exiting modal dialogs

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes