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

Crash in QQmlBinding::getPropertyData with null propertyCache

    XMLWordPrintable

Details

    Description

      We have the following code in plasma:

       

      • we have an engine  where a qobject is exposed via an attached property
      • we create a new engine with that exposes that same QObject as a context property
      • we delete the second engine, causing the (shared) QQmlInfo:propertyCache to be set to nullptr [1]
      • when the first engine updates a binding on that object, we crash accessing the null propertyCache.

       

      [1] Introduced here https://codereview.qt-project.org/#/c/192037/3/src/qml/jsruntime/qv4qobjectwrapper.cpp

       

      This happens with latest 5.9 branch.

      A simplified demo is attached.

       

       

      Attachments

        For Gerrit Dashboard: QTBUG-61681
        # Subject Branch Project Status CR V

        Activity

          People

            davidedmundson David Edmundson
            davidedmundson David Edmundson
            Votes:
            4 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes