Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-1522

QProcess.setStandardOutput(None) causes a core dump

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 5.15.2
    • PySide
    • None
    • Ubuntu 20.04.2 LTS
    • Linux/Other display system

    Description

      I am using two instances of QProcess

      QProcess

       In some portions of my code I need process1 to redirect its output to process2.
      By following Qt documentation I can use

      QProcess.setStandardOutput()

      From the documentation I have copied the code below.

       process1 = QProcess()
       process2 = QProcess()
       process1.setStandardOutputProcess(process2)
       process1.start("command1")
       process2.start("command2")

      If I want to change it back to default. Meaning, that I don't want process1 output to go to process2

       process1.setStandardOutput(None) 

      It will cause a core dump.  Using the code below will not cause a core dump.

      process1.setStandardOutput(QProcess())

      Is that normal behavior?

      Attachments

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

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            hayajneh Sohuib Hayajneh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes