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

ListView crash when scrolled and sorted.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.7.0
    • 5.4.0, 5.4.1, 5.6.0 RC
    • None
    • Windows, both MS and MinGW.
    • 84f61dd2d2b0140814b39a2c5238a6e31c49abd7 (5.7.0), e38a98ad4453974b2848eeed02d81e0c408ce0c6 (5.6.4)

    Description

      When using QSortFilterProxyModel on QML ListView it works fine and is sorting correctly until the ListView is not scrolled down. But crashes when trying to sort already scrolled down ListView with a message:

      ASSERT failure in QList<T>::at: "index out of range", file c:\work\build\qt5_workdir\w\s\qtbase\include\qtcore\../../src/corelib/tools/qlist.h, line 478

      It is easy to reproduce it with the attached sample project.

      Attachments

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

        Activity

          People

            andysh Andy Shaw
            kiibimees Lauri Laanmets
            Votes:
            10 Vote for this issue
            Watchers:
            15 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes