PyQt5 QThread Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

Demosthenes Koptsis demosthenesk at gmail.com
Wed Jun 30 16:44:04 BST 2021


Hello,

thanks for your answer.

You are right, i created a separate class for QThread and it works.

Here is also the solution

https://stackoverflow.com/questions/68189289/pyqt5-qthread-process-finished-with-exit-code-139-interrupted-by-signal-11-sig 
<https://stackoverflow.com/questions/68189289/pyqt5-qthread-process-finished-with-exit-code-139-interrupted-by-signal-11-sig>


On 30/6/21 5:30 μ.μ., Giuseppe Corbelli wrote:
> On 6/30/21 1:37 PM, Demosthenes Koptsis wrote:
>> i have a GUI with PyQt5. The GUI has a Form, 2 Buttons and a 
>> ProgressBar. I want to implement a start/wait thread with QThread. 
>> Unfortunately i get Process finished with exit code 139 (interrupted 
>> by signal 11: SIGSEGV) when i click Start button to run thread.
> ...
>> class MainWindow(QWidget, QThread):
>
> This is the root of all problems. UI (QWidget) subclasses must live in 
> the main thread.
> Besides that you usually do NOT subclass QThread [1] but 
> moveToThread() a QObject subclass and communicate with signals and slots.
>
> [1] https://www.qt.io/blog/2010/06/17/youre-doing-it-wrong


More information about the PyQt mailing list