Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.9.0 Beta1
-
None
-
7d510cfc0 (dev), 816b43c18 (6.9)
Description
Please click the button. After one second, this crashes on 6.9.0 beta1. Does not crash on 6.8.1.
I suppose qmlsc only kicks in with 6.9.0 here?
Workaround is to delay the destroy call via Qt.callLater.
import QtQuick import QtQuick.Controls Window { id: root width: 640 height: 480 visible: true title: qsTr("Hello World") Button { text: "Click me" onClicked: singleShot.createObject(root) } Component { id: singleShot Timer { id: lockTimer interval: 1000 running: true onTriggered: lockTimer.destroy() } } }
Attachments
Issue Links
- relates to
-
QTBUG-132499 assertion failure in callQObjectMethodAsVariant when using qml cache
-
- Closed
-
For Gerrit Dashboard: QTBUG-132602 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
625794,3 | QtQml: Fix AOT compiled context for destroy() and toString() methods | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
627623,2 | QtQml: Fix AOT compiled context for destroy() and toString() methods | 6.9 | qt/qtdeclarative | Status: MERGED | +2 | 0 |