Friday, 14 December 2018

PySide segmentation fault on QObject instantiation

I have a class that is a base for my other non-qt classes. This class instantiates QObject class with Signal instance. Unfortunately, sometimes it raises Segmentation Fault error. Here is my code:

class PublisherSignal(QObject):
    notify = Signal(list)


class PublisherBase:
    def __init__(self, *args, **kwargs):
        super(PublisherBase, self).__init__(*args, **kwargs)
        self._signal = PublisherSignal()

The faulthandler shows, that the segmentation fault is happening on the PublisherSignal() class instantiation. It is not always. In most cases it is working fine. No threads are involved. Subclasses of PublisherBase are not subclassing QObject.
What could be the cause of the segfaults?



from PySide segmentation fault on QObject instantiation

No comments:

Post a Comment