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

[Qt-Android][REG] Qml show damaged images when switch applications between background and foreground several times

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • None
    • 5.4.0
    • QPA
    • None
    • Phone: samsung Galaxy Note4 SM-N9108V Adreno (TM) 420 with Sceen rotation off
      Andriod OS version: 4.4.4
      Qt version: 5.4.0
    • Android

      QtQuick application created with Qt 5.4.0 sometimes may show damaged images when switch it between background and foreground several times on andriod phones. A sample program to produce the issue is attached, before run the program you should pay attention to several points:
      1. Make sure to use a Galaxy Note4 SM-N9108V phone to produce this issue (I test with many other phones, only I can only produce this issue with this phone).
      2. turn off the "Sceen rotation" of the phone
      3. Run my test appliction, first you will see page1 with operation tips, press next button to turn into another page in which there are 3 child tab pages, choose any tab pages in title, then press home button to switch test application into background and then back to the test application. repeat these serval times you will see damaged images.

      By the way, I have to mentions several things:
      1) this problem will not happen in qt 5.3.2 with this same phone
      2) Even with Qt 5.4.0, this problem will disappear if I disable texture atlas (by set QSG_ATLAS_SIZE_LIMIT to 1)
      3) The attached sample program set 'android:screenOrientation' to 'landscape' in its manifest file.

      I guess the issue is caused by wrong texture atlas coordinates triggered by something related to screen orientation.

        1. child1Normal.png
          child1Normal.png
          710 kB
        2. child1Unnormal.png
          child1Unnormal.png
          407 kB
        3. child2Normal.png
          child2Normal.png
          346 kB
        4. child2Unnormal.png
          child2Unnormal.png
          486 kB
        5. child3Normal.png
          child3Normal.png
          377 kB
        6. child3Unnormal.png
          child3Unnormal.png
          455 kB
        7. output.txt
          484 kB
        8. QmlTest.rar
          73 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            wich wich chen
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes