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

Accessing a var property of a QObject with QML-ownership which has been scheduled for deletion causes crash

    XMLWordPrintable

Details

    • 25793276e52240e4dfad297dc5b9eb282ed3f5e6

    Description

      When a QML-owned wrapped-QObject is collected by the gc, the QObject itself is deleteLater()'d, and the v8data associated with it is destroyed. If a client attempts to access a property of that QObject ptr prior to the DeferredDeletion event being handled (and thus the QObject being deleted), if that property happens to be a var property, a crash will occur.

      Attachments

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

        Activity

          People

            chriadam Christopher Adams (closed Nokia identity) (Inactive)
            chriadam Christopher Adams (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes