Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.7
-
None
-
9d8e78a2f (dev), 5d53ea984 (6.7), c24716c7f (6.6)
Description
When applying https://codereview.qt-project.org/c/qt/qtdeclarative/+/521753/11/src/qmltest/SignalSpy.qml#74
and afterwards running
tst_basic -input qtdeclarative/tests/auto/quickcontrols/controls/data/tst_abstractbutton.qml AbstractButton::test_mnemonic
a warning is printed:
> TypeError: Cannot read property 'qtest_disconnectFromTarget' of null
When running with QML_DISABLE_DISK_CACHE=1, the warning disappears, which is the expected outcome given that the if condition already checks that spy is not null.
I suspect that we might assume that the id is never null, and thus optimize the check away?
Attachments
For Gerrit Dashboard: QTBUG-121022 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
531427,3 | QtQml: Do not call signal handlers on half-deleted objects | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
531428,6 | QtQml: Extract context object from QML context on connect() | dev | qt/qtdeclarative | Status: DEFERRED | +1 | 0 |
531714,2 | QtQml: Do not call signal handlers on half-deleted objects | 6.7 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
531956,2 | QtQml: Do not call signal handlers on half-deleted objects | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |