-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.8.2
-
None
-
-
5
-
38e94ffcb (dev), ec3509f55 (6.10), 324d359ac (6.9), e36269f70 (tqtc/lts-6.8), 0783a906d (tqtc/lts-6.5)
-
Foundation Sprint 135
With a specific setup calling QSortFilterProxyModel::setSourceModel will cause a crash with the following callstack:
With a spesific setup calling QSortFilterProxyModel::setSourceModel will cause a crash with the following callstack: 1 QtPrivate::QPropertyBindingData::d qpropertyprivate.h 308 0x7ffc107abef4 2 QtPrivate::QPropertyBindingData::binding qpropertyprivate.h 265 0x7ffc107a8fd4 3 QPropertyBindingDataPointer::binding qproperty_p.h 75 0x7ffc108f4a57 4 QPropertyBindingDataPointer::firstObserver qproperty_p.h 470 0x7ffc108f4ee9 5 QObjectCompatProperty<QAbstractProxyModelPrivate,QAbs .. qproperty_p.h 666 0x7ffc10f4d0da 6 QAbstractProxyModel::setSourceModel qabstractproxymodel.cpp 213 0x7ffc10f48305 7 QSortFilterProxyModel::setSourceModel qsortfilterproxymodel.cpp 2054 0x7ffc10f676ae 8 ProxyModel::toogleSource proxymodel.cpp 24 0x7ff661716513
Attached an example that can reproduces this.
Some notes:
In Mail.qml if "objectName: model.display" is removed the crash does not happen
In ProxyModel::toogleSource() if you clear sourceModel and filterFixedString before changing source the crash does not happen
For Gerrit Dashboard: QTBUG-138056 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
665651,3 | QObjectCompatProperty::notify(): fix binding data after reevaluation | dev | qt/qtbase | Status: MERGED | +2 | 0 |
666197,2 | QObjectCompatProperty::notify(): fix binding data after reevaluation | 6.10 | qt/qtbase | Status: MERGED | +2 | 0 |
666301,2 | QObjectCompatProperty::notify(): fix binding data after reevaluation | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
666337,2 | QObjectCompatProperty::notify(): fix binding data after reevaluation | tqtc/lts-6.8 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
666504,3 | QObjectCompatProperty::notify(): fix binding data after reevaluation | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |