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

QSortFilterProxyModel crash on filter item out

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.9.1, 6.10.0 FF
    • 5.6.0, 5.6.1, 5.7.0, 5.11.0
    • Widgets: Itemviews
    • None
    • crash confirmed on Windows 10, OS X and Linux
    • macOS
    • 687422abd (dev), ab628edbb (6.9)

      QVector throws "index out of range" on remove. Caused by using a QTableView to edit the information in a QSortFilterProxyModel.

      How to cause crash in test case:

      1. type "Tom" in search bar
      2. edit "Tom" and change it to something like "Harold"
      3. click out of box to commit change and the application will crash with an index out of range error

      Issue happens when an item that was changed in the GUI is filtered out.

        1. 54484_msvc142_error.PNG
          30 kB
          Langonda Agag
        2. 54484_msvc142.gif
          217 kB
          Langonda Agag
        3. 54484_standarditemmodel.gif
          214 kB
          Langonda Agag
        4. 54484_standarditemmodel2.gif
          204 kB
          Langonda Agag
        5. image-2020-01-11-13-21-31-245.png
          318 kB
          Langonda Agag
        6. image-2020-02-26-22-36-42-793.png
          96 kB
          mr.jordison
        7. JobLog_Test_Broken_StdModel.7z
          4 kB
          Langonda Agag
        8. JobLog_Test.zip
          8 kB
          Justin Paul
        For Gerrit Dashboard: QTBUG-54484
        # Subject Branch Project Status CR V

            dfaure_kdab David Faure
            tabletoplaptop Justin Paul
            Votes:
            3 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes