Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
Qt for MCUs 1.7, Qt for MCUs 1.9, Qt for MCUs 1.8
-
-
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.