Jaded-Encoding-Thaumaturgy / vs-preview

Previewer for VapourSynth scripts.
Apache License 2.0
57 stars 16 forks source link

Work around silent crash on Python 3.12 #135

Closed arch1t3cht closed 3 months ago

arch1t3cht commented 3 months ago

For some reason which I do not pretend to understand, assigning to cls.instance in Singleton.__new__ crashes on Python 3.12 when the class also inherits from QObject or something of the sort. This is very likely a bug in PyQt6 but for now we can just replace cls.instance with a list and append to it so no assignment happens in __new__.