-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.6
-
None
-
92c220812 (dev), 6eeec9186 (6.5.0), 2af9e2f77 (6.5), 2d7fe23b4 (dev), 3f8a4345c (6.5)
Failing output:
08:23:48: Starting /Users/mitch/dev/qt-dev-debug-non-fw/qtdeclarative/tests/auto/quickcontrols/snippets/tst_snippets verify:qtquickcontrols-material-attributes...
Detected system locale encoding (US-ASCII, locale "C") is not UTF-8.
Qt shall use a UTF-8 locale ("UTF-8") instead. If this causes problems,
reconfigure your locale. See the locale(1) manual for more information.
********* Start testing of tst_Snippets *********
Config: Using QtTest library 6.6.0, Qt 6.6.0 (arm64-little_endian-lp64 shared (dynamic) debug build; by Apple LLVM 13.1.6 (clang-1316.0.21.2.5)), macos 12.4
QINFO : tst_Snippets::initTestCase() Snippets are taken from /Users/mitch/dev/qt-dev/qtdeclarative/tests/auto/quickcontrols/snippets/../../../../src/quickcontrols/doc/snippets
PASS : tst_Snippets::initTestCase()
QWARN : tst_Snippets::verify(qtquickcontrols-material-attributes) qt.qpa.fonts: Populating font family aliases took 159 ms. Replace uses of missing font family "Roboto" with one that exists to avoid this cost.
QWARN : tst_Snippets::verify(qtquickcontrols-material-attributes) QQmlComponent: Component is not ready
FAIL! : tst_Snippets::verify(qtquickcontrols-material-attributes) '!root.isNull()' returned FALSE. (file:///Users/mitch/dev/qt-dev/qtdeclarative/tests/auto/quickcontrols/snippets/../../../../src/quickcontrols/doc/snippets/qtquickcontrols-material-attributes.qml:69 Cannot assign to non-existent property "endY"
)
Loc: [/Users/mitch/dev/qt-dev/qtdeclarative/tests/auto/quickcontrols/snippets/tst_snippets.cpp(75)]
PASS : tst_Snippets::cleanupTestCase()
Totals: 2 passed, 1 failed, 0 skipped, 0 blacklisted, 726ms
********* Finished testing of tst_Snippets *********
08:23:50: /Users/mitch/dev/qt-dev-debug-non-fw/qtdeclarative/tests/auto/quickcontrols/snippets/tst_snippets exited with code 1
However, when running with QML_DISABLE_DISK_CACHE=1, it passes.
The code in question:
Page {
anchors.fill: parent
anchors.margins: 40
header: ToolBar {
Label {
text: "Material"
anchors.centerIn: parent
}
}
TextField {
id: textField
text: "TextField"
anchors.centerIn: parent
Component.onCompleted: forceActiveFocus()
}
component Line: Shape {
// Account for 1-pixel-wide lines.
width: Math.max(1, endX - startX)
height: Math.max(1, endY - startY)
layer.enabled: true
layer.samples: 4
property alias startX: shapePath.startX
property alias startY: shapePath.startY
property alias endX: pathLine.x
property alias endY: pathLine.y
ShapePath {
id: shapePath
strokeWidth: 1
strokeColor: "#444"
PathLine {
id: pathLine
}
}
}
}
Label {
id: primaryLabel
x: 40
y: 3
text: "Primary"
}
Line {
id: primaryLine
x: primaryLabel.x + primaryLabel.width / 2
y: primaryLabel.y + primaryLabel.height
startX: 0.5
startY: 0
endX: 0.5
endY: 40
}
endY is an alias to pathLine.y, which is a valid property:
- is duplicated by
-
QTBUG-112428 Test tst_Snippets::verify flaky since 9-Mar
-
- Closed
-
- relates to
-
QTBUG-111766 qml issues in Effect Maker
-
- Closed
-
| For Gerrit Dashboard: QTBUG-111857 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 465509,9 | QML: Insert aliases in inline components when loading from disk cache | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 465664,2 | tst_snippets: move Line inline component out of Page | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 465895,2 | tst_snippets: move Line inline component out of Page | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 465896,2 | tst_snippets: move Line inline component out of Page | 6.5.0 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
| 466786,2 | QML: Insert aliases in inline components when loading from disk cache | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |