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

QProcess can't be closed

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes