pygobject / pycairo

Python bindings for cairo
https://pycairo.readthedocs.io
Other
611 stars 83 forks source link

module: reorder cairo script surface initialization #344

Closed tych0 closed 8 months ago

tych0 commented 8 months ago

PyType_Ready() expects subclasses to be initialized after base classes. Since ScriptSurface inherits from Surface, Surface must be initialized first.

This causes a segfault in pypy3.10, and the fix was suggested here:

https://foss.heptapod.net/pypy/pypy/-/issues/4017#note_332375

This fixes the seg fault for me.

mgorny commented 8 months ago

Thank you! I can confirm that this fixes the segfault we've been experiencing on Gentoo.

lazka commented 8 months ago

Thanks!

lazka commented 8 months ago

a new release is out on pypi

tych0 commented 8 months ago

Thanks for the fast release.