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

QProcess can't be closed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Invalid
    • Affects Version/s: 6.2.0 Beta2
    • Fix Version/s: None
    • Component/s: Core: Other
    • Labels:
      None
    • Platform/s:
      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

            Assignee:
            alex1973tr Alex Trotsenko
            Reporter:
            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