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

QProcess.setStandardOutput(None) causes a core dump

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Out of scope
    • Affects Version/s: 5.15.2
    • Fix Version/s: None
    • Component/s: PySide
    • Labels:
      None
    • Environment:
      Ubuntu 20.04.2 LTS
    • Platform/s:
      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

            Assignee:
            crmaurei Cristian Maureira-Fredes
            Reporter:
            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