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

Incorrect recreated QtActivity, after change system font family.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.2
    • Extras: Android, QPA
    • None
    • Android

    Description

      Steps:

      • Start application [appActivity.jpg].
      • Leaving application to the background (the activity is no longer in the foreground) and go to the Android settings [androidSettings.jpg].
      • In Android settings, change font family [changeFontFamily.jpg].
      • Return to the application which will have only a white screen (Default android theme "Theme_Holo_Light") [recreatedAppActivity.jpg].

      P.S. If change the language in Android settings and uses the second font family, the app also has the same wrong flow.

       

      Similar bug: 

      1. QTBUG-44575

       

      Application output:

      The OnePlus5

      I zygote : Late-enabling -Xcheck:jni

      W zygote : Using default instruction set features for ARM CPU variant (cortex-a9) using conservative defaults

      I zygote : The ClassLoaderContext is a special shared library.

      W System : ClassLoader referenced unknown path:

      I QtCore : Start

      W linker : "/data/app/org.qtproject.example-EhuBX_UKewTGuI0Kmdl_qA==/lib/arm/libQt5AndroidExtras.so" has unsupported flags DT_FLAGS_1=0x80

      W linker : "/data/app/org.qtproject.example-EhuBX_UKewTGuI0Kmdl_qA==/lib/arm/libQt5Gui.so" has unsupported flags DT_FLAGS_1=0x80

      W linker : "/data/app/org.qtproject.example-EhuBX_UKewTGuI0Kmdl_qA==/lib/arm/libQt5Network.so" has unsupported flags DT_FLAGS_1=0x80

      W linker : "/data/app/org.qtproject.example-EhuBX_UKewTGuI0Kmdl_qA==/lib/arm/libQt5Qml.so" has unsupported flags DT_FLAGS_1=0x80

      W linker : "/data/app/org.qtproject.example-EhuBX_UKewTGuI0Kmdl_qA==/lib/arm/libQt5Quick.so" has unsupported flags DT_FLAGS_1=0x80

      W linker : "/data/app/org.qtproject.example-EhuBX_UKewTGuI0Kmdl_qA==/lib/arm/libQt5QuickParticles.so" has unsupported flags DT_FLAGS_1=0x80

      W linker : "/data/app/org.qtproject.example-EhuBX_UKewTGuI0Kmdl_qA==/lib/arm/libQt5QuickTemplates2.so" has unsupported flags DT_FLAGS_1=0x80

      W linker : "/data/app/org.qtproject.example-EhuBX_UKewTGuI0Kmdl_qA==/lib/arm/libQt5QuickControls2.so" has unsupported flags DT_FLAGS_1=0x80

      W linker : "/data/data/org.qtproject.example/qt-reserved-files/plugins/platforms/android/libqtforandroid.so" has unsupported flags DT_FLAGS_1=0x80

      I Qt : qt started

      W linker : "/data/data/org.qtproject.example/qt-reserved-files/plugins/bearer/libqandroidbearer.so" has unsupported flags DT_FLAGS_1=0x80

      I Qt JAVA : Can't find '/data/data/org.qtproject.example/qt-reserved-files/lib/libQt5QuickParticles.so'

      D OpenGLRenderer: HWUI GL Pipeline

      I zygote : Do partial code cache collection, code=30KB, data=23KB

      I zygote : After code cache collection, code=30KB, data=23KB

      I zygote : Increasing code cache capacity to 128KB

      I zygote : Do partial code cache collection, code=62KB, data=55KB

      I zygote : After code cache collection, code=62KB, data=55KB

      I zygote : Increasing code cache capacity to 256KB

      E linker : normalize_path - invalid input: "D", the input path should be absolute

      W linker : Warning: unable to normalize "D"

      E linker : normalize_path - invalid input: "D", the input path should be absolute

      W linker : Warning: unable to normalize "D"

      D : QML debugging is enabled. Only use this in a safe environment.

      I Adreno : QUALCOMM build : 4bff8b9, Ida6448821d

      I Adreno : Build Date : 06/14/18

      I Adreno : OpenGL ES Shader Compiler Version: EV031.22.00.01

      I Adreno : Local Branch :

      I Adreno : Remote Branch : refs/tags/AU_LINUX_ANDROID_LA.UM.6.4.R1.08.01.00.309.061

      I Adreno : Remote Branch : NONE

      I Adreno : Reconstruct Branch : NOTHING

      I Adreno : PFP: 0x005ff087, ME: 0x005ff063

      I zygote : android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0

      I OpenGLRenderer: Initialized EGL, version 1.4

      D OpenGLRenderer: Swap behavior 2

      D libGLESv1: Successfully load libGLESv2_oneplus.so, this=0xea74f004

      D OpenGLRenderer: Successfully load libhwui_plugin.so, this=0xe9db72e4

      D : Successfully load libGraphicBuffer_oneplus.so, this=0xeb82c164

      D : Successfully load libgui-plugin.so, this=0xeb82c17c

      W linker : "/data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick.2/libqtquick2plugin.so" has unsupported flags DT_FLAGS_1=0x80

      W linker : "/data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Controls.2/libqtquickcontrols2plugin.so" has unsupported flags DT_FLAGS_1=0x80

      W linker : "/data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Controls.2/Material/libqtquickcontrols2materialstyleplugin.so" has unsupported flags DT_FLAGS_1=0x80

      W linker : "/data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Layouts/libqquicklayoutsplugin.so" has unsupported flags DT_FLAGS_1=0x80

      W linker : "/data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Window.2/libwindowplugin.so" has unsupported flags DT_FLAGS_1=0x80

      W linker : "/data/data/org.qtproject.example/qt-reserved-files/qml/QtQuick/Templates.2/libqtquicktemplates2plugin.so" has unsupported flags DT_FLAGS_1=0x80

      D libGLESv2: Successfully load libGLESv2_oneplus.so, this=0xe9b1c004

      D libFont.so: qml: Available Fonts - AndroidClock,BN MohantyOT,Carrois Gothic SC,Coming Soon,Cutive Mono,Dancing Script,Droid Sans Mono,DV MohantyOT,GJ MohantyOT,KN Mohanty,M Ying Hei HK,M Ying Hei PRC,MN Mohanty V2,MyanmarUNew,Noto Color Emoji,Noto Naskh Arabic,Noto Naskh Arabic UI,Noto Sans Adlam,Noto Sans Armenian,Noto Sans Avestan,Noto Sans Balinese,Noto Sans Bamum,Noto Sans Batak,Noto Sans Bengali,Noto Sans Bengali UI,Noto Sans Brahmi,Noto Sans Buginese,Noto Sans Buhid,Noto Sans Canadian Aboriginal,Noto Sans Carian,Noto Sans Cham,Noto Sans Cherokee,Noto Sans CJK JP,Noto Sans CJK KR,Noto Sans CJK SC,Noto Sans CJK TC,Noto Sans Coptic,Noto Sans Cuneiform,Noto Sans Cypriot,Noto Sans Deseret,Noto Sans Devanagari,Noto Sans Devanagari UI,Noto Sans Egyptian Hieroglyphs,Noto Sans Ethiopic,Noto Sans Georgian,Noto Sans Glagolitic,Noto Sans Gothic,Noto Sans Gujarati,Noto Sans Gujarati UI,Noto Sans Gurmukhi,Noto Sans Gurmukhi UI,Noto Sans Hanunoo,Noto Sans Hebrew,Noto Sans Imperial Aramaic,Noto Sans Inscriptional Pahlavi,Noto San

      D libFont.so: qml: Second Font - QFont(Roboto,-1,14,5,50,0,0,0,0,0)

      D libFont.so: qml: First Font - QFont(Roboto,-1,14,5,50,0,0,0,0,0)

      W libEGL : EGLNativeWindowType 0xcb470808 disconnect failed

      V Font : Change font:2

      E BpSurfaceComposerClient: Failed to transact (-1)

      E BpSurfaceComposerClient: Failed to transact (-1)

      I zygote : Do full code cache collection, code=119KB, data=105KB

      I zygote : After code cache collection, code=114KB, data=87KB

      E Qt JAVA : Surface 1 not found!

         "org.qtproject.example" died.

       

      Hints:

      Tried:

      If added in the variable ("QT_ANDROID_FONTS") this font family("OnePlus Slate") doesn't help. Help if in QtActivityDelegate.java in onDestroid() method deleted the condition ("if (m_quitApp) {}"), the app after steps has the correct screen but don't alife (don't respond to any events).

      Logs method in QtActivityDelegate:

      loadApplication, setActionBarVisibility, getAppIconSize, startApplication, onCreate, onResume, onCreateOptionsMenu, onPrepareOptionsMenu, setActionBarVisibility, onWindowFocusChanged, updateFullScreen, initializeAccessibility, updateHandles, updateHandles, hideSoftwareKeyboard, updateHandles, createSurface, getSurfaceCount, hideSplashScreen1, hideSplashScreen2, hideSplashScreen2.

       When resuming (in setting change font)

      onPause, onWindowFocusChanged, onSaveInstanceState, onStop.

      Was recreate ACTIVITY

      Change font:1, onRetainNonConfigurationInstance, onDestroy, onCreate, onRestoreInstanceState, onResume, updateFullScreen, destroySurface, createSurface, getSurfaceCount, hideSplashScreen1, hideSplashScreen2, onCreateOptionsMenu, onPrepareOptionsMenu, setActionBarVisibility, onWindowFocusChanged, updateFullScreen.

       Logs method in native android Activity:

       getResources, getResources, setTheme, getResources, getResources, getResources, getResources, onContentChanged, setContentView1, onCreate, onStart, onTitleChanged, onPostCreate, getResources, onPostResume, getResources, getResources, getMenuInflater, getMenuInflater, onSaveInstanceState, onStop.

      When resuming (in setting change font)

      onSaveInstanceState, onStop.

       Was recreate ACTIVITY

      Change font:1, onDestroy, getResources, getResources, setTheme, getResources, getResources, onContentChanged, setContentView1, onCreate, onStart, onTitleChanged, onPostCreate, getResources, onPostResume, getResources, getResources, getMenuInflater, getMenuInflater, onSaveInstanceState, onStop.

      Attachments

        1. recreatedAppActivity.jpg
          400 kB
          Tetiana Giss
        2. Font.zip
          69 kB
          Tetiana Giss
        3. changeFontFamily.jpg
          641 kB
          Tetiana Giss
        4. appActivity.jpg
          66 kB
          Tetiana Giss
        5. androidSettings.jpg
          108 kB
          Tetiana Giss
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rampe Rami Potinkara
            tetiana Tetiana Giss
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes