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

QProcess can't be closed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 6.2.0 Beta2
    • Core: Other
    • None
    • Windows

    Description

      If the example application is built with MSVC2019 64bit, the QProcess can't be stopped.

      To reproduce
      1) build the example in debug with MSVC2019.
      2) run the example.
      The process is started and when "m_loaderProcess.close()" is called an assertion is shown:

      ProcessTest::processFinished  30
      ASSERT: "readBuffers.size() > int(channelIdx)" in file \Users\qt\work\qt\qtbase\src\corelib\io\qprocess.cpp, line 947
      ASSERT failure in QList::operator[]: "index out of range", file C:\Users\qt\work\qt\qtbase\include\QtCore\../../src/corelib/tools/qlist.h, line 391
      QProcess: Destroyed while process ("cmd") is still running.
      

      Not reproducible with MinGW.

      Attachments

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

        Activity

          People

            alex1973tr Alex Trotsenko
            alexey89 alexey89
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes