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

Crash when calling function from onDestruction

    XMLWordPrintable

Details

    Description

      When using a QtObject inside an item, and then we call a function in the Component.onDestruction handler of that item, we get a crash. This happens because the QDeclarativeContextData engine has been invalidated before reaching QDeclarativeExpressionPrivate::evalFunction.

      The sample code zip also contains a patch, which basically consists on emitting the destruction signal before invalidating children contexts in QDeclarativeContextData::invalidate.

      Attachments

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

        Activity

          People

            glwatson Glenn Watson
            dedietri Gabriel de Dietrich (drgvond)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes