Uploaded image for project: 'Qt for MCUs'
  1. Qt for MCUs
  2. QTMCU-49

Timer becomes unresponsive with queued events

    XMLWordPrintable

Details

    • Windows
    • Sprint 3.6/2021

    Description

      Timer becomes unresponsive with queued events when checking if the timer is not running and restarting it if it isn't.

      Way to reproduce:
      1. Build with Qt for MCUs version 1.9.0 desktop and run the attached example.
      2. Press buttons L or R and the text should change to "Hello World" within 1s.
      3. Press "Emit Burst"
      4. Press "Stop"

      The text does not change to "Hello World!" anymore. Pressing the buttons change the text to "LEFT" or "RIGHT" but never back to "Hello World!".

      This can be reproduced as well by pressing rapidly the "L" and "R" buttons in turns but it might be not that easy.

      Allowing the myTimer to restart by commenting out if(!myTimer.running) from "onPrintLeft" and "onPrintRight" signal handlers fixes the problem.

      Attachments

        1. TimerProblem.qml
          1 kB
        2. qtmcu49.zip
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kamil.bielarczyk Kamil Bielarczyk
            foxxx Tuukka Kettunen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes