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

SCXML: Implicit "Initial" state is not set correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.12, 6.2.7, 6.4.2, 6.5.0 Beta1
    • XML: SCXML
    • None

    Description

      Steps to reproduce

      1. Build and run the attached project.
      2. Click "Transition" 2x to trigger state changes.

       

      Expected sequence of states
      "State_A1|State_A2" → "Final_1|Final_2" → "State_B"

       

      Actual sequence of states
      "Final_1|State_A2" → "Final_1|Final_2" → "State_B"

       

      Observations

      • In "State_P1", although the Qt Creator SCXML editor shows that "State_A1" is the initial state, the qscxmlc compiler made "Final_1" the initial state instead.
      • This seems to be related to the XML document structure: "Final_1" is written before "State_A1", but "State_A2" is written before "Final_2".

       

      Workaround
      Explicitly mark all "Initial" states

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ulherman Ulf Hermann
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes