Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.12.3
-
None
-
-
e868c6fa904a2b31b253c07739564fc9e7f1b76c (qt/qtscxml/dev) 0ea35a50f02c05a8122ce5b45602698c70efcf79 (qt/qtscxml/6.1)
Description
Given the following SCXML:
We were expecting calling 'toOn' to automatically go to the initial state 'Alpha' even when the history hasn't ever been set before. Instead, it crashed.
Work around is to design the state chart like so:
Which is a bit of a pain, especially when trying to explain the reason to your co-workers, but at least it works fine.
I've attached a little tester app that can reproduce the crash.
Attachments
Issue Links
- relates to
-
QTBUG-89845 Qt SCXML: Bug triaging/ fixing
- Closed
For Gerrit Dashboard: QTBUG-76091 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
340690,9 | Qt SCXML: Fix HistoryState crash | dev | qt/qtscxml | Status: MERGED | +2 | 0 |
340975,2 | Qt SCXML: Fix HistoryState crash | 6.1 | qt/qtscxml | Status: MERGED | +2 | 0 |