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

Discovered a serious bug in QML

    XMLWordPrintable

Details

    • Windows
    • Windows

    Description

      Environment: Windows 10+Msys2+Qt5.15.10-5.15.16 (MinGW).
      Please refer to the attachment for the code and debugging.
      Trigger situation: Appears after a fixed number of runs.
      Explanation: This issue occurs in Qt5.15.11-5.15.16, but was not found in the version 5.15.2(official) and 5.15.10(MSYS2).
      Code:
      Output:

      tpromise is a Promise object in JavaScript, while game, d, and $pymo are all regular JavaScript objects.

      Actually, after my step-by-step debugging, I found that the code(game.d.$pymo.wait_promise = tpromise placed the tpromise object in game.d.$pymo.background, which is a serious error. If I run 'game.d.$pymo.wait_promise = tpromise;' again, the game.d.$pymo.wait_promise value will be correct.

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            leamus 深林 孤鹰
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes