Details
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
Issue Links
- is duplicated by
-
PYSIDE-1369 QThread.wait() stalls indefinitely
- Closed
- relates to
-
PYSIDE-1342 Calling wait() without timeout on an unfinished QThread hangs the program
- Closed
-
PYSIDE-1282 [pthreads] QThread self.terminate() makes app not responding
- Closed