'How to catch PyQt5 exception? "Process finished with exit code" [duplicate]

Question: How do I get an error message, if something does wrong in PyQt5 and my program crashes with the PyCharm console message "Process finished with exit code -1073741819 (0xC0000005)"

As I noticed this error can happen for different reasons but it is very hard to understand where the problem causes if no error stack trace



Solution 1:[1]

Just open the PyCharm's Settings, search PyQt5, in PyQt compatible change "auto" to "PyQt5", that's all, now you will see the stack trace of the PyQt5 non-catchable errors

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 John