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

wasm: Changing QTimer interval in multithreaded application breaks the timer

    XMLWordPrintable

Details

    • WebAssembly
    • df4be70740 (qt/qtbase/dev) e57b49f346 (qt/qtbase/6.4) df4be70740 (qt/tqtc-qtbase/dev) e57b49f346 (qt/tqtc-qtbase/6.4) f19f512d5e (qt/qtbase/6.4.0)

    Description

      Changing timer interval can sometimes break the timer. In attached example you should see timer with 1000ms interval first, then it should change to 100ms interval (every 5s). But it sometimes after this change, it stops ticking.

      It seems to work if the timer is instead first stopped and then started again with the new interval. Also changing interval of timers in main thread (in multithreaded build) works fine. Maybe it did work a little better, but same issues started to happen.

      Attachments

        1. qtbug106153.zip
          3 kB
          Joni Poikelin

        Issue Links

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

          Activity

            People

              mikolaj.boc Mikołaj Boc (Inactive)
              poikelin Joni Poikelin
              Votes:
              10 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes