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

[REG 5.15-6.0] QList/QVector regressions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 6.0.2, 6.1.0 Beta3
    • Fix Version/s: None
    • Labels:
      None

      Description

      I'm opening a meta-bug to centralize the discussions regarding the behavioral and performance regressions of QList / QVector in Qt 6.0.

      These are causing a number of other bugs, including memory leaks, performance degradations and whole crashes. (See the linked tasks).

      A lot of discussion happened in the gerrit fixes for those bugs, making them hard to find and hard to track (discussions start in one issue and continue in another).

      To summarize some of issues, at this moment:

      • Q6Vector regressed API against Q5Vector: for instance, capacity() contract is now violated due to the prepend space.
      • In general, Q6Vector will soft-leak memory (using more than necessary) because it will grow when prepending with no space on the left (but space available on the right). QTBUG-92912 QTBUG-91801
      • The current implementation of the prepend optimization degenerates on some inputs and triggers OOM. QTBUG-91360

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              agolubev Andrei Golubev
              Reporter:
              peppe Giuseppe D'Angelo
              Votes:
              1 Vote for this issue
              Watchers:
              12 Start watching this issue

                Dates

                Created:
                Updated: