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

QScxmlStateMachine crashes when transitioning to a previously never used history state.

    XMLWordPrintable

Details

    • All
    • 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

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

          Activity

            People

              tamasmartinec Tamas Martinec
              mchiasson Mathieu-Andre Chiasson
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes