Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.7.1, 5.9.0, 5.12.0 Beta 2
-
None
-
Debian GNU/Linux ppc64 (happens also on powerpc and s390x)
Description
We get this failure on big endian architectures (such as powerpc and s390x) when running the qmltest:
FAIL! : qmltest::item-grabber::test_endresult() 'verify()' returned FALSE. () Loc: [/«PKGBUILDDIR»/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml(47)]
Line 47 is:
verify(image.pixel(0, 0) === Qt.rgba(1, 0, 0, 1)); // Use verify because compare doesn't support colors (QTBUG-34878)
Adding some debug warnings shows this:
WARNING: qmltest::item-grabber::test_endresult_cache(row 0) got: #ffffff, expected: #ff0000 Loc: [/home/mitya57/qtdeclarative-opensource-src-5.9.0/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml(94)] FAIL! : qmltest::item-grabber::test_endresult_cache(row 0) 'verify()' returned FALSE. () Loc: [/home/mitya57/qtdeclarative-opensource-src-5.9.0/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml(95)] WARNING: qmltest::item-grabber::test_endresult_cache(row 1) got: #ffffff, expected: #ff0000 Loc: [/home/mitya57/qtdeclarative-opensource-src-5.9.0/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml(94)] FAIL! : qmltest::item-grabber::test_endresult_cache(row 1) 'verify()' returned FALSE. () Loc: [/home/mitya57/qtdeclarative-opensource-src-5.9.0/tests/auto/qmltest/itemgrabber/tst_itemgrabber.qml(95)]
See also the attached PNG file, which represents the image being tested. This definitely looks like an endianness issue to me.
Attachments
Issue Links
- depends on
-
QTQAINFRA-4340 Add Big-endian to CI
- Withdrawn
Gerrit Reviews
For Gerrit Dashboard: QTBUG-56806 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
244469,3 | Fix image grab when XCB is rgb-swapping | 5.12 | qt/qtbase | Status: MERGED | +2 | 0 |