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

REG->5.15.0: QThread.wait() and QWaitCondition.wait() cause hard crash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.15.1
    • 5.15.0
    • PySide
    • None
    • Windows
    • 3a1cf48137752ef3640ae7b1e2937e4bed34d3b2 (pyside/pyside-setup/5.15)

    Description

      Calling either QThread.wait() or QWaitCondition.wait() causes an access violation/segfault and hard freezes python.

       

      class Producer(QtCore.QThread):
          def run(self):
              time.sleep(2)
      
      
      if __name__ == "__main__":
          app = QtCore.QCoreApplication(sys.argv)
          producer = Producer()
          producer.start()
          print("About to call Qthread.wait()")
          producer.wait() # crashes
          print("Qthread finished")
      

       

      Tested on Windows 7/10 with Pyside2 5.15.0

      Works as expected on 5.14.1.

       

      Possibly (probably) related to PYSIDE-1282

      Attachments

        1. qthread_wait.py
          0.4 kB
        2. waitconditions.py
          0.8 kB

        Issue Links

          For Gerrit Dashboard: PYSIDE-1332
          # Subject Branch Project Status CR V

          Activity

            People

              kleint Friedemann Kleint
              slingshotvfx Geoff Allison
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes