Details
Description
In 5.14.2 my app is not responding in Windows when I set variable isrun = False:
class AThread(QtCore.QThread): def run(self): while True: if widget.isrun: print("thread ping") else: self.terminate() time.sleep(1)
But without using variable isrun, just by mythread.terminate() - it's ok.
Maybe it's because "terminate" is inside "while True", but before update it has been working.
In 5.14.1 and 5.13.2 it's ok.
Python 3.8.2, PySide2-5.14.2.1-5.14.2-cp35.cp36.cp37.cp38-none-win32.whl (from pip)
Example related.
Attachments
Issue Links
- relates to
-
PYSIDE-1332 REG->5.15.0: QThread.wait() and QWaitCondition.wait() cause hard crash
- Closed
For Gerrit Dashboard: PYSIDE-1282 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
302132,10 | Check if current thread holds the GIL before release | 5.14 | pyside/pyside-setup | Status: ABANDONED | -1 | 0 |
304879,4 | shiboken2: Refactor wrapper method generation | 5.15 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
304880,8 | pthreads: Try to abandon the GIL in case a thread was terminated | 5.14 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
304965,3 | shiboken2: Clean up code injection attributes | 5.15 | pyside/pyside-setup | Status: MERGED | +2 | 0 |
305138,2 | WIP: Diagnostic change for 1282 | 5.15 | pyside/pyside-setup | Status: ABANDONED | -2 | 0 |