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

Use QScxmlStateMachine will cause memory leak.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.10.0
    • XML: SCXML
    • None

    Description

      I found there's no way to control the lifetime of the QScxmlStateMachine object. I'm trying to use QScxmlStateMachine for my widgets. Then I found that the memories occupied by the state machine will not be freed after my scxml document enters final state and widget got destroyed.
      Then I create a very simple scxml document: An init state with an eventless transition to the final state.
      And call the fromFile method in a loop. After loop finished, you will find that memory will not be free.

      Maybe I should delete that state machine manually, but when I searched the documents, I can't find any useful information.

      Attachments

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

        Activity

          People

            jkobus Jarek Kobus
            hanrai911 Lei Fan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes