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

QVector Crash when use QtConcurrent

    XMLWordPrintable

Details

    • Linux/X11, Windows

    Description

      Hi,

      When I use qtConcurrent to modify QVector<int> it will crash and show errros as blew:

          1. ASSERT: "isDetached()" in file

          2. ASSERT failure in QVector<T>::operator[]: "index out of range"

      I use debug to test, find QVector size is 512 but debug info show vector capacity is 100.

      Maybe QVector has't allocate enough capacity when create object.

      You can check the attachment. Use Qt 5.15.7 MSVC 2019 64bit compiler to run it.  It will show that error

       

      Attachments

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

        Activity

          People

            cnn Qt Core & Network
            haipeng.yu Haipeng Yu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes