Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.9.0
-
None
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 |
199786,2 | Rebuild QQmlData::propertyCache if deleted by another engine | 5.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
227124,3 | Rebuild QQmlData::propertyCache if deleted by another engine | 5.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |