Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Discovered a strange bug in QML
Forum Updated to NodeBB v4.3 + New Features

Discovered a strange bug in QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 2 Posters 101 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pleafles
    wrote 22 days ago last edited by Pleafles 5 Dec 2025, 05:19
    #1

    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:QQ图片20250512124604.jpg
    Output:QQ图片20250512124610.jpg

    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.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Axel Spoerl
      Moderators
      wrote 21 days ago last edited by
      #2

      Please try a more recent Qt version. 5.15 is EOL. I can’t reproduce this on 6.5.

      Software Engineer
      The Qt Company, Oslo

      1 Reply Last reply
      0

      2/2

      13 May 2025, 14:04

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved