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

QProcess needs setReadBufferSize

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 4.8.5
    • Core: I/O
    • None

    Description

      Hi!

      I am starting a console tool with QProcess. The tool will push data into stdout until it gets blocked. This works well on commandline and a command pipe, there the output is send to another tools

      If i want to use the tool in my qt application, i start it with QProcess and wait for readyReadStdOut.

      But the tool generates data much faster than i can handle it and memory for my processes increases until no more memory is left. It seems to me that the QProcess seems to buffer all output from the tool internally and does not block.

      I tried to start the tool with QProcess::Unbuffered, but this does not change anything. I also can not set the readBufferSize!.

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              j.kreuzberger Joerg Kreuzberger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes