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

Application crash on Loader under Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P1: Critical
    • None
    • 5.15.2
    • None
    • Android

    Description

      Application crashes on intensive changing Loader.source = url under Android. On Linux works fine.

      I have a ListView with list<QtObject> model like the following:

          property list<QtObject> items: [
              QtObject {
                  property url iconSource: "/qmlimages/....svg"
                  property string name: qsTr("MENU ITEM")
                  property url page: "qrc:/qml/page_url.qml"
              },
              ...
          ]
      

      Each ListView has and item with mouse area inside:

                      MouseArea {
                          anchors.fill: parent
      
                          onClicked: {
                              listView.currentIndex = index
                              Qt.inputMethod.hide()
      
                              // Load pages dynamicaly
                              if (modelData.page) {
                                  loader.source = modelData.page
                              }
                          }
                      }
      

      All pages are `Rectangle`s with various items within:

      • flickable
      • buttons
      • images
      • inputs
      • lables
      • list views
      • etc etc

      While intensive clicking on the items on Android app crashes. If I comment out loader.source = modelData.page line - all works fine. Debugger does not show where the crash is - exists immediately:

       

      F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xe00000018 in tid 2496 (QtThread), pid 483 (.airmap.airboss)
      I ViewRootImpl@1f668a3[QGCActivity]: ViewPostIme pointer 0
      I ViewRootImpl@1f668a3[QGCActivity]: ViewPostIme pointer 1
      D InputMethodManager: HSIFW - flag : 0
      I InputMethodManager: hideSoftInputFromWindow ignore mServedView == null or mServedView.getWindowToken() != windowToken, mServedView :DecorView@55e6c5[QGCActivity]
      I ViewRootImpl@1f668a3[QGCActivity]: ViewPostIme pointer 0
      I ViewRootImpl@1f668a3[QGCActivity]: ViewPostIme pointer 1
      D InputMethodManager: HSIFW - flag : 0
      I InputMethodManager: hideSoftInputFromWindow ignore mServedView == null or mServedView.getWindowToken() != windowToken, mServedView :DecorView@55e6c5[QGCActivity]
      I ViewRootImpl@1f668a3[QGCActivity]: ViewPostIme pointer 0
      I ViewRootImpl@1f668a3[QGCActivity]: ViewPostIme pointer 1
      D InputMethodManager: HSIFW - flag : 0
      I InputMethodManager: hideSoftInputFromWindow ignore mServedView == null or mServedView.getWindowToken() != windowToken, mServedView :DecorView@55e6c5[QGCActivity]
      14:40:34: Debugging of -qmljsdebugger=port:39723,block,services:DebugMessages,QmlDebugger,V8Debugger,QmlInspector,DebugTranslation has finished.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            jirauser39314 user-45b5b (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes