Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-102721

QQuickWindow::grabWindow() broken on Android

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.3.0
    • None
    • Android

      tst_QQuickFramebufferObject::testThatStuffWorks() is broken.

      Output:

      ********* Start testing of tst_QQuickFramebufferObject *********
      Config: Using QtTest library 6.4.0, Qt 6.4.0 (arm64-little_endian-lp64 shared (dynamic) debug build; by Clang 12.0.8 (https://android.googlesource.com/toolchain/llvm-project c935d99d7cf2016289302412d708641d52d2f7ee)), android 12.0
      PASS   : tst_QQuickFramebufferObject::initTestCase()
      QDEBUG : tst_QQuickFramebufferObject::testThatStuffWorks(red, !aa, item-size) 0xffffffff is 4294967295
      FAIL!  : tst_QQuickFramebufferObject::testThatStuffWorks(red, !aa, item-size) Compared values are not the same
         Actual   (result.pixel(1, 1)): 4294967295
         Expected (QRgb(color))       : 4294901760
         Loc: [/home/andreasbuhr/development/qtdev/qtdeclarative/tests/auto/quick/qquickframebufferobject/tst_qquickframebufferobject.cpp(221)]
      QDEBUG : tst_QQuickFramebufferObject::testThatStuffWorks(green, !aa, 80x80) 0xffffffff is 4294967295
      FAIL!  : tst_QQuickFramebufferObject::testThatStuffWorks(green, !aa, 80x80) Compared values are not the same
         Actual   (result.pixel(1, 1)): 4294967295
         Expected (QRgb(color))       : 4278255360
         Loc: [/home/andreasbuhr/development/qtdev/qtdeclarative/tests/auto/quick/qquickframebufferobject/tst_qquickframebufferobject.cpp(221)]
      QDEBUG : tst_QQuickFramebufferObject::testThatStuffWorks(blue, aa, item-size) 0xffffffff is 4294967295
      FAIL!  : tst_QQuickFramebufferObject::testThatStuffWorks(blue, aa, item-size) Compared values are not the same
         Actual   (result.pixel(1, 1)): 4294967295
         Expected (QRgb(color))       : 4278190335
         Loc: [/home/andreasbuhr/development/qtdev/qtdeclarative/tests/auto/quick/qquickframebufferobject/tst_qquickframebufferobject.cpp(221)]
      QDEBUG : tst_QQuickFramebufferObject::testThatStuffWorks(pink, aa, 80x80) 0xffffffff is 4294967295
      FAIL!  : tst_QQuickFramebufferObject::testThatStuffWorks(pink, aa, 80x80) Compared values are not the same
         Actual   (result.pixel(1, 1)): 4294967295
         Expected (QRgb(color))       : 4294902015
         Loc: [/home/andreasbuhr/development/qtdev/qtdeclarative/tests/auto/quick/qquickframebufferobject/tst_qquickframebufferobject.cpp(221)]
      PASS   : tst_QQuickFramebufferObject::testInvalidate()
      PASS   : tst_QQuickFramebufferObject::cleanupTestCase()
      Totals: 3 passed, 4 failed, 0 skipped, 0 blacklisted, 758ms
      ********* Finished testing of tst_QQuickFramebufferObject *********
      

      The result of

          QImage result = view.grabWindow();
      

      in tests/auto/quick/qquickframebufferobject/tst_qquickframebufferobject.cpp:217 seems to be a completely white image with a one pixel black boundary at the top.

        For Gerrit Dashboard: QTBUG-102721
        # Subject Branch Project Status CR V

            qt.team.graphics.and.multimedia Qt Graphics Team
            andreasbuhr Andreas Buhr
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: