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

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

XMLWordPrintable

    • All
    • e868c6fa904a2b31b253c07739564fc9e7f1b76c (qt/qtscxml/dev) 0ea35a50f02c05a8122ce5b45602698c70efcf79 (qt/qtscxml/6.1)

      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.

        1. QScxmlHistoryCrashTest.tar.gz
          2 kB
          Mathieu-Andre Chiasson
        2. image-2019-05-28-21-17-47-670.png
          30 kB
          Mathieu-Andre Chiasson
        3. screenshot-1.png
          25 kB
          Mathieu-Andre Chiasson
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes