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

Android: assertion failure when calling pop() on a StackView

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • 5.2.0 RC1
    • 5.1.1
    • Quick: Controls 1
    • None
    • Qt 5.1.1
      Samsung Galaxy S2
    • Android

    Description

      Run the following code on an Android device (I ran it on an S2) and it should throw an assertion:

      import QtQuick 2.0
      import QtQuick.Controls 1.0
      
      Rectangle {
          id: root
          width: 480
          height: 800
      
          color: "#161616"
          property color fontColor: "white"
      
          property Component comboComponent: Item {
              ComboBox {
              }
          }
      
          StackView {
              id: view
              anchors.fill: parent
      
              Text {
                  text: "Back"
                  color: fontColor
                  font.pixelSize: 30
                  anchors.left: parent.left
                  anchors.leftMargin: 20
                  anchors.bottom: parent.bottom
                  visible: view.depth > 1
      
                  MouseArea {
                      anchors.fill: parent
                      onClicked: view.pop()
                  }
              }
      
              initialItem: Item {
                  Button {
                      width: view.width
                      height: 100
                      anchors.centerIn: parent
                      text: "PUSH ME!"
      
                      onClicked: {
                          view.push({item: comboComponent});
                      }
                  }
              }
          }
      }
      

      Commenting out the ComboBox avoids the assertion.

      The same code runs without problems on Ubuntu 12.04.

      F/Qt (17526): /home/micurtis/dev/qt5-stable/qtbase/src/corelib/global/qglobal.cpp:2014 (void qt_assert(const char*, const char*, int)): ASSERT: "aend <= d->end()" in file ../../../../../include/QtCore/../../../../qt5-stable/qtbase/src/corelib/tools/qvector.h, line 620

      Attachments

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes